• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂ef2c68a86dab644564425a422915c653a277c70d (tree)
時間2012-07-16 21:26:53
作者Igor Bondarenko <jetmind2@gmai...>
CommiterIgor Bondarenko

Log Message

[#4410] ticket:115 Fix browsing folders named like *.file_extension

Change Summary

差異

--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -444,6 +444,12 @@ class TreeBrowser(BaseController):
444444
445445 @expose()
446446 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
447453 next=unquote(next)
448454 if not rest:
449455 # Might be a file rather than a dir
--- a/requirements-common.txt
+++ b/requirements-common.txt
@@ -73,3 +73,6 @@ nose==1.1.2
7373 pyflakes==0.5.0
7474 WebTest==1.3.1
7575 clonedigger==1.1.0
76+
77+SQLAlchemy==0.7.2
78+sqlalchemy-migrate==0.7.1
--- a/requirements-sf.txt
+++ b/requirements-sf.txt
@@ -9,8 +9,6 @@ MySQL-python==1.2.3c1
99 phpserialize==1.2
1010 psycopg2==2.2.2
1111 sf.phpsession==0.1
12-SQLAlchemy==0.7.2
13-sqlalchemy-migrate==0.7.1
1412 pyzmq==2.1.7
1513
1614 # for the migration scripts only