Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/presence
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-06-22 03:49:37 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-06-22 03:49:37 (GMT)
commit974ef81c1ed1f23dc208da019eb91242d2b65579 (patch)
treed22f08031079980113ee03d5e87450327401b4ce /sugar/presence
parente956f2259705acb7bc81060f7423cf4f2214f615 (diff)
Get back mesh chat (for the everyone tab)
Diffstat (limited to 'sugar/presence')
-rw-r--r--sugar/presence/PresenceService.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sugar/presence/PresenceService.py b/sugar/presence/PresenceService.py
index c42e52e..276bd69 100644
--- a/sugar/presence/PresenceService.py
+++ b/sugar/presence/PresenceService.py
@@ -123,6 +123,14 @@ class PresenceService(gobject.GObject):
self._server = dbus.Interface(self._bus.get_object(avahi.DBUS_NAME,
avahi.DBUS_PATH_SERVER), avahi.DBUS_INTERFACE_SERVER)
+ def get_service(self, full_stype):
+ """Find a particular service by full service type."""
+ services = self._find_service_adv(stype = full_stype)
+ if len(services) > 0:
+ return services[0]
+ else:
+ return None
+
def get_activity_service(self, activity, short_stype):
"""Find a particular service by activity and service type."""
# Decompose service type if we can