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']
nodenetwork_fields = dict(filter(can_update, NodeNetwork.fields.items()))
accepts = [
- PasswordAuth(),
+ Auth(),
NodeNetwork.fields['node_id'],
NodeNetwork.fields['method'],
NodeNetwork.fields['type'],