summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004
AgeCommit message (Collapse)Author
2015-09-15Add test case for reported and itemsRobert Robinson
Previous stanza test cases didn't have test cases for reported and item field types in forms. This fixes that issue. Modified stanzabase to use an ordered dict so that can guarentee the that 'items' in a form are added after reported. Also updated the set of interfaces that are stored in Form to be a ordered set. Used the order set implementation from: https://code.activestate.com/recipes/576694/ The OrderedSet implementation is licensed under the MIT license and is developed by the same developer of the ordereddict.
2015-09-14Fix xep_0050 changes after form refactor.Robert Robinson
2015-09-14Force forms and fields to use plugin resolutionRobert Robinson
Instead of using the interface/subinterface code that was currently being implemented for the plugin. (cherry picked from commit 1467ec7)
2014-08-23cleanup semicolons, whitespace and mutable default argumentsRobin Gloster
2014-08-21Fix some more Unicode in **kwargs issues in Py2.6Lance Stout
2014-08-18Revert "cleanup semicolons, whitespace and mutable default arguments"Robin Gloster
This reverts commit 7265682a4d57d88956cb54f98f7a470465bbf417.
2014-08-18cleanup semicolons, whitespace and mutable default argumentsRobin Gloster
2013-02-14Resolve most Python3.3 related issues.Lance Stout
Tests now run successfully. Occasionally get single error related to duplicated payload data in pubsub items when copying stanza values.
2012-10-19Allow passing form instructions as a list of strings.Lance Stout
2012-07-10Update plugins to use session_bind handler for disco, and use plugin_endLance Stout
2012-03-16Fix error when assigning form values that include booleans.Lance Stout
2012-03-12Move XEP-0004 to new system.Lance Stout
2012-01-11update_caps() can now do presence broadcasting.Lance Stout
As part of adding this feature: - fixed bug in update_caps() not assigning verstrings - fixed xep_0004 typo - can now use None as a roster key which will map to boundjid.bare - fixed using JID objects in disco node handlers - fixed failing test related to get_roster Several of these bugs I've fixed before, so I either didn't push them earlier, or I clobbered something when merging. *shrug*
2011-12-30Add option to disable condensing and converting form values.Lance Stout
XEP-0115 needs to use the raw XML character data.
2011-12-13Use OrderedDicts instead of regular dictionaries when returning values from ↵Lance Stout
forms.
2011-12-13Ensure that item fields have the proper type.Lance Stout
The item fields were not setting their type based on the reported field's type attribute, so values were not being encoded properly. Fixes issue #121
2011-08-17Return '' instead of None from form fields with no values.Lance Stout
2011-08-13Add form.field back in for backwards compatibility.Lance Stout
2011-08-13Add tests for setting a form's type to 'submit' or 'cancel'.Lance Stout
Form fields now remember their current type if the type is deleted. This allows for fields to properly format their values if set after the form has been changed to the 'submit' type.
2011-08-11Reorganize XEP-0004.Lance Stout
Changes: May now use underscored method names form.field is replaced by form['fields'] form.get_fields no longer accepts use_dict parameter, it always returns an OrderedDict now form.set_fields will accept either an OrderedDict, or a list of (var, dict) tuples as before. Setting the form type to 'submit' will remove extra meta data from the form fields, leaving just the 'var' and 'value' Setting the form type to 'cancel' will remove all fields.