Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pippy_app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pippy_app.py b/pippy_app.py
index 3909d7a..3c0227e 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -36,6 +36,7 @@ from sugar.graphics.menuitem import MenuItem
from sugar.util import timestamp_to_elapsed_string
from sugar.graphics.toolbarbox import ToolbarBox
from sugar.activity.widgets import *
+from sugar.presence import presenceservice
from telepathy.client import Connection, Channel
from telepathy.interfaces import (
@@ -77,7 +78,8 @@ class Chat(ViewSourceActivity):
toolbar_box.toolbar.insert(StopButton(self), -1)
toolbar_box.show_all()
- self.owner = self._pservice.get_owner()
+ pservice = presenceservice.get_instance()
+ self.owner = pservice.get_owner()
self._chat_log = ''
# Auto vs manual scrolling:
self._scroll_auto = True
@@ -661,7 +663,6 @@ class TextChannelWrapper(object):
"""Get a Buddy from a (possibly channel-specific) handle."""
# XXX This will be made redundant once Presence Service
# provides buddy resolution
- from sugar.presence import presenceservice
# Get the Presence Service
pservice = presenceservice.get_instance()
# Get the Telepathy Connection