Allow to use string as attribute of field tag in graph

This commit is contained in:
Cédric Krier committed 2008-04-21 10:56:35 +02:00
1 parent 2f0e51b4e2
commit 88a5add1d7
1 file changed
+1 -3
@@ -36,9 +36,7 @@ class ParserGraph(ParserInterface):
if not child.nodeType == child.ELEMENT_NODE:
continue
yattrs = common.node_attributes(child)
if yattrs['name'] == '#':
yattrs['string'] = '#'
else:
if not yattrs.get('string') and yattrs['name'] != '#':
yattrs['string'] = fields[yattrs['name']]['string']
yfields.append(yattrs)