summaryrefslogtreecommitdiff
path: root/examples/adhoc_user.py
AgeCommit message (Collapse)Author
2020-05-02Change session_start callback to async in most examplesmathieui
If we fetch the roster, we should probably wait until we get it back
2016-09-20Various XEPs: Remove deprecated aliases.Emmanuel Gil Peyrot
2014-09-01Move examples from the deprecated optparse to argparse, and remove the ↵Emmanuel Gil Peyrot
redundant -v option.
2014-09-01Import getpass from getpass, instead of using getpass.getpass everytime.Emmanuel Gil Peyrot
2014-09-01Remove (usually) useless comments in examples about OpenFire and how to ↵Emmanuel Gil Peyrot
verify a certificate.
2014-09-01Reintroduce XMLStream.process, making it run the asyncio event loop.Emmanuel Gil Peyrot
2014-09-01Remove raw_input usage and other python2 support in examplesEmmanuel Gil Peyrot
2014-09-01Set the shebang to python3 everywhere.Emmanuel Gil Peyrot
2014-07-17Rename to slixmppFlorent Le Coz
2012-10-24added setdefaultencoding method so reload(sys) not neededPaul Molodowitch
reload(sys) could cause problem in user code - ie, sys.stdout, excepthook, and displayhook would be reset, etc
2012-01-02Fix a typo in several files.Rodolfo Carvalho
This fixes several instances of "intial" for "initial".
2011-12-31Remove unused imports in the examples.Rodolfo Carvalho
2011-12-30Update examples to use the block'' argument instead of the deprecated ↵Rodolfo Carvalho
threaded''.
2011-12-30Replace pydns with dnspython in the comments of the examples.Rodolfo Carvalho
2011-08-18Update examples to work with Python3 (raw_input vs input)Lance Stout
2011-08-13Update XEP-0050 to use new IQ exceptions.Lance Stout
IqError is now caught and forwarded to the command error handler referenced in the session. Errors are now caught and processed by the session's error handler whether or not the results Iq stanza includes the <command> substanza. Added the option for blocking command calls. The blocking option is set during start_command with block=True. Subsequent command flow methods use session['block'] to determine their blocking behaviour. If you use blocking commands, then you will need to wrap your command calls in a try/except block for IqTimeout exceptions.
2011-03-24Left too much unlrelated code in example.Lance Stout
2011-03-24Added new XEP-0050 implementation.Lance Stout
Backward incompatibility alert! Please see examples/adhoc_provider.py for how to use the new plugin implementation, or the test examples in the files tests/test_stream_xep_0050.py and tests/test_stanza_xep_0050.py. Major changes: - May now have zero-step commands. Useful if a command is intended to be a dynamic status report that doesn't require any user input. - May use payloads other than data forms, such as a completely custom stanza type. - May include multiple payload items, such as multiple data forms, or a form and a custom stanza type. - Includes a command user API for calling adhoc commands on remote agents and managing the workflow. - Added support for note elements. Todo: - Add prev action support. You may use register_plugin('old_0050') to continue using the previous XEP-0050 implementation.