This PR just takes some common code out and keeps it in a helper script.
The logic inside the Views was a scratch itching for a while. I moved it out to a separate file.
Also, the indexing still needs wikiwoods.dm. Since we are on the process of re-writing the parser, I just copied the wikiwoods back. (Also because utils directory does not fit in well with the flask architecture making it pretty touch to access the WikiWoods model. Giving relative imports is not exactly something that we should. :-))
This PR just takes some common code out and keeps it in a helper script. The logic inside the Views was a scratch itching for a while. I moved it out to a separate file.
Also, the indexing still needs wikiwoods.dm. Since we are on the process of re-writing the parser, I just copied the wikiwoods back. (Also because utils directory does not fit in well with the flask architecture making it pretty touch to access the WikiWoods model. Giving relative imports is not exactly something that we should. :-))