- Change .py files to use 4-space indents and no hard tab characters.
[plcapi.git] / PLC / Methods / SliceUserDel.py
index e350a5f..9426611 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -11,11 +13,13 @@ class SliceUserDel(Method):
     Deprecated. Can be implemented with DeletePersonFromSlice.
 
     Removes the specified users from the specified slice. If the person is
-    already a member of the slice, no errors are returned. 
+    already a member of the slice, no errors are returned.
 
     Returns 1 if successful, faults otherwise.
     """
 
+    status = "deprecated"
+
     roles = ['admin', 'pi']
 
     accepts = [
@@ -26,10 +30,8 @@ class SliceUserDel(Method):
 
     returns = Parameter(int, '1 if successful')
 
-    object_type = 'Slice'
-
     def call(self, auth, slice_name, user_list):
-       for user in user_list:
-           DeletePersonFromSlice.call(self, auth, user, slice_name)
+        for user in user_list:
+            DeletePersonFromSlice.call(self, auth, user, slice_name)
 
         return 1