- updated with Thierrys patch which handles conflicting email addresses between peers
[plcapi.git] / PLC / Methods / UpdatePCU.py
index e22227b..8916684 100644 (file)
@@ -44,5 +44,9 @@ class UpdatePCU(Method):
 
         pcu.update(pcu_fields)
         pcu.sync()
-
+       
+       # Logging variables
+       self.event_objects = {'PCU': [pcu['pcu_id']]}
+       self.message = 'PCU %d updated: %s' % \
+               (pcu['pcu_id'], ", ".join(pcu_fields.keys()))
         return 1