mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Add form.field back in for backwards compatibility.
This commit is contained in:
parent
017d7ec62b
commit
331db30f8f
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ class Form(ElementBase):
|
||||||
# If we had to generate xml
|
# If we had to generate xml
|
||||||
self['type'] = 'form'
|
self['type'] = 'form'
|
||||||
|
|
||||||
|
@property
|
||||||
|
def field(self):
|
||||||
|
return self['fields']
|
||||||
|
|
||||||
def set_type(self, ftype):
|
def set_type(self, ftype):
|
||||||
self._set_attr('type', ftype)
|
self._set_attr('type', ftype)
|
||||||
if ftype == 'submit':
|
if ftype == 'submit':
|
||||||
|
|
Loading…
Reference in a new issue