diff options
-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) |