Mercurial > libervia-web
comparison src/server/server.py @ 705:531eacb82e9f
browser and server sides: renamed max to max_ after sat's changeset 1423 (882e5fabf68c)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 04 Jun 2015 12:03:45 +0200 |
parents | 5319110a862c |
children | fe03637fe5a6 |
comparison
equal
deleted
inserted
replaced
704:5319110a862c | 705:531eacb82e9f |
---|---|
319 """Get specified microblogs posted by a contact | 319 """Get specified microblogs posted by a contact |
320 @param publisher_jid: jid of the publisher | 320 @param publisher_jid: jid of the publisher |
321 @param item_ids: list of microblogs items IDs | 321 @param item_ids: list of microblogs items IDs |
322 @return list of microblog data (dict)""" | 322 @return list of microblog data (dict)""" |
323 profile = ISATSession(self.session).profile | 323 profile = ISATSession(self.session).profile |
324 d = self.asyncBridgeCall("getGroupBlogs", publisher_jid, item_ids, {'max': unicode(max_items)}, False, profile) | 324 d = self.asyncBridgeCall("getGroupBlogs", publisher_jid, item_ids, {'max_': unicode(max_items)}, False, profile) |
325 return d | 325 return d |
326 | 326 |
327 def jsonrpc_getMblogsWithComments(self, publisher_jid, item_ids, max_comments=C.RSM_MAX_COMMENTS): | 327 def jsonrpc_getMblogsWithComments(self, publisher_jid, item_ids, max_comments=C.RSM_MAX_COMMENTS): |
328 """Get specified microblogs posted by a contact and their comments | 328 """Get specified microblogs posted by a contact and their comments |
329 @param publisher_jid: jid of the publisher | 329 @param publisher_jid: jid of the publisher |
343 key: publisher's jid | 343 key: publisher's jid |
344 value: list of microblog data (dict) | 344 value: list of microblog data (dict) |
345 """ | 345 """ |
346 profile = ISATSession(self.session).profile | 346 profile = ISATSession(self.session).profile |
347 if rsm is None: | 347 if rsm is None: |
348 rsm = {'max': unicode(C.RSM_MAX_ITEMS)} | 348 rsm = {'max_': unicode(C.RSM_MAX_ITEMS)} |
349 d = self.asyncBridgeCall("getMassiveGroupBlogs", publishers_type, publishers, rsm, profile) | 349 d = self.asyncBridgeCall("getMassiveGroupBlogs", publishers_type, publishers, rsm, profile) |
350 self.sat_host.bridge.massiveSubscribeGroupBlogs(publishers_type, publishers, profile) | 350 self.sat_host.bridge.massiveSubscribeGroupBlogs(publishers_type, publishers, profile) |
351 return d | 351 return d |
352 | 352 |
353 def jsonrpc_getMblogComments(self, service, node, rsm=None): | 353 def jsonrpc_getMblogComments(self, service, node, rsm=None): |
355 @param service: jid of the service hosting the node | 355 @param service: jid of the service hosting the node |
356 @param node: comments node | 356 @param node: comments node |
357 """ | 357 """ |
358 profile = ISATSession(self.session).profile | 358 profile = ISATSession(self.session).profile |
359 if rsm is None: | 359 if rsm is None: |
360 rsm = {'max': unicode(C.RSM_MAX_COMMENTS)} | 360 rsm = {'max_': unicode(C.RSM_MAX_COMMENTS)} |
361 d = self.asyncBridgeCall("getGroupBlogComments", service, node, rsm, profile) | 361 d = self.asyncBridgeCall("getGroupBlogComments", service, node, rsm, profile) |
362 return d | 362 return d |
363 | 363 |
364 def jsonrpc_getPresenceStatuses(self): | 364 def jsonrpc_getPresenceStatuses(self): |
365 """Get Presence information for connected contacts""" | 365 """Get Presence information for connected contacts""" |