for robustness
[plcapi.git] / PLC / Methods / GetNetworkMethods.py
index b29ad37..dddb1fd 100644 (file)
@@ -1,3 +1,4 @@
+# $Id$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -9,7 +10,7 @@ class GetNetworkMethods(Method):
     Returns a list of all valid network methods.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node']
 
     accepts = [
         Auth()
@@ -17,8 +18,6 @@ class GetNetworkMethods(Method):
 
     returns = [NetworkMethod.fields['method']]
 
-    event_type = 'Get'
-    object_type = 'NetworkMethod'
 
     def call(self, auth):
         return [network_method['method'] for network_method in NetworkMethods(self.api)]