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

add library pattern feature

This commit is contained in:
lian
2016-09-14 13:47:12 +08:00
parent 72cefff03f
commit 94e91265cc
7 changed files with 50 additions and 5 deletions

View File

@@ -619,11 +619,13 @@ class Repos(APIView):
return api_error(HTTP_520_OPERATION_FAILED,
'Failed to create library.')
else:
library_template = request.data.get("library_template", None)
repo_created.send(sender=None,
org_id=org_id,
creator=username,
repo_id=repo_id,
repo_name=repo_name)
repo_name=repo_name,
library_template=library_template)
resp = repo_download_info(request, repo_id,
gen_sync_token=gen_sync_token)