1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 23:46:53 +00:00

share repo to group (#123)

This commit is contained in:
yixiang-zhang
2018-01-18 11:18:51 +08:00
committed by Shuai Lin
parent 4fb355865a
commit 65df973661
3 changed files with 63 additions and 2 deletions

View File

@@ -13,3 +13,8 @@ def create_and_get_repo(*a, **kw):
def randstring(length=12):
return ''.join(random.choice(string.lowercase) for i in range(length))
def create_and_get_group(*a, **kw):
group_id = ccnet_api.create_group(*a, **kw)
group = ccnet_api.get_group(group_id)
return group