diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2008-11-07 12:50:27 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-11-07 12:50:27 (GMT) |
commit | 6aaa28bede46818fd34f86accce6e007f017f9e1 (patch) | |
tree | f49f6019670f17fa44e70cdbc8ea3f2dc1d9a293 | |
parent | 381a0e2de72a8c2ba73a2038ec86f304619db049 (diff) |
Sugar API update: Use self.shared_activity not self._shared_activity
-rw-r--r-- | readactivity.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/readactivity.py b/readactivity.py index d643e4b..f16267e 100644 --- a/readactivity.py +++ b/readactivity.py @@ -199,7 +199,7 @@ class ReadActivity(activity.Activity): # start on the read toolbar self.toolbox.set_current_toolbar(_TOOLBAR_READ) - if self._shared_activity: + if self.shared_activity: # We're joining if self.get_shared(): # Already joined for some reason, just get the document @@ -380,7 +380,7 @@ class ReadActivity(activity.Activity): def _download_document(self, tube_id, path): # FIXME: should ideally have the CM listen on a Unix socket # instead of IPv4 (might be more compatible with Rainbow) - chan = self._shared_activity.telepathy_tubes_chan + chan = self.shared_activity.telepathy_tubes_chan iface = chan[telepathy.CHANNEL_TYPE_TUBES] addr = iface.AcceptStreamTube(tube_id, telepathy.SOCKET_ADDRESS_TYPE_IPV4, @@ -500,7 +500,7 @@ class ReadActivity(activity.Activity): self._tempfile) # Make a tube for it - chan = self._shared_activity.telepathy_tubes_chan + chan = self.shared_activity.telepathy_tubes_chan iface = chan[telepathy.CHANNEL_TYPE_TUBES] self._fileserver_tube_id = iface.OfferStreamTube(READ_STREAM_SERVICE, {}, @@ -510,7 +510,7 @@ class ReadActivity(activity.Activity): def watch_for_tubes(self): """Watch for new tubes.""" - tubes_chan = self._shared_activity.telepathy_tubes_chan + tubes_chan = self.shared_activity.telepathy_tubes_chan tubes_chan[telepathy.CHANNEL_TYPE_TUBES].connect_to_signal('NewTube', self._new_tube_cb) |