jokabuyasina / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

Trip objects created without parameters don't have direction_id or block_id set #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a Trip using Trip()   # no parameters
2. add the Trip object to a Schedule
3. call schedule.WriteGoogleTransitFeed
4. you'll get exceptions that trip.direction_id and trip.block_id aren't
defined.

Once this is fixed, we can remove the gratuitous definitions of those
attributes from the TransitFeed sample code.

Original issue reported on code.google.com by joe.hugh...@gmail.com on 23 Apr 2007 at 2:35

GoogleCodeExporter commented 8 years ago
patch in branch joe.hughes.code-trip_defaults

Original comment by joe.hugh...@gmail.com on 23 Apr 2007 at 3:46

GoogleCodeExporter commented 8 years ago
Fixed by joe.hughes.code-trip_defaults

Original comment by joe.hugh...@gmail.com on 23 Apr 2007 at 6:07