Merge from trunk
[plcapi.git] / trunk / PLC / Methods / AdmAddAddressType.py
diff --git a/trunk/PLC/Methods/AdmAddAddressType.py b/trunk/PLC/Methods/AdmAddAddressType.py
new file mode 100644 (file)
index 0000000..e0cd09d
--- /dev/null
@@ -0,0 +1,21 @@
+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):
+    """
+    Deprecated. See AddAddressType.
+    """
+
+    status = "deprecated"
+
+    accepts = [
+        Auth(),
+        AddressType.fields['name']
+        ]
+
+    def call(self, auth, name):
+        return AddAddressType.call(self, auth, {'name': name})