typos & doc
[plcapi.git] / PLC / Methods / AddPCU.py
index cc9113d..3c46194 100644 (file)
@@ -52,6 +52,10 @@ class AddPCU(Method):
         pcu['site_id'] = site['site_id']
         pcu.sync()
 
-       self.object_ids = [site['site_id'], pcu['pcu_id']]
+       # Logging variables
+       self.event_objects = {'Site': [site['site_id']],
+                             'PCU': [pcu['pcu_id']]}
+       self.message = 'PCU %d added site %s' % \
+               (pcu['pcu_id'], site['site_id'])
 
         return pcu['pcu_id']