2 from PLC.Faults import *
3 from PLC.Method import Method
4 from PLC.Parameter import Parameter, Mixed
5 from PLC.Auth import Auth
6 from PLC.Persons import Person, Persons
7 from PLC.Slices import Slice, Slices
8 from PLC.Methods.DeletePersonFromSlice import DeletePersonFromSlice
10 class SliceUserDel(Method):
12 Deprecated. Can be implemented with DeletePersonFromSlice.
14 Removes the specified users from the specified slice. If the person is
15 already a member of the slice, no errors are returned.
17 Returns 1 if successful, faults otherwise.
22 roles = ['admin', 'pi']
27 [Person.fields['email']],
30 returns = Parameter(int, '1 if successful')
32 def call(self, auth, slice_name, user_list):
33 for user in user_list:
34 DeletePersonFromSlice.call(self, auth, user, slice_name)