sunlightlabs/billy — pull request #231 by jpmckinney (2012-11-30 03:25:05+00:00)
Title: Use 'abbreviation' in scraper classes, rather than LEVEL_FIELD

In addition to Philadelphia, I need Washington, D.C. data. For my local government scrapers, I chose "jurisdiction" as the LEVEL_FIELD, whereas OpenStates appropriately chooses "state".

This small difference causes a problem, because when building the _scraper_registry, Billy won't pick up Washington, D.C., because its LEVEL_FIELD is different. I'm wondering whether all scraper classes should just have an "abbreviation" attribute, rather than a LEVEL_FIELD attribute.

If we were to go ahead with that, my Washington, D.C. objects will be saved with a different LEVEL_FIELD that OpenStates (given that the LEVEL_FIELD will still be used in every other case), but that's not a problem. I've tested this, and I can run DC scrapers after changing `state = 'dc'` to `abbreviation = 'dc'`