diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-06-04 12:24:58 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-06-04 12:24:58 +0100 |
commit | f1c2dcd0f7b9d177877aafed95fe64343862c1cf (patch) | |
tree | 86764b287a6333066c37344dea7476c2c934b76b /dbus/service.py | |
parent | a370850a68659a771690c2dac7148e371b6c9b51 (diff) |
dbus.service: change unexport() to remove_from_connection() at J5's request
Diffstat (limited to 'dbus/service.py')
-rw-r--r-- | dbus/service.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/dbus/service.py b/dbus/service.py index 65af3ff..ae50751 100644 --- a/dbus/service.py +++ b/dbus/service.py @@ -426,8 +426,10 @@ class Object(Interface): __dbus_object_path__ = property(lambda self: self._object_path, None, None, "The D-Bus object path of this object") - def unexport(self, connection=None, path=None): - """Unexport this object. It will no longer be accessible via D-Bus. + def remove_from_connection(self, connection=None, path=None): + """Make this object inaccessible via the given D-Bus connection + and object path. If no connection or path is specified, + the object ceases to be accessible via any connection or path. It's not currently possible to export an object on more than one connection or with more than one object-path, but this will be @@ -435,11 +437,11 @@ class Object(Interface): :Parameters: `connection` : dbus.connection.Connection or None - Only unexport the object from this Connection. If None, - unexport from all Connections. + Only remove the object from this Connection. If None, + remove from all Connections on which it's exported. `path` : dbus.ObjectPath or other str, or None - Only unexport the object from this object path. If None, - unexport from all object paths. + Only remove the object from this object path. If None, + remove from all object paths. :Raises LookupError: if the object was not exported on the requested connection or path, or (if both are None) was not exported at all. |