summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins')
-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':