XEP-0004: Remove deprecated getXML() and fromXML() methods.

This commit is contained in:
Emmanuel Gil Peyrot
2016-09-20 16:34:48 +09:00
parent 0edeefd977
commit b8e091233e
3 changed files with 5 additions and 17 deletions

View File

@@ -81,18 +81,6 @@ class Form(ElementBase):
self.append(field)
return field
def getXML(self, type='submit'):
self['type'] = type
log.warning("Form.getXML() is deprecated API compatibility " + \
"with plugins/old_0004.py")
return self.xml
def fromXML(self, xml):
log.warning("Form.fromXML() is deprecated API compatibility " + \
"with plugins/old_0004.py")
n = Form(xml=xml)
return n
def add_item(self, values):
itemXML = ET.Element('{%s}item' % self.namespace)
self.xml.append(itemXML)