(most) all functions now take SessionAuth in addition to PasswordAuth
[plcapi.git] / PLC / Methods / UpdateSlice.py
index 6d046de..f6c9943 100644 (file)
@@ -4,7 +4,7 @@ from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Slices import Slice, Slices
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 from PLC.Sites import Site, Sites
 
 can_update = lambda (field, value): field in \
@@ -31,7 +31,7 @@ class UpdateSlice(Method):
     slice_fields = dict(filter(can_update, Slice.fields.items()))
 
     accepts = [
-        PasswordAuth(),
+        Auth(),
         Mixed(Slice.fields['slice_id'],
               Slice.fields['name']),
         slice_fields