summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0004/__init__.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-11 21:59:55 -0700
committerLance Stout <lancestout@gmail.com>2011-08-11 21:59:55 -0700
commit9b7ed73f95145f88887d6fc3daa1bd2a9596b943 (patch)
treefe5e828b16044cde1b4cbc8f6dd299463ac11b64 /sleekxmpp/plugins/xep_0004/__init__.py
parenta189cb8333d5f59caa9015f0ded222696987d957 (diff)
downloadslixmpp-9b7ed73f95145f88887d6fc3daa1bd2a9596b943.tar.gz
slixmpp-9b7ed73f95145f88887d6fc3daa1bd2a9596b943.tar.bz2
slixmpp-9b7ed73f95145f88887d6fc3daa1bd2a9596b943.tar.xz
slixmpp-9b7ed73f95145f88887d6fc3daa1bd2a9596b943.zip
Reorganize XEP-0004.
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.
Diffstat (limited to 'sleekxmpp/plugins/xep_0004/__init__.py')
-rw-r--r--sleekxmpp/plugins/xep_0004/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0004/__init__.py b/sleekxmpp/plugins/xep_0004/__init__.py
new file mode 100644
index 00000000..aad4e15f
--- /dev/null
+++ b/sleekxmpp/plugins/xep_0004/__init__.py
@@ -0,0 +1,11 @@
+"""
+ SleekXMPP: The Sleek XMPP Library
+ Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout
+ This file is part of SleekXMPP.
+
+ See the file LICENSE for copying permission.
+"""
+
+from sleekxmpp.plugins.xep_0004.stanza import Form
+from sleekxmpp.plugins.xep_0004.stanza import FormField, FieldOption
+from sleekxmpp.plugins.xep_0004.dataforms import xep_0004