3 from PLC.Faults import *
4 from PLC.Method import Method
5 from PLC.Parameter import Parameter, Mixed
6 from PLC.Slices import Slice, Slices
7 from PLC.Auth import Auth
8 from PLC.Methods.UpdateSlice import UpdateSlice
10 class SliceUpdate(UpdateSlice):
12 Deprecated. See UpdateSlice.
18 roles = ['admin', 'pi', 'user']
24 Slice.fields['description'],
27 returns = Parameter(int, '1 if successful')
29 def call(self, auth, slice_name, url, description):
32 slice_fields['url'] = url
33 slice_fields['description'] = description
35 return UpdateSlice.call(self, auth, slice_name, slice_fields)