caljer1 / auto-repair-shop

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

Need to read names of mechanics from file. #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We discussed this at Monday's meeting, but haven't started this process.

I added a directory config and file under that directory mechanics.cfg with
our names in the list.  The file currently uses the convention of ''' at
the beginning of a line indicating a comment.  There is also a blank line
in this file.

In addition, I added getMechanics as a method in the Model which is stubbed
to return the list of names.  I also extended the configureWorkorderContent
in the view to receive the list of mechanics.

Jerome should work with the list being passed in and replace the hard coded
list of names he is currently using.

Les mentioned that he might take on the task of reading the contents of the
file.  So, you might work on this one, Les.  (Wing has some code she is
working on in the Model to support preventing duplicate customers.)

This one can go into the June 21 release if the list of items is too long
for this week.

Original issue reported on code.google.com by bd.gai...@gmail.com on 14 Jun 2009 at 7:14

GoogleCodeExporter commented 9 years ago
I modified code implementing list of mechanics. The list is currently hard-coded
in __output_workorder_form(), but the code providing a dynamic list of 
dictionaries to
the template works.  MaintAppView.py - r149

Original comment by jerome.c...@gmail.com on 14 Jun 2009 at 9:48

GoogleCodeExporter commented 9 years ago
Les has implemented code reading text file and tested OK.

Original comment by jerome.c...@gmail.com on 15 Jun 2009 at 10:41