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

Update group wiki

This commit is contained in:
zhengxie
2013-03-08 19:34:53 +08:00
parent 749a283768
commit 30a4eaf53b
5 changed files with 64 additions and 30 deletions

View File

@@ -316,6 +316,9 @@ def gen_file_get_url(token, filename):
Generate httpserver file url.
Format: http://<domain:port>/files/<token>/<filename>
"""
if isinstance(filename, unicode):
filename = urllib2.quote(filename.encode('utf-8'))
return '%s/files/%s/%s' % (get_httpserver_root(), token, filename)
def gen_file_upload_url(token, op):