(most) all functions now take SessionAuth in addition to PasswordAuth
[plcapi.git] / PLC / Methods / AdmAddNodeNetwork.py
index 58c9874..c309a77 100644 (file)
@@ -2,7 +2,7 @@ from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.NodeNetworks import NodeNetwork, NodeNetworks
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 from PLC.Methods.AddNodeNetwork import AddNodeNetwork
 
 can_update = lambda (field, value): field not in ['nodenetwork_id', 'node_id', 'method', 'type']
@@ -17,7 +17,7 @@ class AdmAddNodeNetwork(AddNodeNetwork):
     nodenetwork_fields = dict(filter(can_update, NodeNetwork.fields.items()))
 
     accepts = [
-        PasswordAuth(),
+        Auth(),
         NodeNetwork.fields['node_id'],
         NodeNetwork.fields['method'],
         NodeNetwork.fields['type'],