diff options
| author | vta vta@openerp.com <> | 2012-10-12 11:29:39 +0200 |
|---|---|---|
| committer | vta vta@openerp.com <> | 2012-10-12 11:29:39 +0200 |
| commit | fb865d1871bbd519c4e8bf027bf96b31289e2af0 (patch) | |
| tree | d971f5acc7f490180fcc9e57a989576a88981a71 /addons/web/static/src/js/corelib.js | |
| parent | f5216c706ae47ba23d265121f101e9d78d3f1407 (diff) | |
| parent | ff40df4e66f7ee92c9a25bb3003061d73849addd (diff) | |
[MERGE] Latest trunk.
bzr revid: vta@openerp.com-20121012092939-a90zcuh4r605n7en
Diffstat (limited to 'addons/web/static/src/js/corelib.js')
| -rw-r--r-- | addons/web/static/src/js/corelib.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/corelib.js b/addons/web/static/src/js/corelib.js index b5fbacc7927..8c38724b1d5 100644 --- a/addons/web/static/src/js/corelib.js +++ b/addons/web/static/src/js/corelib.js @@ -1440,6 +1440,10 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({ }, }); +instance.web.py_eval = function(expr, context) { + return py.eval(expr, _.extend({}, context || {}, {"true": true, "false": false, "null": null})); +}; + } // vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: |
