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