Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-05-25 15:30:36 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-05-25 15:30:36 (GMT)
commit3d3e4be65e86c57e297cd62f0e9f447797b7ed4b (patch)
tree6cca53e488b19150f4c41bbfffe60bc74fb6cb84 /services
parent97214365362a04ed3c9bf05886557487703824f0 (diff)
services/presence/activity: Validate object path early
Diffstat (limited to 'services')
-rw-r--r--services/presence/activity.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/presence/activity.py b/services/presence/activity.py
index 4353fbb..be60f1e 100644
--- a/services/presence/activity.py
+++ b/services/presence/activity.py
@@ -104,7 +104,8 @@ class Activity(ExportedGObject):
raise ValueError("telepathy CM must be valid")
self._object_id = object_id
- self._object_path = _ACTIVITY_PATH + str(self._object_id)
+ self._object_path = dbus.ObjectPath(_ACTIVITY_PATH +
+ str(self._object_id))
self._buddies = []
self._joined = False
@@ -350,7 +351,7 @@ class Activity(ExportedGObject):
returns DBUS ObjectPath object
"""
- return dbus.ObjectPath(self._object_path)
+ return self._object_path
def get_joined_buddies(self):
"""Local method to return a list of valid buddies who are joined in