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
bugfix, scanning native_methods needs to start in installed dir, not '.'
[plcapi.git]
/
PLC
/
Methods
/
GetKeyTypes.py
diff --git
a/PLC/Methods/GetKeyTypes.py
b/PLC/Methods/GetKeyTypes.py
index
50828a0
..
32bb658
100644
(file)
--- a/
PLC/Methods/GetKeyTypes.py
+++ b/
PLC/Methods/GetKeyTypes.py
@@
-6,10
+6,10
@@
from PLC.Auth import Auth
class GetKeyTypes(Method):
"""
class GetKeyTypes(Method):
"""
- Returns a
list
of all valid key types.
+ Returns a
n array
of all valid key types.
"""
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
accepts = [
Auth()
accepts = [
Auth()
@@
-17,5
+17,6
@@
class GetKeyTypes(Method):
returns = [KeyType.fields['key_type']]
returns = [KeyType.fields['key_type']]
+
def call(self, auth):
def call(self, auth):
- return [key_type['key_type'] for key_type in KeyTypes(self.api)
.values()
]
+ return [key_type['key_type'] for key_type in KeyTypes(self.api)]