Lance Stout 5f2fc67c40 Added option for iq.send to accept a callhandler.
The callback will be a stream level handler, and will not
execute in its own thread. If you must have a thread, have the
callback function raise a custom event, which can be processed
by another event handler, which may run in an individual thread,
like so:

def handle_reply(self, iq):
    self.event('custom_event', iq)

def do_long_operation_in_thread(self, iq):
    ...

self.add_event_handler('custom_event', self.do_long_operation_in_thread)

...take out already prepared iq stanza...
iq.send(callback=self.handle_reply)
2010-12-07 17:19:39 -05:00
..
2010-10-07 19:42:28 -04:00
2010-10-07 10:58:13 -04:00
2010-11-05 21:18:48 -04:00
2010-10-07 10:58:13 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00
2010-11-05 21:18:48 -04:00