Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/PresenceService
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-07-23 14:21:00 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-07-23 14:21:00 (GMT)
commit7c996b00114c1cdc6579af57a7da63639b5fe1d5 (patch)
tree340367b4a5f38ccc2db853a1e5996fad0851ba27 /shell/PresenceService
parent1d0b4e12b8f6a0ddc7df0c80fe34796d127f80c5 (diff)
More fixes, and convert python PS bindings to more glib style method names
Diffstat (limited to 'shell/PresenceService')
-rw-r--r--shell/PresenceService/PresenceService.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/PresenceService/PresenceService.py b/shell/PresenceService/PresenceService.py
index 9df9077..04a4b63 100644
--- a/shell/PresenceService/PresenceService.py
+++ b/shell/PresenceService/PresenceService.py
@@ -182,6 +182,17 @@ class PresenceServiceDBusHelper(dbus.service.Object):
port, domain)
return service.object_path()
+ @dbus.service.method(_PRESENCE_DBUS_INTERFACE,
+ in_signature="s", out_signature="")
+ def registerServiceType(self, stype):
+ self._parent.register_service_type(stype)
+
+ @dbus.service.method(_PRESENCE_DBUS_INTERFACE,
+ in_signature="s", out_signature="")
+ def unregisterServiceType(self, stype):
+ self._parent.unregister_service_type(stype)
+
+
class PresenceService(object):
def __init__(self):
# interface -> IP address: interfaces we've gotten events on so far