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.UpdateSlice import UpdateSlice
12 class SliceUpdate(UpdateSlice):
14 Deprecated. See UpdateSlice.
20 roles = ['admin', 'pi', 'user']
26 Slice.fields['description'],
29 returns = Parameter(int, '1 if successful')
31 def call(self, auth, slice_name, url, description):
34 slice_fields['url'] = url
35 slice_fields['description'] = description
37 return UpdateSlice.call(self, auth, slice_name, slice_fields)