summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0066/oob.py
AgeCommit message (Collapse)Author
2012-03-12Move XEP-0066 to new system.Lance Stout
2012-03-11Update plugin list and use correct names.Lance Stout
2012-02-18Fix instances of using undefined variables.Lance Stout
2011-08-26The ifrom parameter doesn't need special treatment.Lance Stout
2011-07-05Added support for custom OOB transfer handlers.Lance Stout
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-03Add logging to XEP-0066.Lance Stout
2011-07-03Added XEP-0066: Out-of-Band DataLance Stout