mattvenn / cursivedata

polargraph energy monitor
1 stars 2 forks source link

Error handling for generators #19

Open mo-seph opened 11 years ago

mo-seph commented 11 years ago

Generators/Pipelines need to fail gracefully. If they run and fail, they should:

mattvenn commented 11 years ago

noticed that generators seem to always throw an exception at init, when they iterate through params. get an error about generator id not being null.

mattvenn commented 11 years ago

I've added a self.save() to the generator's init() to create an id that can then be used by parameters as a foreign key. Is this cool?

mo-seph commented 11 years ago

I think so - certainly something like that needs to happen (i.e. the Generator needs to be saved before it's Parameters can be).

On 10 Feb 2013, at 23:19, mattvenn wrote:

I've added a self.save() to the generator's init() to create an id that can then be used by parameters as a foreign key. Is this cool?

— Reply to this email directly or view it on GitHub..