summaryrefslogtreecommitdiff
path: root/openerp/tools/safe_eval.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2014-01-30 04:42:38 +0100
committerAntony Lesuisse <al@openerp.com>2014-01-30 04:42:38 +0100
commitec45bc96f95b936bd288e5e64ac3732004b482a3 (patch)
tree7eca0da71f359e86a6da41201372cb5398bc08d9 /openerp/tools/safe_eval.py
parent3d1b879049d3448aeccc2f0ac9e99bf9ae17717e (diff)
[IMP] safe_eval add int float range, rename public user
bzr revid: al@openerp.com-20140130034238-qlgbu41d7mg9ns6i
Diffstat (limited to 'openerp/tools/safe_eval.py')
-rw-r--r--openerp/tools/safe_eval.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openerp/tools/safe_eval.py b/openerp/tools/safe_eval.py
index b65d5c1434d..7c2fee54183 100644
--- a/openerp/tools/safe_eval.py
+++ b/openerp/tools/safe_eval.py
@@ -240,6 +240,9 @@ def safe_eval(expr, globals_dict=None, locals_dict=None, mode="eval", nocopy=Fal
'len': len,
'set': set,
'repr': repr,
+ 'int': int,
+ 'float': float,
+ 'range': range,
}
)
if locals_builtins: