* fix: speed more important than gaining a single line

This commit is contained in:
Eray Özkural
2005-11-05 21:39:39 +00:00
parent ad97cdb741
commit 4e05b397c7
+3 -2
View File
@@ -687,11 +687,12 @@ class autoxml(oo.autosuper, oo.autoprop):
#print node, tag + '/' + comp_tag, nodes
if len(nodes)==0 and req==mandatory:
errs.append(where + _('Mandatory list empty'))
for ix in range(len(nodes)):
node = nodes[ix]
ix = 1
for node in range(nodes):
dummy = node.ownerDocument.createElement("Dummy")
dummy.appendChild(node)
l.append(decode_item(dummy, errs, where + unicode("[%s]" % ix)))
ix += 1
return l
def encode(node, l, errs):