inpho / inphosite

The InPhO API
https://inphoproject.org
15 stars 5 forks source link

query filtering #54

Closed JaimieMurdock closed 12 years ago

JaimieMurdock commented 12 years ago

The list interface for each entity type should have an ability to filter based on the absence or presence of a particular field. For example, https://inpho.cogs.indiana.edu/thinker?missing=birth_dates would return the list of thinkers missing a value in the birth_dates property. This interface should be similar to the journal url_checker and display the number missing.

This should be placed in the controllers/entity.py list function, and can use Python's getattr function to get the proper attribute.

After this simple filter is done, we would like to create a way to create generic filter arguments for SQLAlchemy's filter method and use the list function to also display these results.

alefrost commented 12 years ago

I have set up an admin page for thinkers, journals, and ideas. I just need to add school of thought. It's all still on my testing server 8087. I will finish it up definitely by three today, most likely before then, though.

colinallen commented 12 years ago

Status update?