patch 705, not extensions in URL for static files, thanks guruyaya

This commit is contained in:
Massimo DiPierro
2012-03-12 15:27:11 -05:00
parent dce8dbff4f
commit 1faf14105b
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-03-12 15:15:29) dev
Version 1.99.7 (2012-03-12 15:27:08) dev
+4
View File
@@ -268,6 +268,10 @@ def URL(
if '.' in function:
function, extension = function.split('.', 1)
# if the url gets a static resource, don't force extention
if controller == 'static':
extension = None
function2 = '%s.%s' % (function,extension or 'html')
if not (application and controller and function):