# HG changeset patch # User Goffi # Date 1323513134 -3600 # Node ID 397a88b340f3ea55ec04f35971720b1ee42e6d35 # Parent 2d40b0f5fb379b60eeb70a9a1db3374ad0b8d5bf browser: fixed call to getRoomsJoined diff -r 2d40b0f5fb37 -r 397a88b340f3 libervia.py --- a/libervia.py Sat Dec 10 10:41:40 2011 +0100 +++ b/libervia.py Sat Dec 10 11:32:14 2011 +0100 @@ -77,7 +77,7 @@ def __init__(self): LiberviaJsonProxy.__init__(self, "/json_api", ["getContacts", "addContact", "sendMessage", "sendMblog", "getMblogNodes", "getProfileJid", "getHistory", "getPresenceStatus", - "joinMUC", "getRoomJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed", + "joinMUC", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed", "tarotGamePlayCards", "getWaitingSub", "subscription", "delContact", "updateContact", "getCardCache"]) class BridgeSignals(LiberviaJsonProxy): @@ -255,7 +255,7 @@ #we can now ask our status self.bridge.call('getPresenceStatus', self._getPresenceStatusCb) #the rooms where we are - self.bridge.call('getRoomJoined', self._getRoomJoinedCb) + self.bridge.call('getRoomsJoined', self._getRoomsJoinedCb) #and if there is any subscription request waiting for us self.bridge.call('getWaitingSub', self._getWaitingSubCb) @@ -359,7 +359,7 @@ args = presence_data[entity][resource] self._presenceUpdateCb("%s/%s" % (entity, resource), *args) - def _getRoomJoinedCb(self, room_data): + def _getRoomsJoinedCb(self, room_data): for room in room_data: self._roomJoinedCb(*room)