allura
修訂 | ef2c68a86dab644564425a422915c653a277c70d (tree) |
---|---|
時間 | 2012-07-16 21:26:53 |
作者 | Igor Bondarenko <jetmind2@gmai...> |
Commiter | Igor Bondarenko |
[#4410] ticket:115 Fix browsing folders named like *.file_extension
@@ -444,6 +444,12 @@ class TreeBrowser(BaseController): | ||
444 | 444 | |
445 | 445 | @expose() |
446 | 446 | def _lookup(self, next, *rest): |
447 | + if not rest and request.response_ext: | |
448 | + # Directory name may ends with file extension (e.g. `dir.rdf`) | |
449 | + # dispatching system will cut extension, so we need to restore it | |
450 | + next = "%s%s" % (next, request.response_ext) | |
451 | + request.response_ext = None | |
452 | + request.response_type = None | |
447 | 453 | next=unquote(next) |
448 | 454 | if not rest: |
449 | 455 | # Might be a file rather than a dir |
@@ -73,3 +73,6 @@ nose==1.1.2 | ||
73 | 73 | pyflakes==0.5.0 |
74 | 74 | WebTest==1.3.1 |
75 | 75 | clonedigger==1.1.0 |
76 | + | |
77 | +SQLAlchemy==0.7.2 | |
78 | +sqlalchemy-migrate==0.7.1 |
@@ -9,8 +9,6 @@ MySQL-python==1.2.3c1 | ||
9 | 9 | phpserialize==1.2 |
10 | 10 | psycopg2==2.2.2 |
11 | 11 | sf.phpsession==0.1 |
12 | -SQLAlchemy==0.7.2 | |
13 | -sqlalchemy-migrate==0.7.1 | |
14 | 12 | pyzmq==2.1.7 |
15 | 13 | |
16 | 14 | # for the migration scripts only |