comparison frontends/src/bridge/DBus.py @ 303:2b52a5da0978

plugin XEP_0277: microblog access model can now be changed plugin XEP_0060: added some method to manage pubsub nodes
author Goffi <goffi@goffi.org>
date Thu, 24 Mar 2011 21:15:26 +0100
parents a00e87d48213
children e04ccf122bb6
comparison
equal deleted inserted replaced
302:9f3a6cf91668 303:2b52a5da0978
213 def gatewayRegister(self, action, target, data, profile_key='@DEFAULT@'): 213 def gatewayRegister(self, action, target, data, profile_key='@DEFAULT@'):
214 if data == None: 214 if data == None:
215 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature 215 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
216 return self.db_req_iface.gatewayRegister(action, target, data, profile_key) 216 return self.db_req_iface.gatewayRegister(action, target, data, profile_key)
217 217
218 def getLastMicroblogs(self, jid, max_items, profile_key='@DEFAULT@', callback=None, errback=None):
219 return self.db_comm_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback)