summaryrefslogtreecommitdiff
path: root/setup/setup_dev.py
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2016-12-28 13:53:43 +0100
committerSimon Lejeune <sle@openerp.com>2017-01-02 16:05:58 +0100
commit2d3c928d4752bda69561a69ce92d14336b337732 (patch)
tree1b5a68d42b7bb249a88907ca8a168dbe9f46016e /setup/setup_dev.py
parent45d26bc2572b5bdd348624936aeb1e3fbdb62c45 (diff)
[ADD] QWeb: xml namespaces support in dynamic template
This is very similar and almost copy pasted from the implementation in static template, as the main method `compile_node` will either call `_compile_static_node` (which we patched in the static implementation) or `_compile_directives` which will call `_compile_tag` in the cases where xmlns matter (at least that's my understanding for today). So we patch `_compile_tag` the same way than `_compile_static_node`. It would be nicer if the method wasn't completely different and in two parts, but hey. This method is not always called on leaves, so setting options['nsmap'] to a copy before processing the content of the node is necessary (a node with a nsmap and a t-attf- having a child with an nsmap: the child has to be aware of the nsmap of its parent). Note that we set the xmlns attribtue before calling `_compile_all_attribute`, which will probably break xmlns set by t-* tag. However, we don't plan to support that the moment.
Diffstat (limited to 'setup/setup_dev.py')
0 files changed, 0 insertions, 0 deletions