Commit Graph

17 Commits

Author SHA1 Message Date
DHS(OpenERP) 1bfe6b08b0 [FIX] safe_eval() : Added support of len()
lp bug: https://launchpad.net/bugs/631810 fixed

bzr revid: jvo@tinyerp.com-20100907062108-ottaogopnc22w3j0
2010-09-07 11:51:08 +05:30
Harry (OpenERP) 485d0819fd [MERGE]
bzr revid: hmo@tinyerp.com-20100906081104-pkbxwki6189d6ym0
2010-09-06 13:41:04 +05:30
apa-tiny b453709b83 [iMP]:Added filter and round function in global dict.
bzr revid: apa@tinyerp.com-20100831123200-d2y2ced1mnd0fv3g
2010-08-31 18:02:00 +05:30
Olivier Dony 8b658219df [REVERT/FIX] safe_eval: revert incorrect tentative fix for missing abs,reduce + correct fix.
WARNING: do not add regular __builtins__ or globals in the safe_eval context dictionary!! The whole point is not to have them available for security purposes!

bzr revid: odo@openerp.com-20100810134046-vrw8niq73axmz5vl
2010-08-10 15:40:46 +02:00
apa-tiny c49797ad30 [FIX]:FormatLang is not support any python aggregate function like abs(),reduce() etc as an argument.
bzr revid: apa@tinyerp.com-20100810110942-zb47ggw15qa1c0os
2010-08-10 16:39:42 +05:30
Olivier Dony 5138f83593 [IMP] safe_eval: improved exception handling
bzr revid: odo@openerp.com-20100622093527-ygyvdsz2w4aalf08
2010-06-22 11:35:27 +02:00
P. Christeas 4afe236b0c safe_eval: fix wrt whitespace on expressions.
Regular eval() would not care about leading whitespace. But, compile() would
break if lines start with space. Strip that.
Also, allow some exceptions to pass through, so that we can examine the
syntax errors etc.

bzr revid: p_christ@hol.gr-20100621143632-0hvrck77lterxjtl
2010-06-21 17:36:32 +03:00
Jay (Open ERP) 7e36ede9ba [FIX] Tools : Safe_eval should support make_function and map.
lp bug: https://launchpad.net/bugs/595275 fixed

bzr revid: jvo@tinyerp.com-20100617093845-qgwrma8khcgv8f5h
2010-06-17 15:08:45 +05:30
Olivier Dony 0961c0f5cd [ADD] safe_eval: final round of adjustments, seems stable AFAICT (please be careful if you notice any error due to it - contact me if on doubt on how to fix properly)
bzr revid: odo@openerp.com-20100604003940-e32elbetzxop8c3b
2010-06-04 02:39:40 +02:00
Olivier Dony c3397574ff [FIX] continuing implementation of safe_eval: fixed some evaluation contexts
bzr revid: odo@openerp.com-20100601082829-n6iqqm8f0wuscvtm
2010-06-01 10:28:29 +02:00
Olivier Dony b020dc8363 [IMP] work-in-progress: initial version of safe_eval implementation -- still need fixing
bzr revid: odo@openerp.com-20100503234953-qgbk64bmir95jvzd
2010-05-04 00:49:53 +01:00
Olivier Dony b220dc04dd [IMP] base: renamed __terp__ to __openerp__
bzr revid: odo@openerp.com-20100427121305-o0rby3wr3gwr3ydx
2010-04-27 14:13:05 +02:00
Xavier Morel 65d46a54e8 [fix] whitespace in files touched by parent (xmo@tinyerp.com-20100304090342-y0peh0slc8in1tbh)
bzr revid: xmo@tinyerp.com-20100304090556-ehv8xpf9gd82uqgj
2010-03-04 10:05:56 +01:00
Xavier Morel e3d0a8779a [fix] coding: tag in source files
bzr revid: xmo@tinyerp.com-20100304090342-jrfl3lp54pdnrsdw
2010-03-04 10:03:42 +01:00
Harry (Open ERP) d8ce3f1e2a [FIX] replaced <TAB> with four white space.
bzr revid: hmo@tinyerp.com-20091124144405-9mzd91chohvf0uu7
2009-11-24 20:14:05 +05:30
P. Christeas c65b07debb safe_eval: make python 2.5 compatible.
bzr revid: p_christ@hol.gr-20090909234800-3u0a2fyi6673js4z
2009-09-10 02:48:00 +03:00
P. Christeas 5f77353468 Implement safe_eval() in order to armour eval()
bzr revid: p_christ@hol.gr-20090909194325-hpn4cfhwehxg9dzk
2009-09-09 22:43:25 +03:00