Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better generic support for JSON in NewsItem attribute fields #242

Open
slinkp opened this issue Sep 28, 2012 · 2 comments
Open

Better generic support for JSON in NewsItem attribute fields #242

slinkp opened this issue Sep 28, 2012 · 2 comments

Comments

@slinkp
Copy link
Contributor

slinkp commented Sep 28, 2012

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:

  • either eb_json.py could grow support for resolving Lookup IDs (how? look for dict keys with that magic name?) ...
  • or the newsitem_detail view could grow a hook where you could somehow register type-specific code to enhance the context.
@slinkp
Copy link
Contributor Author

slinkp commented Sep 28, 2012

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

@slinkp
Copy link
Contributor Author

slinkp commented Sep 28, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant