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
get rid of svn keywords once and for good
[plcapi.git]
/
PLC
/
Methods
/
GetNetworkMethods.py
diff --git
a/PLC/Methods/GetNetworkMethods.py
b/PLC/Methods/GetNetworkMethods.py
index
b29ad37
..
cee914a
100644
(file)
--- a/
PLC/Methods/GetNetworkMethods.py
+++ b/
PLC/Methods/GetNetworkMethods.py
@@
-9,7
+9,7
@@
class GetNetworkMethods(Method):
Returns a list of all valid network methods.
"""
Returns a list of all valid network methods.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
accepts = [
Auth()
accepts = [
Auth()
@@
-17,8
+17,6
@@
class GetNetworkMethods(Method):
returns = [NetworkMethod.fields['method']]
returns = [NetworkMethod.fields['method']]
- event_type = 'Get'
- object_type = 'NetworkMethod'
def call(self, auth):
return [network_method['method'] for network_method in NetworkMethods(self.api)]
def call(self, auth):
return [network_method['method'] for network_method in NetworkMethods(self.api)]