openplans / openblock

OpenBlock is a web application and RESTful service that allows users to browse and search their local area for "hyper-local news
61 stars 26 forks source link

Better generic support for JSON in NewsItem attribute fields #242

Open slinkp opened 12 years ago

slinkp commented 12 years ago

See for example openblock/ebdata/ebdata/scrapers/us/ma/boston/restaurants. This stuff JSON in a single Attribute column. Works OK for storage, but there's no way to index it, and no good general way to display it. All we have is the eb_json.py template filter, which doesn't give us any useful way to use the lookup IDs that are stored in there by the restaurants scraper.

Two possible solutions:

slinkp commented 12 years ago

(In [b32bdb237cb035f43b94a0cbfd0b0f3347aff5d8]) Hackish support for displaying the restaurant inspections JSON. refs #249

slinkp commented 12 years ago

Ticket imported from Trac: http://developer.openblockproject.org/ticket/249 Reported by: slinkp