dbus/python/examples example-client.py, 1.3, 1.4 example-service.py,
1.3, 1.4
Seth Nickell
seth at pdx.freedesktop.org
Sat May 29 23:26:27 PDT 2004
Update of /cvs/dbus/dbus/python/examples
In directory pdx:/tmp/cvs-serv16322/python/examples
Modified Files:
example-client.py example-service.py
Log Message:
2004-05-30 Seth Nickell <seth at 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).
Index: example-client.py
===================================================================
RCS file: /cvs/dbus/dbus/python/examples/example-client.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/example-client.py 29 May 2004 22:37:13 -0000 1.3
+++ b/example-client.py 30 May 2004 06:26:24 -0000 1.4
@@ -7,6 +7,6 @@
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: example-service.py
===================================================================
RCS file: /cvs/dbus/dbus/python/examples/example-service.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/example-service.py 29 May 2004 22:37:13 -0000 1.3
+++ b/example-service.py 30 May 2004 06:26:24 -0000 1.4
@@ -9,7 +9,7 @@
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)
More information about the dbus-commit
mailing list