From 331db30f8fa928463a0c5c41798002458d5700fe Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 13 Aug 2011 08:34:23 -0700 Subject: Add form.field back in for backwards compatibility. --- sleekxmpp/plugins/xep_0004/stanza/form.py | 4 ++++ 1 file changed, 4 insertions(+) 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': -- cgit v1.2.3