diff libervia/pages/blog/view/page_meta.py @ 1156:3048bd137aaf

server, browser: changed blog items serialisation following changes in backend
author Goffi <goffi@goffi.org>
date Sat, 23 Feb 2019 21:03:21 +0100
parents 29eb15062416
children 469d0de8da0e
line wrap: on
line diff
--- a/libervia/pages/blog/view/page_meta.py	Fri Feb 22 18:50:33 2019 +0100
+++ b/libervia/pages/blog/view/page_meta.py	Sat Feb 23 21:03:21 2019 +0100
@@ -1,5 +1,8 @@
 #!/usr/bin/env python2.7
 # -*- coding: utf-8 -*-
+import unicodedata
+import re
+import cgi
 from libervia.server.constants import Const as C
 from twisted.words.protocols.jabber import jid
 from twisted.internet import defer
@@ -8,11 +11,10 @@
 from sat.core.i18n import _
 from sat.tools.common.template import safe
 from sat.tools.common import uri
+from sat.tools.common import data_format
 from libervia.server import utils
-import unicodedata
-import re
-import cgi
 from sat.core.log import getLogger
+
 log = getLogger(__name__)
 
 """generic blog (with service/node provided)"""
@@ -276,7 +278,11 @@
             self.pageError(request, C.HTTP_BAD_REQUEST)
         comment_data = {u"content": body}
         try:
-            yield self.host.bridgeCall(u'mbSend', service, node, comment_data, profile)
+            yield self.host.bridgeCall(u'mbSend',
+                                       service,
+                                       node,
+                                       data_format.serialise(comment_data),
+                                       profile)
         except Exception as e:
             if u"forbidden" in unicode(e):
                 self.pageError(request, 401)