Exemplo n.º 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)
Exemplo n.º 2
0
 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)