[FIX] implementation of t-call's 0-index in qweb-js
authorXavier Morel <xmo@openerp.com>
Tue, 14 Oct 2014 14:17:04 +0000 (16:17 +0200)
committerXavier Morel <xmo@openerp.com>
Tue, 14 Oct 2014 14:20:29 +0000 (16:20 +0200)
commitb9fdb93bece59c1d3d8cf17495e9f9f0d90e6b23
tree30b096bf27a9b99c4978f19044945be376729fbc
parent94e7dc60504fd4b7290a89fbda66452ea17c071b
[FIX] implementation of t-call's 0-index in qweb-js

Had expected regularity, had not noticed the Python version is really an
ignoble hack where the string "0" (exactly) is interpreted in a specific
manner when used in t-raw and format strings, *and nowhere else*.

Had special-cased the expression everywhere which broke e.g.
<t-set="xxx" t-value="0"/>. Reproduce Python behavior more closely,
and strongly consider swapping out both for something different e.g.
[[content]] or something like that, which doesn't cause problems in
Python but doesn't have to be so specially cased either.
addons/web/static/lib/qweb/qweb2.js