2004-05-30 Seth Nickell <seth@gnome.org>
authorSeth Nickell <seth@gnome.org>
Sun, 30 May 2004 06:26:24 +0000 (06:26 +0000)
committerSeth Nickell <seth@gnome.org>
Sun, 30 May 2004 06:26:24 +0000 (06:26 +0000)
* 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).

ChangeLog
python/examples/example-client.py
python/examples/example-service.py

index 936ceaf..e6bf2c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
 
index c1393ec..b3b22f5 100644 (file)
@@ -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)
index d146080..ceb7f11 100644 (file)
@@ -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)