X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAdmAddAddressType.py;h=e0cd09dce1acf29d9cbaad9caff8d8fda971540d;hb=2e7b23eea75847d91f079372191b9fcc822d7d8e;hp=d969dae8f9ed58eb576b7d92ce7ff8592e2d51b8;hpb=d1df8e3e85e270d9ba37310ce6ac1deb50d9f45e;p=plcapi.git diff --git a/PLC/Methods/AdmAddAddressType.py b/PLC/Methods/AdmAddAddressType.py index d969dae..e0cd09d 100644 --- a/PLC/Methods/AdmAddAddressType.py +++ b/PLC/Methods/AdmAddAddressType.py @@ -1,3 +1,8 @@ +from PLC.Faults import * +from PLC.Method import Method +from PLC.Parameter import Parameter, Mixed +from PLC.AddressTypes import AddressType, AddressTypes +from PLC.Auth import Auth from PLC.Methods.AddAddressType import AddAddressType class AdmAddAddressType(AddAddressType): @@ -6,3 +11,11 @@ class AdmAddAddressType(AddAddressType): """ status = "deprecated" + + accepts = [ + Auth(), + AddressType.fields['name'] + ] + + def call(self, auth, name): + return AddAddressType.call(self, auth, {'name': name})