(most) all functions now take SessionAuth in addition to PasswordAuth
[plcapi.git] / PLC / Methods / UpdateSliceAttribute.py
index 425b7e6..5557ad0 100644 (file)
@@ -3,7 +3,7 @@ from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.SliceAttributes import SliceAttribute, SliceAttributes
 from PLC.Slices import Slice, Slices
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 
 class UpdateSliceAttribute(Method):
     """
@@ -20,7 +20,7 @@ class UpdateSliceAttribute(Method):
     roles = ['admin', 'pi', 'user']
 
     accepts = [
-        PasswordAuth(),
+        Auth(),
         SliceAttribute.fields['slice_attribute_id'],
         SliceAttribute.fields['value']
         ]