Closed jechols closed 7 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.
No longer relevant with ONI switch pending
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.