diff src/server/blog.py @ 743:916075bd0356

server_side: display tags in static blogs
author souliane <souliane@mailoo.org>
date Sat, 21 Nov 2015 17:03:46 +0100
parents 9d35d75566fb
children 25984ca4aef2
line wrap: on
line diff
--- a/src/server/blog.py	Sat Nov 21 14:34:36 2015 +0100
+++ b/src/server/blog.py	Sat Nov 21 17:03:46 2015 +0100
@@ -35,6 +35,7 @@
 import re
 import os
 
+from sat_frontends.quick_frontend import quick_blog
 from libervia.server.html_tools import sanitizeHtml, convertNewLinesToXHTML
 from libervia.server.constants import Const as C
 
@@ -468,6 +469,7 @@
             self.author = '&nbsp;'
             self.url = (u"%s/%s" % (base_url, entry['id']))
             self.title = self.getText(entry, 'title')
+            self.tags = quick_blog.mbdata2tags(entry)
 
             count_text = lambda count: D_('comments') if count > 1 else D_('comment')