[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: email@example.com
parent ff51574fae f4bb798cb8
Reference in new issue