diff 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
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/dbus_frontend_template.py	Mon Feb 21 01:38:16 2011 +0100
+++ b/src/bridge/bridge_constructor/dbus_frontend_template.py	Thu Mar 24 21:15:26 2011 +0100
@@ -96,4 +96,6 @@
             data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
         return self.db_req_iface.gatewayRegister(action, target, data, profile_key)
 
+    def getLastMicroblogs(self, jid, max_items, profile_key='@DEFAULT@', callback=None, errback=None):
+        return self.db_comm_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback)