[FIX] Report Engine regression

lp bug: https://launchpad.net/bugs/385299 fixed

bzr revid: nch@tinyerp.com-20090610054606-5hqsgta2snggc0uy
This commit is contained in:
Naresh Choksy 2009-06-10 11:16:06 +05:30
parent d63b2f24c9
commit 0c768f6404
1 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,9 @@ import copy
_regex = re.compile('\[\[(.+?)\]\]')
def str2xml(s):
return s.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
def _child_get(node, self=None, tagname=None):
for n in node:
if self and self.localcontext and n.get('rml_loop', False):
@ -100,7 +103,7 @@ def _process_text(self, txt):
result += self.localcontext.get('translate', lambda x:x)(sps.pop(0))
if sps:
try:
txt2 = eval(sps.pop(0),self.localcontext)
txt2 = str2xml(eval(sps.pop(0),self.localcontext))
except:
txt2 = ''
if type(txt2)==type('') or type(txt2)==type(u''):