diff src/server/server.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 4f7550a083b4
children e1d067378ad3
line wrap: on
line diff
--- a/src/server/server.py	Fri Feb 27 00:56:08 2015 +0100
+++ b/src/server/server.py	Fri Feb 27 01:08:36 2015 +0100
@@ -325,15 +325,19 @@
         d = self.asyncBridgeCall("getLastGroupBlogs", publisher_jid, max_item, profile)
         return d
 
-    def jsonrpc_getMassiveLastMblogs(self, publishers_type, publishers_list, max_item):
+    def jsonrpc_getMassiveLastMblogs(self, publishers_type, publishers, max_item):
         """Get lasts microblogs posted by several contacts at once
-        @param publishers_type: one of "ALL", "GROUP", "JID"
-        @param publishers_list: list of publishers type (empty list of all, list of groups or list of jids)
-        @param max_item: number of items to ask
-        @return: dictionary key=publisher's jid, value=list of microblog data (dict)"""
+
+        @param publishers_type (unicode): one of "ALL", "GROUP", "JID"
+        @param publishers (tuple(unicode)): tuple of publishers (empty list for all, list of groups or list of jids)
+        @param max_item (int): number of items to ask
+        @return: dict{unicode: list[dict])
+            key: publisher's jid
+            value: list of microblog data (dict)
+        """
         profile = ISATSession(self.session).profile
-        d = self.asyncBridgeCall("getMassiveLastGroupBlogs", publishers_type, publishers_list, max_item, profile)
-        self.sat_host.bridge.massiveSubscribeGroupBlogs(publishers_type, publishers_list, profile)
+        d = self.asyncBridgeCall("getMassiveLastGroupBlogs", publishers_type, publishers, max_item, profile)
+        self.sat_host.bridge.massiveSubscribeGroupBlogs(publishers_type, publishers, profile)
         return d
 
     def jsonrpc_getMblogComments(self, service, node):