changeset 760:78caef6ed8e7

static blog: replaced mbdata2tags by sat.tools.common.dict2iter
author Goffi <goffi@goffi.org>
date Tue, 24 Nov 2015 23:31:41 +0100 (2015-11-24)
parents 34f066ed3b23
children e69f411c16a5
files src/server/blog.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/blog.py	Tue Nov 24 23:26:55 2015 +0100
+++ b/src/server/blog.py	Tue Nov 24 23:31:41 2015 +0100
@@ -22,7 +22,7 @@
 from sat_frontends.tools.strings import addURLToText
 from sat.core.log import getLogger
 log = getLogger(__name__)
-
+from sat.tools import common
 from dbus.exceptions import DBusException
 from twisted.internet import defer
 from twisted.web import server
@@ -35,7 +35,6 @@
 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
 
@@ -472,7 +471,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)
+            self.tags = list(common.dict2iter('tag', entry))
 
             count_text = lambda count: D_('comments') if count > 1 else D_('comment')