diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-01-24 11:10:45 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-01-24 11:10:45 +0000 |
commit | 9b8da8eb706601d2a4608777373839a00ce03ba5 (patch) | |
tree | 484677ade686d853a3cb8f6a32814302e7fe7c82 /test | |
parent | ae4b36ada7f01743a4d8a13c3361a5a5bf2e73a4 (diff) |
spec-to-python.xsl: Don't use generated constants at all, just use string literals for interface names (keeps things simple)
Diffstat (limited to 'test')
-rw-r--r-- | test/expected/_Test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/expected/_Test.py b/test/expected/_Test.py index a60c04b3..9eb400d6 100644 --- a/test/expected/_Test.py +++ b/test/expected/_Test.py @@ -18,17 +18,17 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ import dbus.service -from telepathy._generated.interfaces import TEST_INTERFACE + class Test(dbus.service.Interface): """\ A test case for the spec processing. """ def __init__(self): - self._interfaces.add(TEST_INTERFACE) + self._interfaces.add('org.freedesktop.Telepathy.SpecAutoGenTest') - @dbus.service.method(TEST_INTERFACE, in_signature='ba{sv}s', out_signature='a(uv)') + @dbus.service.method('org.freedesktop.Telepathy.SpecAutoGenTest', in_signature='ba{sv}s', out_signature='a(uv)') def DoStuff(self, badger, mushroom, snake): """ Does stuff. @@ -36,7 +36,7 @@ class Test(dbus.service.Interface): """ raise NotImplementedError - @dbus.service.signal(TEST_INTERFACE, signature='aysb') + @dbus.service.signal('org.freedesktop.Telepathy.SpecAutoGenTest', signature='aysb') def StuffHappened(self, stoat, ferret, weasel): """ Emitted when stuff happened. |