caljer1 / auto-repair-shop

Automatically exported from code.google.com/p/auto-repair-shop
0 stars 0 forks source link

saveVehicleInfo must catch ValidationErrors #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In dermico.py, saveVehicleInfo
it should look similar to saveCustomerInfo with its try/except block
to catch ValidationErrors

Same for def saveWorkOrder

For this change to work, I will have to test it out with my 
MaintAppModel.py

Original issue reported on code.google.com by Les.Faby.78@gmail.com on 9 Jun 2009 at 5:33

GoogleCodeExporter commented 9 years ago
saveVehicleInfo and saveWorkorderInfo are now compliant.  One consequence of 
this,
however, is that the model is now responsible for checking the state dependent 
fields
in the workorder.

The task_list and work_performed are all required when the workorder status is 
marked
as completed.  We should also check that the date_closed is present when the 
status
is marked as closed.

Original comment by bd.gai...@gmail.com on 9 Jun 2009 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by bd.gai...@gmail.com on 9 Jun 2009 at 3:26

GoogleCodeExporter commented 9 years ago

Original comment by bd.gai...@gmail.com on 12 Jun 2009 at 9:10