示例#1
0
 def get_groups(self, user_name, return_ancestors=False):
     """
     Get all groups the user belongs to.
     Return: a list of Group objects (ccnet/lib/ccnetobj.vala)
     """
     return ccnet_threaded_rpc.get_groups(user_name,
                                          1 if return_ancestors else 0)
示例#2
0
文件: api.py 项目: airbai/seafile
 def get_groups(self, user_name):
     """
     Get all groups the user belongs to.
     Return: a list of Group objects (ccnet/lib/ccnetobj.vala)
     """
     return ccnet_threaded_rpc.get_groups(user_name)