summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-05-22 11:46:21 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-08 14:40:08 +0200
commit77d9179f7b7d6bc62e5b9c38fb761eb9a07eb1ce (patch)
tree87e9a55e9ef0a78132e6a50d47c2c82edca99e99 /addons/web/static/src/js/views/basic/basic_controller.js
parent3148925c43242842e096daedf037417566f2f95e (diff)
[MOV] website, http_routing: move translation support in http_routing
Code managing language in URLs and redirection is moved from website to http_routing. Override of _dispatch in website now consists in adding website to the request. url_for and is_multilang_url tools methods are also moved from website to http_routing.ir_http as those are required for the moved code. Some renaming is performed on request attributes previously added in website. Indeed as website keyword may be misleading now a renaming has been performed to better understand them : * request.website_enabled -> request.is_frontend * request.website_multilang -> request.is_frontend_multilang * request.httprequest.cookies.get('website_lang') -> ('frontend_lang') * first_pass variable in _dispatch is replaced by a new attribute of request, routing_iteration, that is the number of routing iterations currently done
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions