* fix: speed more important than gaining a single line
This commit is contained in:
+3
-2
@@ -687,11 +687,12 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
#print node, tag + '/' + comp_tag, nodes
|
#print node, tag + '/' + comp_tag, nodes
|
||||||
if len(nodes)==0 and req==mandatory:
|
if len(nodes)==0 and req==mandatory:
|
||||||
errs.append(where + _('Mandatory list empty'))
|
errs.append(where + _('Mandatory list empty'))
|
||||||
for ix in range(len(nodes)):
|
ix = 1
|
||||||
node = nodes[ix]
|
for node in range(nodes):
|
||||||
dummy = node.ownerDocument.createElement("Dummy")
|
dummy = node.ownerDocument.createElement("Dummy")
|
||||||
dummy.appendChild(node)
|
dummy.appendChild(node)
|
||||||
l.append(decode_item(dummy, errs, where + unicode("[%s]" % ix)))
|
l.append(decode_item(dummy, errs, where + unicode("[%s]" % ix)))
|
||||||
|
ix += 1
|
||||||
return l
|
return l
|
||||||
|
|
||||||
def encode(node, l, errs):
|
def encode(node, l, errs):
|
||||||
|
|||||||
Reference in New Issue
Block a user