slixmpp/sleekxmpp/stanza
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
..
__init__.py Updated RootStanza to use registerStanzaPlugin, and be PEP8 compliant. 2010-07-28 13:14:41 -04:00
atom.py More PEP8 compliance cleanups. 2010-10-06 15:12:39 -04:00
error.py Underscore names by default. 2010-10-17 22:04:42 -04:00
htmlim.py Underscore names by default. 2010-10-17 22:04:42 -04:00
iq.py Added option for iq.send to accept a callhandler. 2010-12-07 17:19:39 -05:00
message.py Underscore names by default. 2010-10-17 22:04:42 -04:00
nick.py Underscore names by default. 2010-10-17 22:04:42 -04:00
presence.py presence no longer replies when exception is caught and tweaks to presence events 2010-10-21 16:59:15 -07:00
rootstanza.py Logging no longer uses root logger. 2010-11-06 01:28:59 -04:00
roster.py Underscore names by default. 2010-10-17 22:04:42 -04:00