[FIX] convert: fix problem in eval
authorHarry (Open ERP) <hmo@tinyerp.com>
Mon, 7 Dec 2009 09:04:11 +0000 (14:34 +0530)
committerHarry (Open ERP) <hmo@tinyerp.com>
Mon, 7 Dec 2009 09:04:11 +0000 (14:34 +0530)
bzr revid: hmo@tinyerp.com-20091207090411-mkgxhkxz7zwdemrr

bin/tools/convert.py

index 495c71e..36eb175 100644 (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):