Mercurial > libervia-web
changeset 762:8eeb98659de2
browser_side (blog): tags were not read when receiving a message
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 24 Nov 2015 23:28:55 +0100 |
parents | e69f411c16a5 |
children | 7390cba0bb44 |
files | src/browser/sat_browser/blog.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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']