[FIX] convert: fix problem in eval

bzr revid: hmo@tinyerp.com-20091207090411-mkgxhkxz7zwdemrr
This commit is contained in:
Harry (Open ERP)
2009-12-07 14:34:11 +05:30
parent 66ac73ae89
commit ac8e7946f5
+1 -1
View File
@@ -109,7 +109,7 @@ def _eval_xml(self,node, pool, cr, uid, idref, context=None):
return eval(a_eval, idref2)
except:
logger = netsvc.Logger()
logger.notifyChannel("init", netsvc.LOG_WARNING, 'could eval(%s) for %s in %s, please get back and fix it!' % (a_eval,node.getAttribute('name'),context))
logger.notifyChannel("init", netsvc.LOG_WARNING, 'could eval(%s) for %s in %s, please get back and fix it!' % (a_eval,node.get('name'),context))
return ""
if t == 'xml':
def _process(s, idref):