remove sfa upcalls
[plcapi.git] / PLC / Methods / DeleteSlice.py
index bfb6cd6..d3bc8f4 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -25,7 +27,6 @@ class DeleteSlice(Method):
 
     returns = Parameter(int, '1 if successful')
 
-
     def call(self, auth, slice_id_or_name):
         slices = Slices(self.api, [slice_id_or_name])
         if not slices:
@@ -44,6 +45,6 @@ class DeleteSlice(Method):
                 raise PLCPermissionDenied, "Specified slice not associated with any of your sites"
 
         slice.delete()
-        self.object_ids = [slice['slice_id']]
+        self.event_objects = {'Slice': [slice['slice_id']]}
 
         return 1