svn keywords
[plcapi.git] / PLC / Methods / UpdateAddress.py
index 2fdc194..4586f64 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -45,5 +47,10 @@ class UpdateAddress(Method):
 
         address.update(address_fields)
         address.sync()
-
-        return 1
+       
+       # Logging variables
+       self.event_objects = {'Address': [address['address_id']]}
+       self.message = 'Address %d updated: %s' % \
+               (address['address_id'], ", ".join(address_fields.keys()))
+        
+       return 1