X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FSliceRenew.py;h=a495629098aed03e1fb44b593b67cc4f1432ec3e;hb=aee4a5354abde7ae9363053bce1a7117a8ed7b5e;hp=44f0e520dde715800c2a3881888826e5d712e2d3;hpb=e4c0c59e6bf7d7112f019272e04e6595639bcb90;p=plcapi.git diff --git a/PLC/Methods/SliceRenew.py b/PLC/Methods/SliceRenew.py index 44f0e52..a495629 100644 --- a/PLC/Methods/SliceRenew.py +++ b/PLC/Methods/SliceRenew.py @@ -1,3 +1,5 @@ +# $Id$ +# $URL$ 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.Methods.UpdateSlice import UpdateSlice +from PLC.Methods.UpdateSlice import UpdateSlice class SliceRenew(UpdateSlice): """ - Deprecated. See UpdateSlice. + Deprecated. See UpdateSlice. """ @@ -20,17 +22,14 @@ class SliceRenew(UpdateSlice): accepts = [ Auth(), Slice.fields['name'], - Slice.fields['expires'] + Slice.fields['expires'] ] returns = Parameter(int, '1 if successful') - object_type = 'Slice' - 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)