X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=PLC%2FMethods%2FGetAddresses.py;h=7ebc80ba77f6d6bf1756c6463e4df716c7c106ae;hb=3cf628a5149714c966e7dc1a778a5df7afc581dc;hp=bff3b73972ee5c0a72b12ce1ef0f2eecaf3bf83e;hpb=8e199f468aaf48ac1dad3090c149711f38aa6c38;p=plcapi.git diff --git a/PLC/Methods/GetAddresses.py b/PLC/Methods/GetAddresses.py index bff3b73..7ebc80b 100644 --- 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 @@ -14,7 +16,7 @@ class GetAddresses(Method): specified, only the specified details will be returned. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node'] accepts = [ Auth(), @@ -24,9 +26,7 @@ class GetAddresses(Method): ] 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)