Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/AbiWordActivity.py
diff options
context:
space:
mode:
authorMarc Maurer <uwog@uwog.net>2007-08-28 19:15:48 (GMT)
committer Marc Maurer <uwog@uwog.net>2007-08-28 19:15:48 (GMT)
commit2b5e3b32e2278b9dbeb2963f74804f7fbe0eaf24 (patch)
tree54e36108f759c7c18100688473348ce0f6a2465d /AbiWordActivity.py
parent3e82b2730dacf53a39261b85206cc6786def69c1 (diff)
Update to new Tube API (patch from cassidy)
Diffstat (limited to 'AbiWordActivity.py')
-rw-r--r--AbiWordActivity.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/AbiWordActivity.py b/AbiWordActivity.py
index 5645767..e8bdc61 100644
--- a/AbiWordActivity.py
+++ b/AbiWordActivity.py
@@ -151,9 +151,10 @@ class AbiWordActivity (Activity):
self._shared_activity.connect('buddy-left', self._buddy_left_cb)
logger.debug('This is my activity: offering a tube...')
- id = self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].OfferTube(
- telepathy.TUBE_TYPE_DBUS, "com.abisource.abiword.abicollab", {})
- logger.debug('Tube address: %s', self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].GetDBusServerAddress(id))
+ id = self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].OfferDBusTube(
+ \"com.abisource.abiword.abicollab\", {})
+ logger.debug(\'Tube address: %s\', self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].GetDBusTubeAddress(id))
+
def _setup(self):
logger.debug("_setup()")
@@ -232,7 +233,7 @@ class AbiWordActivity (Activity):
if (type == telepathy.TUBE_TYPE_DBUS and
service == "com.abisource.abiword.abicollab"):
if state == telepathy.TUBE_STATE_LOCAL_PENDING:
- self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].AcceptTube(id)
+ self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].AcceptDBusTube(id)
initiator_path = None;
contacts = self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].GetDBusNames(id)
@@ -249,7 +250,7 @@ class AbiWordActivity (Activity):
logger.error('Unable to get the dbus path of the tube initiator')
else:
# pass this tube to abicollab
- address = self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].GetDBusServerAddress(id)
+ address = self.tubes_chan[telepathy.CHANNEL_TYPE_TUBES].GetDBusTubeAddress(id)
if self.joined:
logger.debug('Passing tube address to abicollab (join): %s', address)
self.abiword_canvas.invoke_cmd('com.abisource.abiword.abicollab.olpc.joinTube', address, 0, 0)