- added 'message' instance variable (high level description of this event)
[plcapi.git] / PLC / Methods / UpdateKey.py
index 14e521e..15a01ce 100644 (file)
@@ -45,6 +45,9 @@ class UpdateKey(Method):
 
         key.update(key_fields)
         key.sync()
+       
+       # Logging variables
        self.object_ids = [key['key_id']]
-
+       self.message = 'key %d updated: %s' % \
+               (key['key_id'], ", ".join(key_fields.keys()))
         return 1