Mercurial > libervia-web
diff src/server/server.py @ 724:994be887e843
browser and server sides: bridge method mbGetLast has been renamed to mbGet and takes a new parameter "item_ids"
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 10 Sep 2015 07:40:59 +0200 |
parents | 5745b5e6586a |
children | 03ccd68a6dab |
line wrap: on
line diff
--- a/src/server/server.py Wed Aug 26 09:15:56 2015 +0200 +++ b/src/server/server.py Thu Sep 10 07:40:59 2015 +0200 @@ -315,17 +315,18 @@ profile = ISATSession(self.session).profile return self.asyncBridgeCall("mbRetract", service, node, items, profile) - def jsonrpc_mbGetLast(self, service_jid, node, max_items, extra): + def jsonrpc_mbGet(self, service_jid, node, max_items, item_ids, extra): """Get last microblogs from publisher_jid @param service_jid (unicode): pubsub service, usually publisher jid @param node(unicode): mblogs node, or empty string to get the defaut one @param max_items (int): maximum number of item to get or C.NO_LIMIT to get everything + @param item_ids (list[unicode]): list of item IDs @param rsm (dict): TODO @return: a deferred couple with the list of items and metadatas. """ profile = ISATSession(self.session).profile - return self.asyncBridgeCall("mbGetLast", service_jid, node, max_items, extra, profile) + return self.asyncBridgeCall("mbGet", service_jid, node, max_items, item_ids, extra, profile) def jsonrpc_mbGetFromMany(self, publishers_type, publishers, max_items, extra): """Get many blog nodes at once