comparison frontends/src/bridge/DBus.py @ 304:e04ccf122bb6

microblog sending - Bridge: added sendPersonalEvent to DBus frontend - plugin XEP_0277: * fixed unicode issue * node options are now changed instead of node being deleted/recreated for setMicroblogAccess - xml_tools: fixed unicode issue
author Goffi <goffi@goffi.org>
date Sat, 26 Mar 2011 17:51:19 +0100
parents 2b52a5da0978
children 1e4575e12581
comparison
equal deleted inserted replaced
303:2b52a5da0978 304:e04ccf122bb6
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): 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) 219 return self.db_comm_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback)
220
221 def sendPersonalEvent(self, event_type, data, profile_key='@DEFAULT@'):
222 return self.db_comm_iface.sendPersonalEvent(event_type, data, profile_key)