comparison src/bridge/DBus.py @ 1314:bb9c32249778 frontends_multi_profiles

core: added getEntitiesData which get cache data for several entities at once
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:39:51 +0100
parents faa1129559b8
children ba87b940f07a
comparison
equal deleted inserted replaced
1313:a8d7500090f6 1314:bb9c32249778
269 async_callbacks=None) 269 async_callbacks=None)
270 def getContactsFromGroup(self, group, profile_key="@DEFAULT@"): 270 def getContactsFromGroup(self, group, profile_key="@DEFAULT@"):
271 return self._callback("getContactsFromGroup", unicode(group), unicode(profile_key)) 271 return self._callback("getContactsFromGroup", unicode(group), unicode(profile_key))
272 272
273 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 273 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
274 in_signature='asass', out_signature='a{sa{ss}}',
275 async_callbacks=None)
276 def getEntitiesData(self, jids, keys, profile):
277 return self._callback("getEntitiesData", jids, keys, unicode(profile))
278
279 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
274 in_signature='sass', out_signature='a{ss}', 280 in_signature='sass', out_signature='a{ss}',
275 async_callbacks=None) 281 async_callbacks=None)
276 def getEntityData(self, jid, keys, profile): 282 def getEntityData(self, jid, keys, profile):
277 return self._callback("getEntityData", unicode(jid), keys, unicode(profile)) 283 return self._callback("getEntityData", unicode(jid), keys, unicode(profile))
278 284