Merge from trunk
[plcapi.git] / trunk / PLC / Methods / AdmAddAddressType.py
1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.AddressTypes import AddressType, AddressTypes
5 from PLC.Auth import Auth
6 from PLC.Methods.AddAddressType import AddAddressType
7
8 class AdmAddAddressType(AddAddressType):
9     """
10     Deprecated. See AddAddressType.
11     """
12
13     status = "deprecated"
14
15     accepts = [
16         Auth(),
17         AddressType.fields['name']
18         ]
19
20     def call(self, auth, name):
21         return AddAddressType.call(self, auth, {'name': name})