comparison mod_incidents_handling/incidents_handling/mod_incidents_handling.lua @ 918:dec71c31fb78

mod_incidents_handling: run cleanup and save the store when a new object is added.
author Marco Cirillo <maranda@lightwitch.org>
date Sat, 02 Mar 2013 11:47:20 +0100
parents d814cc183c40
children f183de41b7c6
comparison
equal deleted inserted replaced
917:d3497b81a3b5 918:dec71c31fb78
144 assessment = assessment, 144 assessment = assessment,
145 event_data = { sources = sources, targets = targets } 145 event_data = { sources = sources, targets = targets }
146 } 146 }
147 147
148 self[new_object.data.id.text] = new_object 148 self[new_object.data.id.text] = new_object
149 self:clean() ; self:save()
149 return new_object.data.id.text 150 return new_object.data.id.text
150 else return false end 151 else return false end
151 end 152 end
152 153
153 -- // Handler Functions // 154 -- // Handler Functions //