Merge lp:~camptocamp/c2c-web-addons/fix-qweb-20121218 into lp:c2c-web-addons
Proposed by
Yannick Vaucher @ Camptocamp
Status: | Merged |
---|---|
Merged at revision: | 13 |
Proposed branch: | lp:~camptocamp/c2c-web-addons/fix-qweb-20121218 |
Merge into: | lp:c2c-web-addons |
Diff against target: |
11 lines (+1/-0) 1 file modified
web_translate_dialog_page/static/src/js/web_translate_dialog_page.js (+1/-0) |
To merge this branch: | bzr merge lp:~camptocamp/c2c-web-addons/fix-qweb-20121218 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | no test, review | Approve | |
Review via email: mp+140387@code.launchpad.net |
Description of the change
Add a QWeb variable
To post a comment you must log in.
Usually from my observation, the variable QWeb is initialized at the top level of the module's namespace, so it is declared only once for the whole namespace.
I tend to think that we should respect this convention even if we need it only one time in the namespace.
Though, I do not have any formal argument other than convention here, so I let you decide.
Note that if you don't declare a global to the module's namespace, you probably would not need to initialize a local variable but just replace "QWeb.render" by "openerp. web.qweb. render" .