diff libervia.tac @ 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 a20815c75c15
children cc778206b7ae
line wrap: on
line diff
--- 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")