slixmpp/sleekxmpp
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
..
plugins Fixed typo 2010-11-18 16:23:18 -05:00
stanza Added option for iq.send to accept a callhandler. 2010-12-07 17:19:39 -05:00
test Added option for iq.send to accept a callhandler. 2010-12-07 17:19:39 -05:00
thirdparty Logging no longer uses root logger. 2010-11-06 01:28:59 -04:00
xmlstream Added __repr__ for JIDs. 2010-11-18 00:03:39 -05:00
__init__.py
basexmpp.py Adding stream tests for XEP-0030. 2010-11-18 15:50:45 -05:00
clientxmpp.py Fix Node set to None error. 2010-11-17 16:01:27 -05:00
componentxmpp.py Doesn't fail if host has NO SRV record 2010-11-09 01:53:41 +08:00
exceptions.py