diff options
| author | DHS(OpenERP) <> | 2010-09-07 11:51:08 +0530 |
|---|---|---|
| committer | Jay (OpenERP) <jvo@tinyerp.com> | 2010-09-07 11:51:08 +0530 |
| commit | 1bfe6b08b0628eca95b880b48ab07afdcdcff1eb (patch) | |
| tree | f730dcb9e9e10e81bbfee50351ae12ac8010868b /bin/tools/safe_eval.py | |
| parent | 611a6aaa0b1d9bdca33a16bf7940665f4cc1707d (diff) | |
[FIX] safe_eval() : Added support of len()
lp bug: https://launchpad.net/bugs/631810 fixed
bzr revid: jvo@tinyerp.com-20100907062108-ottaogopnc22w3j0
Diffstat (limited to 'bin/tools/safe_eval.py')
| -rw-r--r-- | bin/tools/safe_eval.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/tools/safe_eval.py b/bin/tools/safe_eval.py index 67d2a98e973..fa6e04bf92c 100644 --- a/bin/tools/safe_eval.py +++ b/bin/tools/safe_eval.py @@ -264,6 +264,7 @@ def safe_eval(expr, globals_dict=None, locals_dict=None, mode="eval", nocopy=Fal 'reduce': reduce, 'filter': filter, 'round': round, + 'len': len } ) return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict) |
