1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

Add basic download feature

This commit is contained in:
xiez
2012-04-24 22:31:24 +08:00
parent f4002df715
commit e4fad50b43
4 changed files with 27 additions and 15 deletions

View File

@@ -355,6 +355,15 @@ def repo_list_share(request):
"in_repos": in_repos,
}, context_instance=RequestContext(request))
@login_required
def repo_download(request, repo_id):
relay_id = cclient.props.id
token = 'default'
redirect_url = "http://localhost:8083/repo/download/?repo_id=%s&token=%s&relay_id=%s" % (repo_id, token, relay_id)
return HttpResponseRedirect(redirect_url)
@login_required
def repo_remove_share(request, repo_id, to_email):
if not validate_owner(request, repo_id):