TOOLS: add ref to function tag

bzr revid: ced-6210c6292618f986d515e59e501919668ec7d624
This commit is contained in:
ced 2007-01-16 08:36:36 +00:00
parent 9daae4bd44
commit 074a24259b
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def _eval_xml(self,node, pool, cr, uid, idref):
args = []
a_eval = node.getAttribute('eval')
if len(a_eval):
idref['ref'] = lambda x: self.id_get(cr, False, x)
args = eval(a_eval, idref)
for n in [i for i in node.childNodes if (i.nodeType == i.ELEMENT_NODE)]:
args.append(_eval_xml(self,n, pool, cr, uid, idref))