Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 345:e6047415868d
Bridge: added updateContact method
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 May 2011 20:24:02 +0200 |
parents | 4402ac630712 |
children | 6b5626c37909 |
comparison
equal
deleted
inserted
replaced
344:f19771d2e63b | 345:e6047415868d |
---|---|
298 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, | 298 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, |
299 in_signature='sss', out_signature='', | 299 in_signature='sss', out_signature='', |
300 async_callbacks=None) | 300 async_callbacks=None) |
301 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): | 301 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): |
302 return self.cb["subscription"](unicode(sub_type), unicode(entity), unicode(profile_key)) | 302 return self.cb["subscription"](unicode(sub_type), unicode(entity), unicode(profile_key)) |
303 | |
304 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, | |
305 in_signature='ssass', out_signature='', | |
306 async_callbacks=None) | |
307 def updateContact(self, entity, name, groups, profile_key="@DEFAULT@"): | |
308 return self.cb["updateContact"](unicode(entity), unicode(name), groups, unicode(profile_key)) | |
303 | 309 |
304 | 310 |
305 def __attributes(self, in_sign): | 311 def __attributes(self, in_sign): |
306 """Return arguments to user given a in_sign | 312 """Return arguments to user given a in_sign |
307 @param in_sign: in_sign in the short form (using s,a,i,b etc) | 313 @param in_sign: in_sign in the short form (using s,a,i,b etc) |