merge from trunk
[plcapi.git] / PLC / Methods / AddAddressType.py
index ceb1807..9fc771b 100644 (file)
@@ -25,15 +25,12 @@ class AddAddressType(Method):
 
     returns = Parameter(int, 'New address_type_id (> 0) if successful')
         
-    event_type = 'Add'    
-    object_type = 'AddressType'
-    object_ids = []
 
     def call(self, auth, address_type_fields):
         address_type_fields = dict(filter(can_update, address_type_fields.items()))
         address_type = AddressType(self.api, address_type_fields)
         address_type.sync()
 
-       self.object_ids = [address_type['address_type_id']]
+       self.event_objects = {'AddressType' : [address_type['address_type_id']]}
         
        return address_type['address_type_id']