Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGuillaume Desmottes <cassidy@cass-wks.(none)>2007-04-13 16:29:50 (GMT)
committer Guillaume Desmottes <cassidy@cass-wks.(none)>2007-04-13 16:29:50 (GMT)
commit6b6b72f9c9711a22e99bc1d79a2a0973abba7653 (patch)
tree62bd57bcd1e82655806a52ce189185fda646b5a1 /services
parent7b40f9bf60a0529e0fb06f9b6065c8b429009f52 (diff)
implement org.laptop.Sugar.Presence.GetPreferredConnection
Diffstat (limited to 'services')
-rw-r--r--services/presence/presenceservice.py5
-rw-r--r--services/presence/server_plugin.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py
index cbf2606..7cca572 100644
--- a/services/presence/presenceservice.py
+++ b/services/presence/presenceservice.py
@@ -295,6 +295,11 @@ class PresenceService(dbus.service.Object):
activity = self._share_activity(actid, atype, name, properties)
return activity.object_path()
+ @dbus.service.method(_PRESENCE_INTERFACE, out_signature="so")
+ def GetPreferredConnection(self):
+ conn = self._server_plugin.get_connection()
+ return str(conn.service_name), conn.object_path
+
def cleanup(self):
for tp in self._handles_buddies:
tp.cleanup()
diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
index b7210aa..b8eca03 100644
--- a/services/presence/server_plugin.py
+++ b/services/presence/server_plugin.py
@@ -128,7 +128,7 @@ class ServerPlugin(gobject.GObject):
self._set_self_alias()
if properties.has_key("color"):
- self._set_self._olpc_properties()
+ self._set_self_olpc_properties()
def _owner_icon_changed_cb(self, owner, icon):
logging.debug("Owner icon changed to size %d" % len(str(icon)))