Im trying to write a client that takes control of a channel. The approver method gets called, and prints, but none of the three commented out lines will work, they all just hang. What am i doing wrong?. The whole file is <a href="http://pastebin.com/3RD9zi5M">here.</a><div>
<br><div><div><div>def AddDispatchOperation(self, channels, dispatch, properties):</div><div> </div><div> print "conect to signal on :" +dispatch</div><div> </div><div> #dispatch[CHANNEL_DISPATCH_OPERATION].HandleWith('org.freedesktop.Telepathy.Client.ExampleHandler') </div>
<div> #dispatch[CHANNEL_DISPATCH_OPERATION].connect_to_signal('ChannelLost',self.channel_lost) </div><div> #dispatch[CHANNEL_DISPATCH_OPERATION].Claim() </div></div></div></div><div><br></div><div>
<br></div><div>Thanks</div>