Mercurial > libervia-backend
diff src/bridge/bridge_constructor/dbus_frontend_template.py @ 337:4402ac630712
bridge: async callback managed in bridge_constructor + misc
- the new flag async make the method asynchronous
- new method asyncConnect (connect which return when the user is connected)
- setMicroblogAccess added to DBus frontend
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 May 2011 16:47:09 +0200 |
parents | 5fc5e6a7e5c3 |
children | eb9d33ba4e36 |
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/dbus_frontend_template.py Wed May 25 17:18:05 2011 +0200 +++ b/src/bridge/bridge_constructor/dbus_frontend_template.py Thu May 26 16:47:09 2011 +0200 @@ -110,4 +110,7 @@ def sendPersonalEvent(self, event_type, data, profile_key='@DEFAULT@'): return self.db_comm_iface.sendPersonalEvent(event_type, data, profile_key) + + def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): + return self.db_comm_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback)