Mercurial > libervia-backend
comparison src/bridge/bridge_constructor/dbus_frontend_template.py @ 469:db4c2b82bab6
D-Bus bridge: fixed getRoomsSubjects call + fixed dynamic addition of methods + added getLastGroupBlogs method
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 01 Apr 2012 19:45:35 +0200 |
parents | cf005701624b |
children | 5c916b99d0f6 |
comparison
equal
deleted
inserted
replaced
468:c97640c90a94 | 469:db4c2b82bab6 |
---|---|
61 | 61 |
62 #methods from plugins | 62 #methods from plugins |
63 def getRoomsJoined(self, profile_key): | 63 def getRoomsJoined(self, profile_key): |
64 return self.db_plugin_iface.getRoomsJoined(profile_key) | 64 return self.db_plugin_iface.getRoomsJoined(profile_key) |
65 | 65 |
66 def getRoomsSubjectss(self, profile_key): | 66 def getRoomsSubjects(self, profile_key): |
67 return self.db_plugin_iface.getRoomsSubjectss(profile_key) | 67 return self.db_plugin_iface.getRoomsSubjects(profile_key) |
68 | 68 |
69 def joinMUC(self, room_jid, nick, options, profile_key): | 69 def joinMUC(self, room_jid, nick, options, profile_key): |
70 if options == None: | 70 if options == None: |
71 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature | 71 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature |
72 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key) | 72 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key) |
134 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key) | 134 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key) |
135 | 135 |
136 def getLastMicroblogs(self, jid, max_items, profile_key, callback=None, errback=None): | 136 def getLastMicroblogs(self, jid, max_items, profile_key, callback=None, errback=None): |
137 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) | 137 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) |
138 | 138 |
139 def getMblogNodes(self, profile_key, callback=None, errback=None): | |
140 return self.db_plugin_iface.getMblogNodes(profile_key, reply_handler=callback, error_handler=errback) | |
141 | |
142 def sendGroupBlog(self, groups, message, profile_key): | 139 def sendGroupBlog(self, groups, message, profile_key): |
143 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key) | 140 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key) |
141 | |
142 def getLastGroupBlogs(self, jid, max_items, profile_key, callback=None, errback=None): | |
143 return self.db_plugin_iface.getLastGroupBlogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) | |
144 | 144 |
145 def sendPersonalEvent(self, event_type, data, profile_key): | 145 def sendPersonalEvent(self, event_type, data, profile_key): |
146 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key) | 146 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key) |
147 | 147 |
148 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): | 148 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): |