Small bug in common/dataforms.py.

This commit is contained in:
Tomasz Melcer 2006-08-01 16:01:26 +00:00
parent 3b08d054be
commit 75227bb835
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class DataForm(xmpp.Node, object):
# change every <field/> to DataField object
for item in iter_elements(self, 'item'):
for field in iter_elements(item, 'field'):
field.delChild(field)
item.delChild(field)
field.addChild(node=DataField(node=field))
else:
self._mode = DATAFORM_SINGLE