# HG changeset patch # User souliane # Date 1448404135 -3600 # Node ID 8eeb98659de27716bd509655bdfa350c497db4d9 # Parent e69f411c16a593f61e0fc5b37f0dc54f18551d7e browser_side (blog): tags were not read when receiving a message diff -r e69f411c16a5 -r 8eeb98659de2 src/browser/sat_browser/blog.py --- a/src/browser/sat_browser/blog.py Tue Nov 24 23:27:56 2015 +0100 +++ b/src/browser/sat_browser/blog.py Tue Nov 24 23:28:55 2015 +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.core.i18n import _ #, D_ from pyjamas.ui.SimplePanel import SimplePanel @@ -122,6 +122,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) if self.mode == C.ENTRY_MODE_TEXT: # assume raw text message have no title @@ -257,7 +258,7 @@ # message syntax in mb_data for the frontend to use it instead of current syntax. self.item.content_rich = content['text'] self.item.title = content['title'] - self.item.tags = quick_blog.mbdata2tags(content) + self.item.tags = list(common.dict2iter('tag', content)) else: self.item.content = content['text']