summaryrefslogtreecommitdiff
path: root/examples/client/python/ensure-channel.py
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-28 13:41:03 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-01-28 13:41:03 +0100
commit9885c9acb2066076817ec497852b8c6784f98b64 (patch)
tree106fe23c4ad07957a13110edb6f2e6bd64bf9ae1 /examples/client/python/ensure-channel.py
parentc0cdc8f8baf5a9f0f3b947801f2dba1b21b54b17 (diff)
remove abbreviations
Diffstat (limited to 'examples/client/python/ensure-channel.py')
-rwxr-xr-xexamples/client/python/ensure-channel.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/client/python/ensure-channel.py b/examples/client/python/ensure-channel.py
index ddadb6b2d..c480600fe 100755
--- a/examples/client/python/ensure-channel.py
+++ b/examples/client/python/ensure-channel.py
@@ -35,8 +35,8 @@ def create_request_dict(action, contact_id):
else:
usage()
-def ensure_channel_cb(req, result, main_loop):
- req.ensure_channel_finish(result)
+def ensure_channel_cb(request, result, main_loop):
+ request.ensure_channel_finish(result)
main_loop.quit()
@@ -50,19 +50,19 @@ if __name__ == '__main__':
_, account_id, action, contact_id = sys.argv
- mgr = TelepathyGLib.AccountManager.dup()
+ account_manager = TelepathyGLib.AccountManager.dup()
- account = mgr.ensure_account("%s%s" % (TelepathyGLib.ACCOUNT_OBJECT_PATH_BASE,
- account_id))
+ account = account_manager.ensure_account("%s%s" %
+ (TelepathyGLib.ACCOUNT_OBJECT_PATH_BASE, account_id))
request_dict = create_request_dict(action, contact_id)
- req = TelepathyGLib.AccountChannelRequest.new(account, request_dict, 0)
+ request = TelepathyGLib.AccountChannelRequest.new(account, request_dict, 0)
# FIXME: for some reason TelepathyGLib.USER_ACTION_TIME_CURRENT_TIME is
# not defined (bgo #639206)
main_loop = gobject.MainLoop()
- req.ensure_channel_async("", None, ensure_channel_cb, main_loop)
+ request.ensure_channel_async("", None, ensure_channel_cb, main_loop)
main_loop.run()