Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
650:7e3cdc39c3e7 | 651:2df91d0308ac |
---|---|
323 @return list of microblog data (dict)""" | 323 @return list of microblog data (dict)""" |
324 profile = ISATSession(self.session).profile | 324 profile = ISATSession(self.session).profile |
325 d = self.asyncBridgeCall("getLastGroupBlogs", publisher_jid, max_item, profile) | 325 d = self.asyncBridgeCall("getLastGroupBlogs", publisher_jid, max_item, profile) |
326 return d | 326 return d |
327 | 327 |
328 def jsonrpc_getMassiveLastMblogs(self, publishers_type, publishers_list, max_item): | 328 def jsonrpc_getMassiveLastMblogs(self, publishers_type, publishers, max_item): |
329 """Get lasts microblogs posted by several contacts at once | 329 """Get lasts microblogs posted by several contacts at once |
330 @param publishers_type: one of "ALL", "GROUP", "JID" | 330 |
331 @param publishers_list: list of publishers type (empty list of all, list of groups or list of jids) | 331 @param publishers_type (unicode): one of "ALL", "GROUP", "JID" |
332 @param max_item: number of items to ask | 332 @param publishers (tuple(unicode)): tuple of publishers (empty list for all, list of groups or list of jids) |
333 @return: dictionary key=publisher's jid, value=list of microblog data (dict)""" | 333 @param max_item (int): number of items to ask |
334 profile = ISATSession(self.session).profile | 334 @return: dict{unicode: list[dict]) |
335 d = self.asyncBridgeCall("getMassiveLastGroupBlogs", publishers_type, publishers_list, max_item, profile) | 335 key: publisher's jid |
336 self.sat_host.bridge.massiveSubscribeGroupBlogs(publishers_type, publishers_list, profile) | 336 value: list of microblog data (dict) |
337 """ | |
338 profile = ISATSession(self.session).profile | |
339 d = self.asyncBridgeCall("getMassiveLastGroupBlogs", publishers_type, publishers, max_item, profile) | |
340 self.sat_host.bridge.massiveSubscribeGroupBlogs(publishers_type, publishers, profile) | |
337 return d | 341 return d |
338 | 342 |
339 def jsonrpc_getMblogComments(self, service, node): | 343 def jsonrpc_getMblogComments(self, service, node): |
340 """Get all comments of given node | 344 """Get all comments of given node |
341 @param service: jid of the service hosting the node | 345 @param service: jid of the service hosting the node |