Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-02 10:46:12 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-08-02 10:52:06 (GMT)
commit997ca380edbc59bbae1da9950369d3f50ffa6991 (patch)
tree144d99c0edcf14daad62883bd375d716d9ec9594
parentcc79d564aba8ca381483ab81141ca726291a8826 (diff)
Remove access to a private member
-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