uoregon-libraries / oregonnews

!!Defunct!! University of Oregon fork of Chronicling America
1 stars 0 forks source link

Override only specific view methods #9

Closed jechols closed 7 years ago

jechols commented 10 years ago

We currently override all view methods, which leaves our code pinned to whatever version of views we copied originally, even though we make only very minor changes for the most part.

I believe the views __init__.py gives us the ability to pick and choose which view methods come from where. I'll need to dig some, but I think we can export just those methods we have to change, not even the whole file.

jechols commented 10 years ago

i.e., instead of from directory import newspapers, newspapers_atom, search_titles_results, newspapers_rdf, I think we could do this:

from core.directory import newspapers, newspapers_atom, search_titles
from directory import results, newspapers_rdf

Which would override only the results and newspapers_rdf methods of directory. I may be way off here, no time to do real testing yet, but this is my hope and dream.

jechols commented 7 years ago

No longer relevant with ONI switch pending