From 5212b8899db5915a088eea47713297004cfcdb4e Mon Sep 17 00:00:00 2001 From: pinky <> Date: Fri, 8 Dec 2006 12:09:43 +0000 Subject: [PATCH] Commit convert with comments for link with external id within a module bzr revid: pinky-54c9037793b5c1779a40911e8aded56af763c195 --- bin/tools/convert.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index a1a29b5fa33..726b586a962 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -50,7 +50,14 @@ def _eval_xml(self,node, pool, cr, uid, idref): idref['ref'] = lambda x: self.id_get(cr, False, x) return eval(a_eval, idref) if t == 'xml': + #def _process(s): + # groups = re.search + # %(.*?)d + # for group + # replace(group(0), self.id_get(cr, False, group(0)) + #txt = '\n'+_process("".join([i.toxml().encode("utf8") for i in node.childNodes])) txt = '\n'+"".join([i.toxml().encode("utf8") for i in node.childNodes]) % idref + return txt if t in ('char', 'int', 'float'): d = ""