git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
formatted the 'db' script using vscode
[plcapi.git]
/
PLC
/
Methods
/
GetRoles.py
diff --git
a/PLC/Methods/GetRoles.py
b/PLC/Methods/GetRoles.py
index
df7dce5
..
fb905e5
100644
(file)
--- a/
PLC/Methods/GetRoles.py
+++ b/
PLC/Methods/GetRoles.py
@@
-2,20
+2,20
@@
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Roles import Role, Roles
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Roles import Role, Roles
-from PLC.Auth import
Password
Auth
+from PLC.Auth import Auth
class GetRoles(Method):
"""
Get an array of structs containing details about all roles.
"""
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 = [
accepts = [
-
Password
Auth()
+ Auth()
]
returns = [Role.fields]
def call(self, auth):
]
returns = [Role.fields]
def call(self, auth):
-
return Roles(self.api).values(
)
+
return Roles(self.api
)