[Telepathy-commits] [telepathy-qt4/master] account-manager.py: fix signature of Get, Set
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Jan 7 05:23:29 PST 2009
---
tests/account-manager.py | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/account-manager.py b/tests/account-manager.py
index 48914c1..4707f85 100644
--- a/tests/account-manager.py
+++ b/tests/account-manager.py
@@ -68,12 +68,11 @@ class AccountManager(Object):
raise ValueError('No such interface')
@method(dbus.PROPERTIES_IFACE,
- in_signature='s',
+ in_signature='ss',
out_signature='v')
- def Get(self, iface_and_prop):
- if iface_and_prop.startswith(AM_IFACE + '.'):
+ def Get(self, iface, prop):
+ if iface == AM_IFACE:
props = self._am_props()
- prop = iface_and_prop[(len(AM_IFACE) + 1):]
else:
raise ValueError('No such interface')
@@ -83,8 +82,8 @@ class AccountManager(Object):
raise ValueError('No such property')
@method(dbus.PROPERTIES_IFACE,
- in_signature='sv')
- def Set(self, iface_and_prop, value):
+ in_signature='ssv')
+ def Set(self, iface, prop, value):
raise NotImplementedError('No mutable properties')
@signal(AM_IFACE, signature='ob')
--
1.5.6.5
More information about the Telepathy-commits
mailing list