- Initial checkin of new API implementation
[plcapi.git] / PLC / Methods / UpdateAddress.py
index 2fdc194..3573573 100644 (file)
@@ -45,5 +45,10 @@ class UpdateAddress(Method):
 
         address.update(address_fields)
         address.sync()
-
-        return 1
+       
+       # Logging variables
+       self.object_ids = [address['address_id']]
+       self.message = 'Address %d updated: %s' % \
+               (address['address_id'], ", ".join(address_fields.keys()))
+        
+       return 1