fix event logging
[plcapi.git] / PLC / Methods / GetNetworkTypes.py
index ed6ec88..aa5cbb5 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 GetNetworkTypes(Method):
     Returns a list of all valid network types.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node']
 
     accepts = [
         Auth()
@@ -17,5 +18,6 @@ class GetNetworkTypes(Method):
 
     returns = [NetworkType.fields['type']]
 
+
     def call(self, auth):
-        return [network_type['type'] for network_type in NetworkTypes(self.api).values()]
+        return [network_type['type'] for network_type in NetworkTypes(self.api)]