diff options
author | Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk> | 2011-01-31 17:23:00 (GMT) |
---|---|---|
committer | Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk> | 2011-01-31 17:39:03 (GMT) |
commit | 5c39670305846ac2abf3e8b7405e57c7511c32ff (patch) | |
tree | 743fe4fe0cfdefd1874e7722d5c014095b79abb2 /TurtleArt | |
parent | dbbbdc91ce77f4b00d33d83a7f0cf5a670e2caf3 (diff) |
Renamed collaboration as tacollaboration to avoid name clash
Diffstat (limited to 'TurtleArt')
-rw-r--r-- | TurtleArt/tacollaboration.py (renamed from TurtleArt/collaboration.py) | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/TurtleArt/collaboration.py b/TurtleArt/tacollaboration.py index b76b3c1..3760d15 100644 --- a/TurtleArt/collaboration.py +++ b/TurtleArt/tacollaboration.py @@ -3,9 +3,15 @@ from dbus.service import signal from dbus.gobject_service import ExportedGObject import logging import telepathy -from sugar import profile -from sugar.presence import presenceservice -from sugar.presence.tubeconn import TubeConnection + +try: + from sugar import profile + from sugar.presence import presenceservice + from sugar.presence.tubeconn import TubeConnection +except: + profile = None + from collaboration import presenceservice + from collaboration.tubeconn import TubeConnection SERVICE = 'org.laptop.TurtleArtActivity' IFACE = SERVICE @@ -225,7 +231,11 @@ class Collaboration(): return self._tw.nick def _get_colors(self): - return profile.get_color().to_string() + if profile: + colors = profile.get_color().to_string() + else: + colors = self._activity.get_colors() + return colors class ChatTube(ExportedGObject): |