summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-07-15 15:21:43 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-07-15 15:21:43 +0000
commita7595655fb892b4ecab852aeb971cf53bdff09cc (patch)
tree06dbb47a00b1fddec1bf8cc9b1c16dd019e2e376 /python
parent16dbb17287c183c6f4e749a33fcffe6c03cb5766 (diff)
* bus/dispatch.c, test/test-service.c: Add testcase
for sending messages to oneself (TODO item). * python/service.py (class Object): Swap ordering of bus_name and object_path parameters to better support inheritance. * doc/dbus-tutorial.xml: change Python docs to reflect change in parameter ordering and fix the inheritance section. * doc/TODO: remove sending message to oneself TODO item
Diffstat (limited to 'python')
-rw-r--r--python/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/service.py b/python/service.py
index b7504dca..18a2c81b 100644
--- a/python/service.py
+++ b/python/service.py
@@ -151,9 +151,9 @@ class Object:
"""
__metaclass__ = ObjectType
- def __init__(self, object_path, name):
+ def __init__(self, bus_name, object_path):
self._object_path = object_path
- self._name = name
+ self._name = bus_name
self._bus = name.get_bus()
self._connection = self._bus.get_connection()