diff options
Diffstat (limited to 'examples/client')
-rwxr-xr-x | examples/client/python/contact-list.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/client/python/contact-list.py b/examples/client/python/contact-list.py index 6a0b331b1..532931d55 100755 --- a/examples/client/python/contact-list.py +++ b/examples/client/python/contact-list.py @@ -4,7 +4,7 @@ import os import gobject gobject.threads_init() -from gi.repository import TelepathyGLib +from gi.repository import TelepathyGLib as Tp def manager_prepared_cb(manager, result, loop): manager.prepare_finish(result) @@ -12,21 +12,21 @@ def manager_prepared_cb(manager, result, loop): for account in manager.get_valid_accounts(): connection = account.get_connection() if connection is not None and \ - connection.get_contact_list_state() == TelepathyGLib.ContactListState.SUCCESS: + connection.get_contact_list_state() == Tp.ContactListState.SUCCESS: contacts = connection.dup_contact_list() for contact in contacts: print "%s (%s)" % (contact.get_identifier(), contact.get_contact_groups()) loop.quit() if __name__ == '__main__': - TelepathyGLib.debug_set_flags(os.getenv('EXAMPLE_DEBUG', '')) + Tp.debug_set_flags(os.getenv('EXAMPLE_DEBUG', '')) loop = gobject.MainLoop() - manager = TelepathyGLib.AccountManager.dup() + manager = Tp.AccountManager.dup() factory = manager.get_factory() - factory.add_account_features([TelepathyGLib.Account.get_feature_quark_connection()]) - factory.add_connection_features([TelepathyGLib.Connection.get_feature_quark_contact_list()]) - factory.add_contact_features([TelepathyGLib.ContactFeature.CONTACT_GROUPS]) + factory.add_account_features([Tp.Account.get_feature_quark_connection()]) + factory.add_connection_features([Tp.Connection.get_feature_quark_contact_list()]) + factory.add_contact_features([Tp.ContactFeature.CONTACT_GROUPS]) manager.prepare_async(None, manager_prepared_cb, loop) loop.run() |