Comment 2 for bug 644267

Revision history for this message
Jean-Luc WEYL (jean-luc-weyl) wrote : Re: safe_eval() incompatible with python2.7's bytecode

This is not the only problem with that new safe_eval function.

If you use "filter" in a .rml file to produce a report, like for example:
  [[ repeatIn( filter( lambda a: not a.is_phantom, o.order_line) , 'line') ]]

you have the following error:
  File "/home/weyl/openerp-server-5.0.14/bin/tools/safe_eval.py", line 272, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'filter' is not defined