4 from PLC.Faults import *
5 from PLC.Method import Method
6 from PLC.Parameter import Parameter, Mixed
7 from PLC.Slices import Slice, Slices
8 from PLC.Auth import Auth
9 from PLC.Methods.UpdateSlice import UpdateSlice
11 class SliceUpdate(UpdateSlice):
13 Deprecated. See UpdateSlice.
19 roles = ['admin', 'pi', 'user']
25 Slice.fields['description'],
28 returns = Parameter(int, '1 if successful')
30 def call(self, auth, slice_name, url, description):
33 slice_fields['url'] = url
34 slice_fields['description'] = description
36 return UpdateSlice.call(self, auth, slice_name, slice_fields)