odoo/openerp/tools
Thibault Delavallée c76a3aba8f [CLEAN] ir_qweb: simplified and cleaned QWebcontext implementation
- now using openerp.tools.safe_eval, instead of a custom eval with custom builtins
- removed undefined_handler, hardcoded to a lambda function that returns None for
a missing attribute

tools.safe_eval: added a parameter locals_builtins. This allows to copy the builtins
in the locals. This hack is due to the fact that the locals always returns None, allowing
to simplify templates. Otherwise we would have to test the existence of each variable
before actually using it.
However as the locals always return None for every key, the globals are never checked.
Copying the builtins inside the local allows to have a complete locals, but sligtly
break the globals/locals separation.

To be reviewed and approved.

bzr revid: tde@openerp.com-20140116182750-1rnw8iljt5a9gb4u
2014-01-16 19:27:50 +01:00
..
__init__.py [REM] Deleted .apidoc lines. 2013-02-12 15:24:10 +01:00
amount_to_text.py [IMP] more augmented assignments 2012-12-14 14:44:55 +01:00
amount_to_text_en.py [IMP] more augmented assignments 2012-12-14 14:44:55 +01:00
assertion_report.py [IMP] tests: 2012-03-02 12:02:27 +01:00
cache.py [IMP] Performance improvement: improved cache with context, better get_object 2013-11-30 16:47:23 +01:00
config.py [IMP] --auto-reload to enable code and xml auto reload, service cleanup. 2013-10-06 00:57:40 +02:00
convert.py [IMP] Backport one feature from website: this feature allows to specify a file 2014-01-09 16:43:38 +01:00
float_utils.py [IMP] float_utils: simplified code, added float_repr 2011-12-21 00:47:40 +01:00
func.py [ADD] composition function utility 2013-09-25 16:52:05 +02:00
graph.py [IMP] more augmented assignments 2012-12-14 14:44:55 +01:00
image.py [MERGE] forward merge 7.0 until revision 4919. 2013-04-04 15:07:04 +02:00
import_email.py [IMP] res_partner:add res_partner_address field to res_partner 2012-02-20 14:47:05 +05:30
lru.py [IMP] compare to None by identity 2012-12-14 13:16:38 +01:00
mail.py [MERGE] Sync with trunk, solved conflicts. 2014-01-16 10:17:16 +01:00
misc.py [MERGE] sync with trunk 2013-12-02 16:08:56 +01:00
osutil.py merge upstream 2012-12-17 18:26:14 +01:00
parse_version.py [IMP] parse_version: ignore saas~ componants 2013-04-30 16:20:37 +02:00
pdf_utils.py [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
safe_eval.py [CLEAN] ir_qweb: simplified and cleaned QWebcontext implementation 2014-01-16 19:27:50 +01:00
sql.py [FIX] drop_view_if_exists: simpler and CASCADING implementation for pg 8.3+ 2012-02-27 17:57:37 +01:00
test-config-values [ADD] tools/config: started tests. 2011-06-01 13:50:55 +02:00
test-config-values-00.conf [ADD] tools/config: started tests. 2011-06-01 13:50:55 +02:00
test_config.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
test_reports.py [MERGE] removed LocalService("workflow"), Logger class, and TEST log level. 2013-03-27 18:06:39 +01:00
translate.py [MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7 2014-02-06 12:02:20 +01:00
view_validation.py [FIX] view validation tests 2013-06-25 19:01:18 +02:00
which.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
win32.py [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
yaml_import.py [IMP] attempt to improve yaml test message in order to make its errors somewhat less cryptic 2014-01-08 14:37:22 +01:00
yaml_tag.py [FIX] yaml: more explicit error if !record has missing parameters 2012-10-29 18:34:21 +01:00