+# $Id$
+# $URL$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
returns = Parameter(int, 'New address_id (> 0) if successful')
-
def call(self, auth, site_id_or_login_base, address_fields):
address_fields = dict(filter(can_update, address_fields.items()))
site.add_address(address, commit = True)
# Logging variables
- self.object_ids = [site['site_id'], address['address_id']]
+ self.event_objects = {'Site': [site['site_id']],
+ 'Address': [address['address_id']]}
self.message = 'Address %d assigned to Site %d' % \
(address['address_id'], site['site_id'])