예제 #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)