sc3/cookcountyjail — pull request #69 by bepetersn (2013-05-25 19:58:31+00:00)
Title: Created initial working version of fabfile; expanded django model for CourtLocation

For fabfile:
- Added a default host at 127.0.01 for Fabric to run on.
- Implemented a simplistic way to get pre-requisites before running pip install, using apt.
- Various other tweaks.

For models & scrape_inmates command:
- Added individual fields for each piece of information that is contained in a CourtLocation string.
- Separated into its own method all the parsing specific to Court Location, and tweaked this parsing until it succeeds most of the time (and identified the few ways it seems to fail).

NOTE: @Davy-jones-Giant-squid contributed a good portion (perhaps the majority of) the code for updating the CourtLocation model and parsing for it, but had mysteriously backed off of their own changes. I reconstituted this and tweaked the result until it worked.