embed svn Id keyword
[plcapi.git] / PLC / Methods / GetRoles.py
index df7dce5..a5d1c59 100644 (file)
@@ -1,21 +1,22 @@
+# $Id#
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
 from PLC.Roles import Role, Roles
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 
 class GetRoles(Method):
     """
     Get an array of structs containing details about all roles.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node']
 
     accepts = [
-        PasswordAuth()
+        Auth()
         ]
 
     returns = [Role.fields]
-
+    
     def call(self, auth):
-       return Roles(self.api).values()
+       return Roles(self.api)