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
force import of AuthorizeHelpers
[plcapi.git]
/
PLC
/
Methods
/
GetAddresses.py
diff --git
a/PLC/Methods/GetAddresses.py
b/PLC/Methods/GetAddresses.py
index
bff3b73
..
7ebc80b
100644
(file)
--- a/
PLC/Methods/GetAddresses.py
+++ b/
PLC/Methods/GetAddresses.py
@@
-1,3
+1,5
@@
+# $Id$
+# $URL$
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
@@
-14,7
+16,7
@@
class GetAddresses(Method):
specified, only the specified details will be returned.
"""
specified, only the specified details will be returned.
"""
- roles = ['admin', 'pi', 'user', 'tech']
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
accepts = [
Auth(),
accepts = [
Auth(),
@@
-24,9
+26,7
@@
class GetAddresses(Method):
]
returns = [Address.fields]
]
returns = [Address.fields]
-
- event_type = 'Get'
- object_type = 'Address'
+
def call(self, auth, address_filter = None, return_fields = None):
return Addresses(self.api, address_filter, return_fields)
def call(self, auth, address_filter = None, return_fields = None):
return Addresses(self.api, address_filter, return_fields)