[IMP] bugfix in report engine, don't translate computed expressions. Speed Improvements

bzr revid: fp@tinyerp.com-20100528170923-sqm8ttilidpv306t
This commit is contained in:
Fabien Pinckaers
2010-05-28 19:09:23 +02:00
parent 7fc422fe2b
commit d25532fb01
+1 -1
View File
@@ -110,7 +110,7 @@ def _process_text(self, txt):
expr = sps.pop(0)
txt = eval(expr,self.localcontext)
if txt and (isinstance(txt, unicode) or isinstance(txt, str)):
txt = unicode(self.localcontext.get('translate', lambda x:x)(txt))
txt = unicode(txt)
except Exception,e:
tb_s = reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))
if type(txt)==type('') or type(txt)==type(u''):