From a0d2df72f6fc29eedda8ed690816910f156734c8 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 1 Jul 2014 15:18:39 +0200 Subject: [PATCH] Rename sha to version in bundle controllers --- addons/web/controllers/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 5c02cbe0279..b74efc9c452 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -556,9 +556,9 @@ class Home(http.Controller): @http.route([ '/web/js/', - '/web/js//', + '/web/js//', ], type='http', auth='public') - def js_bundle(self, xmlid, sha=None, **kw): + def js_bundle(self, xmlid, version=None, **kw): try: bundle = AssetsBundle(xmlid) except QWebTemplateNotFound: @@ -569,9 +569,9 @@ class Home(http.Controller): @http.route([ '/web/css/', - '/web/css//', + '/web/css//', ], type='http', auth='public') - def css_bundle(self, xmlid, sha=None, **kw): + def css_bundle(self, xmlid, version=None, **kw): try: bundle = AssetsBundle(xmlid) except QWebTemplateNotFound: