merge changes from head
[plcapi.git] / PLC / Methods / SliceRenew.py
index d90cb39..44f0e52 100644 (file)
@@ -7,7 +7,7 @@ from PLC.Slices import Slice, Slices
 from PLC.Auth import Auth
 from PLC.Methods.UpdateSlice import UpdateSlice 
 
-class SliceRenew(Method):
+class SliceRenew(UpdateSlice):
     """
     Deprecated. See UpdateSlice.    
 
@@ -25,6 +25,8 @@ class SliceRenew(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Slice'
+
     def call(self, auth, slice_name, slice_expires):
 
        slice_fields = {}