Merge from head.
[plcapi.git] / PLC / Methods / AdmAddAddressType.py
index d969dae..e0cd09d 100644 (file)
@@ -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})