Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_blog.py @ 2943:781b5b6a33ee
jp (blog): fixed the deserialisation issue when using template output
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 05 May 2019 18:50:32 +0200 |
parents | b2f323237fce |
children | efb915a20d5d |
comparison
equal
deleted
inserted
replaced
2942:8dbef2d190eb | 2943:781b5b6a33ee |
---|---|
231 help=_(u"microblog data key(s) to display (default: depend of verbosity)"), | 231 help=_(u"microblog data key(s) to display (default: depend of verbosity)"), |
232 ) | 232 ) |
233 # TODO: add MAM filters | 233 # TODO: add MAM filters |
234 | 234 |
235 def template_data_mapping(self, data): | 235 def template_data_mapping(self, data): |
236 return {u"items": data_objects.BlogItems(data)} | 236 return {u"items": data_objects.BlogItems(data, deserialise=False)} |
237 | 237 |
238 def format_comments(self, item, keys): | 238 def format_comments(self, item, keys): |
239 comments_data = data_format.dict2iterdict( | 239 comments_data = data_format.dict2iterdict( |
240 u"comments", item, (u"node", u"service"), pop=True | 240 u"comments", item, (u"node", u"service"), pop=True |
241 ) | 241 ) |