Rename sha to version in bundle controllers
authorFabien Meghazi <fme@openerp.com>
Tue, 1 Jul 2014 13:18:39 +0000 (15:18 +0200)
committerFabien Meghazi <fme@openerp.com>
Tue, 1 Jul 2014 13:18:39 +0000 (15:18 +0200)
addons/web/controllers/main.py

index 5c02cbe..b74efc9 100644 (file)
@@ -556,9 +556,9 @@ class Home(http.Controller):
 
     @http.route([
         '/web/js/<xmlid>',
-        '/web/js/<xmlid>/<sha>',
+        '/web/js/<xmlid>/<version>',
     ], 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/<xmlid>',
-        '/web/css/<xmlid>/<sha>',
+        '/web/css/<xmlid>/<version>',
     ], 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: