From 9538a99a4190a75414c5d3ad37b8ed928bb03e21 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 16 Jan 2007 22:19:21 +0000 Subject: [PATCH] - call DeleteSlice --- PLC/Methods/SliceDelete.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/PLC/Methods/SliceDelete.py b/PLC/Methods/SliceDelete.py index b009cc4..d4ec61d 100644 --- a/PLC/Methods/SliceDelete.py +++ b/PLC/Methods/SliceDelete.py @@ -1,8 +1,30 @@ +import re + +from PLC.Faults import * +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.DeleteSlice import DeleteSlice class SliceDelete(DeleteSlice): """ Deprecated. See DeleteSlice. + """ status = "deprecated" + + roles = ['admin', 'pi'] + + accepts = [ + Auth(), + Slice.fields['name'] + ] + + returns = Parameter(int, 'Returns 1 if successful, a fault otherwise.') + + + def call(self, auth, slice_name): + + return DeleteSlice.call(self, auth, slice_name) -- 2.43.0