1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[file view] modified url related code

This commit is contained in:
llj
2015-04-14 17:21:21 +08:00
committed by Daniel Pan
parent cfc7ad8934
commit fe84a428c1
2 changed files with 1 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ urlpatterns = patterns('',
### lib (replace the old `repo` urls) ###
# url(r'^lib/(?P<repo_id>[-0-9a-f]{36})/dir/(?P<path>.*)$', view_lib_dir, name='view_lib_dir'),
url(r'^lib/(?P<repo_id>[-0-9a-f]{36})/file/(?P<path>.*)$', view_lib_file, name='view_lib_file'),
url(r'^lib/(?P<repo_id>[-0-9a-f]{36})/file(?P<path>.*)$', view_lib_file, name='view_lib_file'),
# url(r'^home/my/lib/(?P<repo_id>[-0-9a-f]{36})/dir/(?P<path>.*)$', myhome_lib, name='myhome_lib'),
### share file/dir, upload link ###

View File

@@ -322,8 +322,6 @@ def view_lib_file(request, repo_id, path):
"""
New 'file view' that not put path in parameter
"""
# path is like 'xx.c', 'aa/xx.c'
path = '/' + path
return _file_view(request, repo_id, path)
def _file_view(request, repo_id, path):