svn keywords
[plcapi.git] / PLC / Methods / DeleteAddressTypeFromAddress.py
index 3078737..4115759 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -24,6 +26,7 @@ class DeleteAddressTypeFromAddress(Method):
         ]
 
     returns = Parameter(int, '1 if successful')
+    
 
     def call(self, auth, address_type_id_or_name, address_id):
         address_types = AddressTypes(self.api, [address_type_id_or_name])
@@ -41,5 +44,7 @@ class DeleteAddressTypeFromAddress(Method):
                 raise PLCPermissionDenied, "Address must be associated with one of your sites"
 
         address.remove_address_type(address_type)
+       self.event_objects = {'Address' : [address['address_id']],
+                             'AddressType': [address_type['address_type_id']]} 
 
         return 1