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).
This commit is contained in:
Seth Nickell 2004-05-30 06:26:24 +00:00
parent 8a10d91cc0
commit 7dc64ab60a
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,12 @@
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:

View 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)

View 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)