Hi All,
I'm a telepathy newbie, and I'm trying to understand the following
code from the telepathy-python example.
reg = telepathy.client.ManagerRegistry()
reg.LoadManagers()
# get the gabble Connection Manager
self.cm = cm = reg.GetManager('gabble')
# get the parameters required to make a Jabber connection
# Begin Example 2-3
cm[CONNECTION_MANAGER].RequestConnection('jabber',
{
'account': account,
'password': password,
},
reply_handler = self.request_connection_cb,
error_handler = self.error_cb)
Question: Is cm an array or just one ConnectionManager object? The syntax
cm[CONNECTION_MANAGER] seems to suggest that it is an array. But the
GetManager() method seems to return just a ConnectionManager object.
Can someone please explain?
Thanks in advance.
A
_______________________________________________
telepathy mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/telepathy