* make autoxml give more hints to pinpoint missing items.
This commit is contained in:
@@ -732,7 +732,7 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
nodes = getAllNodes(node, path)
|
nodes = getAllNodes(node, path)
|
||||||
#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 "%s" under "%s" node is empty.') % (path, node.name()))
|
||||||
ix = 1
|
ix = 1
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
dummy = newNode(node, "Dummy")
|
dummy = newNode(node, "Dummy")
|
||||||
@@ -753,7 +753,7 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
#encode_item(node, item, errs)
|
#encode_item(node, item, errs)
|
||||||
else:
|
else:
|
||||||
if req is mandatory:
|
if req is mandatory:
|
||||||
errs.append(_('Mandatory list empty'))
|
errs.append(_('Mandatory list "%s" under "%s" node is empty.') % (path, node.name()))
|
||||||
|
|
||||||
def errors(l, where):
|
def errors(l, where):
|
||||||
errs = []
|
errs = []
|
||||||
|
|||||||
Reference in New Issue
Block a user