changeset 261:3df0c3634c29

browser side: management of extra data for sendMblogComment, allowing to send rich text for comments
author Goffi <goffi@goffi.org>
date Fri, 15 Nov 2013 15:34:57 +0100
parents 533d68585866
children 30c01671e338
files browser_side/panels.py libervia.tac
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/panels.py	Fri Nov 15 15:34:55 2013 +0100
+++ b/browser_side/panels.py	Fri Nov 15 15:34:57 2013 +0100
@@ -440,7 +440,7 @@
             comments_node = self.selected_entry.comments
             if not comments_node:
                 raise Exception("ERROR: comments node is empty")
-            self.host.bridge.call("sendMblogComment", None, comments_node, text)
+            self.host.bridge.call("sendMblogComment", None, comments_node, text, {})
         elif not self._accepted_groups:
             # we are entering a public microblog
             self.host.bridge.call("sendMblog", None, "PUBLIC", None, text, {})
--- a/libervia.tac	Fri Nov 15 15:34:55 2013 +0100
+++ b/libervia.tac	Fri Nov 15 15:34:57 2013 +0100
@@ -248,14 +248,14 @@
         else:
             raise Exception("Invalid data")
 
-    def jsonrpc_sendMblogComment(self, node, text):
+    def jsonrpc_sendMblogComment(self, node, text, extra={}):
         """ Send microblog message
         @param node: url of the comments node
         @param text: comment
         """
         profile = ISATSession(self.session).profile
         if node and text:
-            return self.sat_host.bridge.sendGroupBlogComment(node, text, profile)
+            return self.sat_host.bridge.sendGroupBlogComment(node, text, extra, profile)
         else:
             raise Exception("Invalid data")