svn keywords
[plcapi.git] / PLC / Methods / GetNetworkTypes.py
index d819761..c1ced07 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -9,7 +11,7 @@ class GetNetworkTypes(Method):
     Returns a list of all valid network types.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node']
 
     accepts = [
         Auth()
@@ -17,8 +19,6 @@ class GetNetworkTypes(Method):
 
     returns = [NetworkType.fields['type']]
 
-    event_type = 'Get'
-    object_type = 'NetworkType'
 
     def call(self, auth):
         return [network_type['type'] for network_type in NetworkTypes(self.api)]