summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-13 08:34:23 -0700
committerLance Stout <lancestout@gmail.com>2011-08-13 08:34:23 -0700
commit331db30f8fa928463a0c5c41798002458d5700fe (patch)
treeabddc12fdc8185e571f14adaa03c3a88ea45b541
parent017d7ec62bf02c72729be668d1f8ef3b144222fb (diff)
downloadslixmpp-331db30f8fa928463a0c5c41798002458d5700fe.tar.gz
slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.tar.bz2
slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.tar.xz
slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.zip
Add form.field back in for backwards compatibility.
-rw-r--r--sleekxmpp/plugins/xep_0004/stanza/form.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0004/stanza/form.py b/sleekxmpp/plugins/xep_0004/stanza/form.py
index d85266fc..993f7b12 100644
--- a/sleekxmpp/plugins/xep_0004/stanza/form.py
+++ b/sleekxmpp/plugins/xep_0004/stanza/form.py
@@ -41,6 +41,10 @@ class Form(ElementBase):
# If we had to generate xml
self['type'] = 'form'
+ @property
+ def field(self):
+ return self['fields']
+
def set_type(self, ftype):
self._set_attr('type', ftype)
if ftype == 'submit':