From 25906489d2af8d185910e78aa1f2278640c244e0 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Sat, 19 Aug 2006 17:07:16 +0000 Subject: [PATCH] * make autoxml give more hints to pinpoint missing items. --- pisi/pxml/autoxml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/pxml/autoxml.py b/pisi/pxml/autoxml.py index eb8d0f0e..83b8f720 100644 --- a/pisi/pxml/autoxml.py +++ b/pisi/pxml/autoxml.py @@ -732,7 +732,7 @@ class autoxml(oo.autosuper, oo.autoprop): nodes = getAllNodes(node, path) #print node, tag + '/' + comp_tag, nodes 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 for node in nodes: dummy = newNode(node, "Dummy") @@ -753,7 +753,7 @@ class autoxml(oo.autosuper, oo.autoprop): #encode_item(node, item, errs) else: 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): errs = []