diff options
author | Seth Nickell <seth@gnome.org> | 2004-05-30 06:26:24 +0000 |
---|---|---|
committer | Seth Nickell <seth@gnome.org> | 2004-05-30 06:26:24 +0000 |
commit | 7dc64ab60a704755551c47f3c5c3bf219badae68 (patch) | |
tree | 4d738ec5c3573aabd6aac4a01e543fbc88216618 | |
parent | 8a10d91cc0b6f75c07e69c4663b8aea4e6096be2 (diff) |
2004-05-30 Seth Nickell <seth@gnome.org>
* python/examples/example-client.py:
* python/examples/example-service.py:
Take it back. Lists seem to work but they're broken
in the test suite. Make the base examples use
lists (works fine).
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | python/examples/example-client.py | 4 | ||||
-rw-r--r-- | python/examples/example-service.py | 2 |
3 files changed, 12 insertions, 3 deletions
@@ -1,5 +1,14 @@ 2004-05-30 Seth Nickell <seth@gnome.org> + * python/examples/example-client.py: + * python/examples/example-service.py: + + Take it back. Lists seem to work but they're broken + in the test suite. Make the base examples use + lists (works fine). + +2004-05-30 Seth Nickell <seth@gnome.org> + * python/dbus_bindings.pyx.in: * python/tests/test-client.py: diff --git a/python/examples/example-client.py b/python/examples/example-client.py index c1393ecc..b3b22f56 100644 --- a/python/examples/example-client.py +++ b/python/examples/example-client.py @@ -7,6 +7,6 @@ remote_service = bus.get_service("org.designfu.SampleService") remote_object = remote_service.get_object("/SomeObject", "org.designfu.SampleInterface") -hello_reply = remote_object.HelloWorld("Hello from example-client.py!") +hello_reply_list = remote_object.HelloWorld("Hello from example-client.py!") -print (hello_reply) +print (hello_reply_list) diff --git a/python/examples/example-service.py b/python/examples/example-service.py index d1460802..ceb7f11d 100644 --- a/python/examples/example-service.py +++ b/python/examples/example-service.py @@ -9,7 +9,7 @@ class SomeObject(dbus.Object): def HelloWorld(self, hello_message): print (hello_message) - return "Hello from example-service.py" + return ["Hello", "from example-service.py"] session_bus = dbus.SessionBus() service = dbus.Service("org.designfu.SampleService", bus=session_bus) |