oops, refreshpeer in tag plcapi-5.0-17 is broken
[plcapi.git] / PLC / Methods / SliceRenew.py
index 4ac6f89..a495629 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 import time
 
 from PLC.Faults import *
 import time
 
 from PLC.Faults import *
@@ -5,11 +7,11 @@ from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Slices import Slice, Slices
 from PLC.Auth import Auth
 from PLC.Parameter import Parameter, Mixed
 from PLC.Slices import Slice, Slices
 from PLC.Auth import Auth
-from PLC.Methods.UpdateSlice import UpdateSlice 
+from PLC.Methods.UpdateSlice import UpdateSlice
 
 class SliceRenew(UpdateSlice):
     """
 
 class SliceRenew(UpdateSlice):
     """
-    Deprecated. See UpdateSlice.    
+    Deprecated. See UpdateSlice.
 
     """
 
 
     """
 
@@ -20,15 +22,14 @@ class SliceRenew(UpdateSlice):
     accepts = [
         Auth(),
         Slice.fields['name'],
     accepts = [
         Auth(),
         Slice.fields['name'],
-       Slice.fields['expires']
+        Slice.fields['expires']
         ]
 
     returns = Parameter(int, '1 if successful')
 
     def call(self, auth, slice_name, slice_expires):
 
         ]
 
     returns = Parameter(int, '1 if successful')
 
     def call(self, auth, slice_name, slice_expires):
 
-       slice_fields = {}
-       slice_fields['expires'] = slice_expires
-       
-       return UpdateSlice.call(self, auth, slice_name, slice_fields)
+        slice_fields = {}
+        slice_fields['expires'] = slice_expires
+
+        return UpdateSlice.call(self, auth, slice_name, slice_fields)