summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0050
AgeCommit message (Collapse)Author
2015-07-15XEP_0050: Form not iterable in commandRobert Robinson
Cannot pass in a form into the initial command and have it show up in the payload of the session. Line 344 makes this possible when following the standard workflow.
2013-01-25Tighten up session checks in XEP-0050 plugin.Lance Stout
2012-07-31Fix disco in XEP-0050 plugin.Lance Stout
Closes issue #191
2012-07-26Enhance plugin config with attribute accessors.Lance Stout
This makes updating the config after plugin initialization much easier.
2012-07-10Update plugins to use session_bind handler for disco, and use plugin_endLance Stout
2012-06-19Ordering fixes for Python3.3Lance Stout
2012-04-30Collapse initial payload to a single stanza instead of a list if only one ↵Lance Stout
stanza is found.
2012-04-30Add full support for initial payloads with adhoc commands, plus test.Lance Stout
2012-04-30Allow providing initial payload to adhoc commands.Lance Stout
2012-04-03Fix memory leak with adhoc command sessions.Lance Stout
Fixes issue #155
2012-03-12Ensure the adhoc command items node exists.Lance Stout
If the plugin is loaded and no commands are defined, we can at least return a proper empty response instead of an item-not-found error.
2012-03-12Move XEP-0050 to new system.Lance Stout
2012-01-02Merge pull request #132 from rhcarvalho/masterLance Stout
Fix a typo in several files.
2012-01-02Fix a typo in several files.Rodolfo Carvalho
This fixes several instances of "intial" for "initial".
2011-12-04Ensure that adhoc command clients have form plugin registered.Lance Stout
The form plugin was being registered on first use for providers, but not for clients receiving the form. NOTE: Use of non-form payloads will have this issue - adhoc command clients will need to have an expectation beforehand of what the command payload will be to properly load stanza plugins.
2011-11-19Tidy up logging calls.Lance Stout
2011-11-20This change stops sleekxmpp from spending huge amounts of time unnecessarily ↵Vijay Pandurangan
computing logging data that may never be used. This is a HUGE performance improvement; in some of my test runs, unnecessary string creation was accounting for > 60% of all CPU time. Note that using % in a string will _always_ perform the sting substitutions, because the strings are constructed before the function is called. So log.debug('%s' % expensiveoperation()) will take about the same CPU time whether or not the logging level is DEBUG or INFO. if you use , no substitutions are performed unless the string is actually logged
2011-08-26The ifrom parameter doesn't need special treatment.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-08-04Cosmetic PEP8 fixes.Lance Stout
2011-06-08Fix XEP-0050 issue with Unicode string type checking.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.