svn keywords
[plcapi.git] / PLC / Methods / SliceDelete.py
1 # $Id$
2 # $URL$
3 import re
4
5 from PLC.Faults import *
6 from PLC.Method import Method
7 from PLC.Parameter import Parameter, Mixed
8 from PLC.Slices import Slice, Slices
9 from PLC.Auth import Auth
10 from PLC.Methods.DeleteSlice import DeleteSlice
11
12 class SliceDelete(DeleteSlice):
13     """
14     Deprecated. See DeleteSlice.
15
16     """
17
18     status = "deprecated"
19
20     roles = ['admin', 'pi']
21
22     accepts = [
23         Auth(),
24         Slice.fields['name']
25         ]
26
27     returns = Parameter(int, 'Returns 1 if successful, a fault otherwise.')
28
29     def call(self, auth, slice_name):
30
31         return DeleteSlice.call(self, auth, slice_name)