diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-01-16 19:41:44 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-01-16 19:41:44 +0100 |
| commit | 382efffb588ff51c78b9f47cb5f9dbdc93b956bf (patch) | |
| tree | 470c4011cb9f876f4064430a0de773efc15889cd /doc | |
| parent | ff51574faedd500d00983903a1c9153571679471 (diff) | |
| parent | f4bb798cb8a3f2fe524d62cda7be462e692dda0d (diff) | |
[MERGE] [CLEAN] Part I of cleaning and improvements of the server branch of website-al, after review with our Masters. All Glory to Our Masters.
[CLEAN] res_config, res_users: cleaned call to imd.get_object() + code cleaning
- res_config: raise by default, no need to set the argument at True
- res_users: directly embedded get_user_groups_view code inside update_user_groups_view.
The try / except is still necessary, because when installing a new db, groups and users
are created before the user_groups_view view effectively exist. Due to some circular
references, the try / except is therefore necessary to install a new db.
[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
- cleaned code, removed now dead BUILTINS, removed commented code
- tools.safe_eval: added a parameter locals_builtins. This allows to copy the globals builtins in the locals. This modification 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 slightly break the globals/locals separation.
[CLEAN] Misc
- setup.py: reverted website-al unnecessary change
- oe: reverted website-al unnecessary change
[DOC] renamed misc_qweb.rst file into ir_qweb.rst
bzr revid: tde@openerp.com-20140116184144-fd5h4a94we13mm72
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/06_ir_qweb.rst (renamed from doc/06_misc_qweb.rst) | 0 | ||||
| -rw-r--r-- | doc/06_misc.rst | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/doc/06_misc_qweb.rst b/doc/06_ir_qweb.rst index 4f3284d913f..4f3284d913f 100644 --- a/doc/06_misc_qweb.rst +++ b/doc/06_ir_qweb.rst diff --git a/doc/06_misc.rst b/doc/06_misc.rst index 3a79052d995..d56b26fb018 100644 --- a/doc/06_misc.rst +++ b/doc/06_misc.rst @@ -11,4 +11,4 @@ Miscellanous 06_misc_user_img_specs.rst 06_misc_import.rst 06_misc_auto_join.rst - 06_misc_qweb.rst + 06_ir_qweb.rst |
