diff src/browser/libervia_main.py @ 651:2df91d0308ac frontends_multi_profiles

browser_side, server_side: MicroblogPanel.onGroupDrop and bridge method getMassiveLastMBlogs now only accepts the publishers as a set of unicode (no more None value or single unicode).
author souliane <souliane@mailoo.org>
date Fri, 27 Feb 2015 01:08:36 +0100
parents 6d3142b782c3
children 40c72f3b7638
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Fri Feb 27 00:56:08 2015 +0100
+++ b/src/browser/libervia_main.py	Fri Feb 27 01:08:36 2015 +0100
@@ -348,12 +348,12 @@
         # we fill the panels already here
         for wid in self.widgets.getWidgets(blog.MicroblogPanel):
             if wid.accept_all():
-                self.bridge.getMassiveLastMblogs('ALL', [], 10, profile=C.PROF_KEY_NONE, callback=wid.massiveInsert)
+                self.bridge.getMassiveLastMblogs('ALL', (), 10, profile=C.PROF_KEY_NONE, callback=wid.massiveInsert)
             else:
                 self.bridge.getMassiveLastMblogs('GROUP', wid.accepted_groups, 10, profile=C.PROF_KEY_NONE, callback=wid.massiveInsert)
 
         #we ask for our own microblogs:
-        self.bridge.getMassiveLastMblogs('JID', [unicode(self.whoami.bare)], 10, profile=C.PROF_KEY_NONE, callback=self._ownBlogsFills)
+        self.bridge.getMassiveLastMblogs('JID', (unicode(self.whoami.bare),), 10, profile=C.PROF_KEY_NONE, callback=self._ownBlogsFills)
 
         # initialize plugins which waited for the connection to be done
         for plugin in self.plugins.values():
@@ -562,7 +562,7 @@
         for lib_wid in self.libervia_widgets:
             if isinstance(lib_wid, blog.MicroblogPanel):
                 if lib_wid.isJidAccepted(entity):
-                    self.bridge.call('getMassiveLastMblogs', lib_wid.massiveInsert, 'JID', [entity], 10)
+                    self.bridge.call('getMassiveLastMblogs', lib_wid.massiveInsert, 'JID', (entity,), 10)
 
     # def getLiberviaWidget(self, class_, entity, ignoreOtherTabs=True):
     #     """Get the corresponding panel if it exists.