SleekXMPP/sleekxmpp
Lance Stout 1d22a04721 Added support for custom OOB transfer handlers.
Accepting download requests can be done using:

    self['xep_0066'].register_url_handler(handler=self.oob_download)
    # Add jid=... to specify a handler for a particular JID for a
    # componenent.

    def oob_download(self, iq):
        if iq['from'] not in self.custom_oob_whitelist:
            raise XMPPError('not-authorized')
        try:
            data = urllib2.urlopen(iq['oob_transfer']['url'])
            file = open('oob_download', 'w+')
            file.write(data.read())
            file.close()
            data.close()
        except:
            raise XMPPError('item-not-found')
2011-07-05 09:22:17 -07:00
..
plugins Added support for custom OOB transfer handlers. 2011-07-05 09:22:17 -07:00
stanza So using sys.excepthook to catch errors only works once. 2011-07-01 15:18:10 -07:00
test Don't use the send queue for stream initialization. 2011-05-27 17:00:57 -07:00
thirdparty Fix thirdparty imports for Python3 2011-01-19 17:49:39 -05:00
xmlstream Added wait parameter to disconnect. 2011-07-04 18:47:57 -07:00
__init__.py Update version number to beta6. 2011-07-03 15:47:12 -07:00
basexmpp.py Fix another roster issue. 2011-06-15 10:55:36 -07:00
clientxmpp.py Don't use the send queue for stream initialization. 2011-05-27 17:00:57 -07:00
componentxmpp.py Send component handshake immediately. 2011-06-08 10:00:01 -07:00
exceptions.py XMPPError exceptions can keep a stanza's contents. 2011-02-11 15:20:26 -05:00