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
implement file lock based on peername to prevent running two RefreshPeer at a time.
[plcapi.git]
/
PLC
/
Methods
/
GetNetworkMethods.py
diff --git
a/PLC/Methods/GetNetworkMethods.py
b/PLC/Methods/GetNetworkMethods.py
index
b29ad37
..
dddb1fd
100644
(file)
--- a/
PLC/Methods/GetNetworkMethods.py
+++ b/
PLC/Methods/GetNetworkMethods.py
@@
-1,3
+1,4
@@
+# $Id$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-9,7
+10,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
+18,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)]