diff src/browser/sat_browser/blog.py @ 898:2d15b484ca33

blog, browser: updated imports to reflect renaming of common.py to common/data_format.py
author Goffi <goffi@goffi.org>
date Tue, 22 Mar 2016 22:45:39 +0100
parents ded96b54ee02
children fd4eae654182
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Sun Mar 20 22:30:03 2016 +0100
+++ b/src/browser/sat_browser/blog.py	Tue Mar 22 22:45:39 2016 +0100
@@ -20,7 +20,7 @@
 import pyjd  # this is dummy in pyjs
 from sat.core.log import getLogger
 log = getLogger(__name__)
-from sat.tools import common
+from sat.tools.common import data_format
 from sat.core.i18n import _ #, D_
 
 from pyjamas.ui.SimplePanel import SimplePanel
@@ -136,7 +136,7 @@
         """Set the bubble displaying the initial content."""
         content = {'text': self.item.content_xhtml if self.item.content_xhtml else self.item.content or '',
                    'title': self.item.title_xhtml if self.item.title_xhtml else self.item.title or ''}
-        common.iter2dict('tag', self.item.tags, content)
+        data_format.iter2dict('tag', self.item.tags, content)
 
         if self.mode == C.ENTRY_MODE_TEXT:
             # assume raw text message have no title
@@ -277,7 +277,7 @@
             # message syntax in mb_data for the frontend to use it instead of current syntax.
             self.item.content_rich = content['text']  # XXX: this also works if the syntax is XHTML
             self.item.title = content['title']
-            self.item.tags = list(common.dict2iter('tag', content))
+            self.item.tags = list(data_format.dict2iter('tag', content))
         else:
             self.item.content = content['text']