Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 1482:80cd55dd5b04
core, bridge: added getFeatures method:
this async method indicate which plugins are activated, and add an additional data dictionary with plugin specific data.
The result can be general (if profile==C.PROF_KEY_NONE) or specific to profile.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 21 Aug 2015 17:08:26 +0200 |
parents | ceba6fd77739 |
children | 7d7e57a84792 |
comparison
equal
deleted
inserted
replaced
1481:621b045cd284 | 1482:80cd55dd5b04 |
---|---|
286 async_callbacks=None) | 286 async_callbacks=None) |
287 def getEntityData(self, jid, keys, profile): | 287 def getEntityData(self, jid, keys, profile): |
288 return self._callback("getEntityData", unicode(jid), keys, unicode(profile)) | 288 return self._callback("getEntityData", unicode(jid), keys, unicode(profile)) |
289 | 289 |
290 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 290 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
291 in_signature='s', out_signature='a{sa{ss}}', | |
292 async_callbacks=('callback', 'errback')) | |
293 def getFeatures(self, profile_key, callback=None, errback=None): | |
294 return self._callback("getFeatures", unicode(profile_key), callback=callback, errback=errback) | |
295 | |
296 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
291 in_signature='ssibss', out_signature='a(dssssa{ss})', | 297 in_signature='ssibss', out_signature='a(dssssa{ss})', |
292 async_callbacks=('callback', 'errback')) | 298 async_callbacks=('callback', 'errback')) |
293 def getHistory(self, from_jid, to_jid, limit, between=True, search='', profile="@NONE@", callback=None, errback=None): | 299 def getHistory(self, from_jid, to_jid, limit, between=True, search='', profile="@NONE@", callback=None, errback=None): |
294 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, unicode(search), unicode(profile), callback=callback, errback=errback) | 300 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, unicode(search), unicode(profile), callback=callback, errback=errback) |
295 | 301 |