+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
returns = Parameter(int, '1 if successful')
- event_type = 'Delete'
- object_type = 'AddressType'
def call(self, auth, address_type_id_or_name):
address_types = AddressTypes(self.api, [address_type_id_or_name])
raise PLCInvalidArgument, "No such address type"
address_type = address_types[0]
address_type.delete()
- self.object_ids = [address_type['address_type_id']]
+ self.event_objects = {'AddressType': [address_type['address_type_id']]}
return 1