- added 'message' instance variable (high level description of this event)
[plcapi.git] / PLC / Methods / UpdateNodeNetwork.py
index a5b6ac5..244647c 100644 (file)
@@ -61,6 +61,9 @@ class UpdateNodeNetwork(Method):
        # Update node network
        nodenetwork.update(nodenetwork_fields)
         nodenetwork.sync()
+       
        self.object_ids = [nodenetwork['nodenetwork_id']]
+       self.message = "Node network %d updated: %s " % \
+           (nodenetwork['nodenetwork_id'], ", ".join(nodenetwork_fields.keys()))
 
         return 1