comparison src/bridge/bridge_constructor/dbus_frontend_template.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 1d2e0dfe7114
children e04ccf122bb6
comparison
equal deleted inserted replaced
302:9f3a6cf91668 303:2b52a5da0978
94 def gatewayRegister(self, action, target, data, profile_key='@DEFAULT@'): 94 def gatewayRegister(self, action, target, data, profile_key='@DEFAULT@'):
95 if data == None: 95 if data == None:
96 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature 96 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
97 return self.db_req_iface.gatewayRegister(action, target, data, profile_key) 97 return self.db_req_iface.gatewayRegister(action, target, data, profile_key)
98 98
99 def getLastMicroblogs(self, jid, max_items, profile_key='@DEFAULT@', callback=None, errback=None):
100 return self.db_comm_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback)
99 101