diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-13 08:34:23 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-13 08:34:23 -0700 |
commit | 331db30f8fa928463a0c5c41798002458d5700fe (patch) | |
tree | abddc12fdc8185e571f14adaa03c3a88ea45b541 /sleekxmpp/plugins/xep_0004/stanza | |
parent | 017d7ec62bf02c72729be668d1f8ef3b144222fb (diff) | |
download | slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.tar.gz slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.tar.bz2 slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.tar.xz slixmpp-331db30f8fa928463a0c5c41798002458d5700fe.zip |
Add form.field back in for backwards compatibility.
Diffstat (limited to 'sleekxmpp/plugins/xep_0004/stanza')
-rw-r--r-- | sleekxmpp/plugins/xep_0004/stanza/form.py | 4 |
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': |