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:
@@ -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 ###
|
||||
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user