Closed slinkp closed 11 years ago
Closely related - what to do with blocks that have a city name but it's not one we know about? Currently that triggers the same exception.
This exception was removed.
Ticket imported from Trac: http://developer.openblockproject.org/ticket/261 Reported by: slinkp
During openblock-rural sprint, we imported some streets without the --city parameter. But you can't actually browse to a city-less block - if you do you get this:
Unfortunately, block.city is needed for building URLs in a multi-city configuration. Maybe for that case we'd need a special "non-city" location, and some way to tell import_blocks_esri (or the admin UI) what ?
There used to be an undocumented sql script for creating special "unknown [city/town/zip/...]" placeholder locations, at ebpub/ebpub/db/sql/unknown_locations.sql which was removed in commit 13151acef5198f5bea5dd93022d8d97d9c5151a8 Something like that would have to be run by a trigger or signal every time you create a new LocationType, and there'd have to be logic sprinkled around to associate NewsItems with the unknown location by default.