svn keywords
[plcapi.git] / PLC / Methods / AddPCU.py
index cc9113d..9def186 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -52,6 +54,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']