Hi All,<br> I'm a telepathy newbie, and I'm trying to understand the following code from the telepathy-python example. <br><span style="font-family: courier new,monospace;"><br>reg = telepathy.client.ManagerRegistry()</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">reg.LoadManagers()</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># get the gabble Connection Manager</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><a href="http://self.cm">self.cm</a> = cm = reg.GetManager('gabble')</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"># get the parameters required to make a Jabber connection</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># Begin Example 2-3</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">cm[CONNECTION_MANAGER].RequestConnection('jabber',</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> 'account': account,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 'password': password,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> },</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> reply_handler = self.request_connection_cb,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> error_handler = self.error_cb)</span><br><br>Question: Is <span style="font-family: courier new,monospace;">cm </span>an array or just one <span style="font-family: courier new,monospace;">ConnectionManager </span>object? The syntax <span style="font-family: courier new,monospace;">cm[CONNECTION_MANAGER]</span> seems to suggest that it is an array. But the <span style="font-family: courier new,monospace;">GetManager()</span> method seems to return just a <span style="font-family: courier new,monospace;">ConnectionManager </span>object.<br>
<br>Can someone please explain?<br><br>Thanks in advance.<br>A<br>