Commit convert with comments for link with external id within a module

bzr revid: pinky-54c9037793b5c1779a40911e8aded56af763c195
This commit is contained in:
pinky 2006-12-08 12:09:43 +00:00
parent 203b956ec0
commit 5212b8899d
1 changed files with 7 additions and 0 deletions

View File

@ -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 = '<?xml version="1.0"?>\n'+_process("".join([i.toxml().encode("utf8") for i in node.childNodes]))
txt = '<?xml version="1.0"?>\n'+"".join([i.toxml().encode("utf8") for i in node.childNodes]) % idref
return txt
if t in ('char', 'int', 'float'):
d = ""