changeset 380:5e0e2032928c

browser_side: bug fixes microblogs: - currently selected panel is taken in account when the unibox is toggled on - sending message to restricted groups from the editor that is integrated into MicroblogPanel now works
author souliane <souliane@mailoo.org>
date Tue, 25 Feb 2014 12:41:31 +0100
parents d2324f093942
children b96b8b666d17
files browser_side/panels.py libervia_server/__init__.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/panels.py	Wed Feb 26 01:50:49 2014 +0100
+++ b/browser_side/panels.py	Tue Feb 25 12:41:31 2014 +0100
@@ -83,6 +83,7 @@
             self.setCellWidth(self.unibox, '100%')
             self.button.addClickListener(self.openRichMessageEditor)
             self.unibox.addKey("@@: ")
+            self.unibox.onSelectedChange(self.host.getSelected())
 
     def openRichMessageEditor(self):
         """Open the rich text editor."""
--- a/libervia_server/__init__.py	Wed Feb 26 01:50:49 2014 +0100
+++ b/libervia_server/__init__.py	Tue Feb 25 12:41:31 2014 +0100
@@ -242,7 +242,8 @@
                 return self.sat_host.bridge.sendGroupBlog("PUBLIC", [], text, extra, profile)
             else:
                 print "sending group blog"
-                return self.sat_host.bridge.sendGroupBlog("GROUP", [dest], text, extra, profile)
+                dest = dest if isinstance(dest, list) else [dest]
+                return self.sat_host.bridge.sendGroupBlog("GROUP", dest, text, extra, profile)
         else:
             raise Exception("Invalid data")