caljer1 / auto-repair-shop

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

Show Work Order History go to Traceback for an existing vehicle with no work order saved #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Find customer
2. Select a customer who has a vehicle in db and no work order for that vehicle
3. Click on [Show Work Order History] button

What is the expected output?
Button should be greyed-out (or no action).

What do you see instead?
Get Python Traceback:

Traceback (most recent call last):
  File
"/Developer/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAp
pEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/
webapp/__init__.py",
line 503, in __call__
    handler.post(*groups)
  File "/Users/jcalvo/PYTHON/WORKSPACE/Code_for_week3/src/dermico.py", line
55, in post
    MaintAppController.theController().handle_button_events(self, button, tag)
  File "/Users/jcalvo/PYTHON/WORKSPACE/Code_for_week3/src/dermico.py", line
148, in handle_button_events
    dispatch_function(self, reqhandler, bIndex)
  File "/Users/jcalvo/PYTHON/WORKSPACE/Code_for_week3/src/dermico.py", line
476, in showWorkOrderHistory
    self.__activeWorkorderId = workorders[0].getId()
IndexError: list index out of range

Original issue reported on code.google.com by jerome.c...@gmail.com on 13 Jun 2009 at 5:11

GoogleCodeExporter commented 9 years ago
Truly amazing.  I just put in the fix for this problem.

Original comment by bd.gai...@gmail.com on 13 Jun 2009 at 5:14

GoogleCodeExporter commented 9 years ago
That was actually issue #4. Nothing new sorry. Jerome

Original comment by jerome.c...@gmail.com on 13 Jun 2009 at 5:15

GoogleCodeExporter commented 9 years ago

Original comment by bd.gai...@gmail.com on 13 Jun 2009 at 5:36