Mercurial > libervia-web
diff src/browser/sat_browser/richtext.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 | ca31e4f677e5 |
children |
line wrap: on
line diff
--- a/src/browser/sat_browser/richtext.py Sun Mar 20 22:30:03 2016 +0100 +++ b/src/browser/sat_browser/richtext.py Tue Mar 22 22:45:39 2016 +0100 @@ -21,7 +21,7 @@ from sat.core.i18n import _ from sat.core.log import getLogger log = getLogger(__name__) -from sat.tools import common +from sat.tools.common import data_format from pyjamas.ui.TextArea import TextArea from pyjamas.ui.Button import Button @@ -265,7 +265,7 @@ if hasattr(self, 'title_panel'): content.update({'title': self.strproc(self.title_panel.getText())}) if hasattr(self, 'tags_panel'): - common.iter2dict('tag', self.tags_panel.getTags(), content) + data_format.iter2dict('tag', self.tags_panel.getTags(), content) return content def edit(self, edit=False, abort=False, sync=False): @@ -302,7 +302,7 @@ self.title_panel.setStackVisible(0, content['title'] != '') if hasattr(self, 'tags_panel'): - tags = list(common.dict2iter('tag', content)) + tags = list(data_format.dict2iter('tag', content)) self.tags_panel.setTags(tags) self.tags_panel.setStackVisible(0, len(tags) > 0) @@ -328,7 +328,7 @@ title = "" tags = "" - for tag in common.dict2iter('tag', content): + for tag in data_format.dict2iter('tag', content): tags += "<li><a>%s</a></li>" % html_tools.html_sanitize(tag) if tags: tags = '<ul class="mblog_tags">%s</ul>' % tags