Rename sha to version in bundle controllers

This commit is contained in:
Fabien Meghazi 2014-07-01 15:18:39 +02:00
parent 4042135bc4
commit a0d2df72f6
1 changed files with 4 additions and 4 deletions

View 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: