comparison browser_side/panels.py @ 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 2a93f8e6f989
comparison
equal deleted inserted replaced
260:533d68585866 261:3df0c3634c29
438 if self.selected_entry: 438 if self.selected_entry:
439 # we are entering a comment 439 # we are entering a comment
440 comments_node = self.selected_entry.comments 440 comments_node = self.selected_entry.comments
441 if not comments_node: 441 if not comments_node:
442 raise Exception("ERROR: comments node is empty") 442 raise Exception("ERROR: comments node is empty")
443 self.host.bridge.call("sendMblogComment", None, comments_node, text) 443 self.host.bridge.call("sendMblogComment", None, comments_node, text, {})
444 elif not self._accepted_groups: 444 elif not self._accepted_groups:
445 # we are entering a public microblog 445 # we are entering a public microblog
446 self.host.bridge.call("sendMblog", None, "PUBLIC", None, text, {}) 446 self.host.bridge.call("sendMblog", None, "PUBLIC", None, text, {})
447 else: 447 else:
448 # we are entering a microblog restricted to a group 448 # we are entering a microblog restricted to a group