mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-11 20:29:04 +00:00
Update ccnet_api for listing child groups and members.
This commit is contained in:
@@ -831,8 +831,8 @@ class CcnetAPI(object):
|
|||||||
def get_child_groups(self, group_id):
|
def get_child_groups(self, group_id):
|
||||||
return ccnet_threaded_rpc.get_child_groups(group_id)
|
return ccnet_threaded_rpc.get_child_groups(group_id)
|
||||||
|
|
||||||
def get_child_groups_recursively(self, group_id):
|
def get_descendants_groups(self, group_id):
|
||||||
return ccnet_threaded_rpc.get_child_groups_recursively(group_id)
|
return ccnet_threaded_rpc.get_descendants_groups(group_id)
|
||||||
|
|
||||||
def get_ancestor_groups(self, group_id):
|
def get_ancestor_groups(self, group_id):
|
||||||
return ccnet_threaded_rpc.get_ancestor_groups(group_id)
|
return ccnet_threaded_rpc.get_ancestor_groups(group_id)
|
||||||
@@ -945,11 +945,11 @@ class CcnetAPI(object):
|
|||||||
"""
|
"""
|
||||||
return ccnet_threaded_rpc.get_group_members(group_id)
|
return ccnet_threaded_rpc.get_group_members(group_id)
|
||||||
|
|
||||||
def get_structure_members_with_start_group(self, group_id):
|
def get_members_with_prefix (self, group_id, prefix=None):
|
||||||
"""
|
"""
|
||||||
Return a list of GroupUser objects, including child groups under @group_id
|
Return a list of GroupUser objects
|
||||||
"""
|
"""
|
||||||
return ccnet_threaded_rpc.get_structure_members_with_start_group(group_id)
|
return ccnet_threaded_rpc.get_members_with_prefix(group_id, prefix)
|
||||||
|
|
||||||
def check_group_staff(self, group_id, username):
|
def check_group_staff(self, group_id, username):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user