+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
def call(self, auth, address_type_id_or_name, address_type_fields):
address_type_fields = dict(filter(can_update, address_type_fields.items()))
- address_types = AddressTypes(self.api, [address_type_id_or_name]).values()
+ address_types = AddressTypes(self.api, [address_type_id_or_name])
if not address_types:
raise PLCInvalidArgument, "No such address type"
address_type = address_types[0]
address_type.update(address_type_fields)
address_type.sync()
+ self.event_objects = {'AddressType': [address_type['address_type_id']]}
return 1