odoo/openerp/cli
xmo-odoo c824e50b3f [FIX] scaffold: correctly decode utf8 templates
As its documentation notes[0], Jinja2 only processes unicode template
data (or pure ASCII, which will implicitly decode to unicode).

The scaffolding system would read raw scaffolding data in memory (both
templates and passthrough non-templates), but fail to decode templates
before handing them to Jinja, blowing rendering up if templates
contained non-ascii.

Fix #11331 by always decoding templates from UTF8 before handing them
to jinja. This is backwards-compatible, ascii templates work as they
used to, non-ascii UTF8 templates now work correctly, non-ascii
non-UTF8 templates what are you doing?

[0] http://jinja.pocoo.org/docs/dev/api/#unicode
2016-03-15 11:25:16 +01:00
..
templates [FIX] Scaffolding: moved two files to better reflect the architecture we currently use for our themes 2015-03-02 16:38:35 +01:00
__init__.py [FIX] cli: Backport client command discovery optimization 2015-07-12 16:40:55 +02:00
deploy.py Added --force to odoo deploy 2014-06-11 09:55:17 +02:00
scaffold.py [FIX] scaffold: correctly decode utf8 templates 2016-03-15 11:25:16 +01:00
server.py [FIX] core: correcly handle pidfile deletion. 2015-11-26 10:40:59 +01:00
start.py [FIX] cli: start command path option does not work 2015-06-30 13:57:14 +02:00