Exemplo n.º 1
0
 def execute(self, ns, group, users):
     group_inst = account.get_group(ns, group)
     user_insts = []
     for user in users:
         user_inst = account.get_user(ns, user)
         user_insts.append(user_inst)
     account.remove_from_group(ns, group_inst, user_insts)
Exemplo n.º 2
0
 def execute(self, ns, group, users):
     group_inst = account.get_group(ns, group)
     user_insts = []
     for user in users:
         user_inst = account.get_user(ns, user)
         user_insts.append(user_inst)
     account.remove_from_group(ns, group_inst, user_insts)
Exemplo n.º 3
0
 def execute(self, ns, users):
     if users:
         for user in users:
             inst = account.get_user(ns, user)
             yield inst
     else:
         for user in account.list_users(ns):
             yield user
Exemplo n.º 4
0
 def execute(self, ns, users):
     if users:
         for user in users:
             inst = account.get_user(ns, user)
             yield inst
     else:
         for user in account.list_users(ns):
             yield user
Exemplo n.º 5
0
 def execute(self,
             ns,
             users,
             no_delete_group=False,
             no_delete_home=False,
             force=False):
     for user in users:
         inst = account.get_user(ns, user)
         account.delete_user(ns, inst, no_delete_group, no_delete_home,
                             force)
Exemplo n.º 6
0
 def execute(self, ns, users, no_delete_group=False, no_delete_home=False,
         force=False):
     for user in users:
         inst = account.get_user(ns, user)
         account.delete_user(ns, inst, no_delete_group, no_delete_home,
                 force)