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. :-))
P.S. - I, by mistake, pushed my changes directly to out main development branch. I have reverted the changes now. Sorry about that(in case anyone noticed :P).
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. :-)) P.S. - I, by mistake, pushed my changes directly to out main development branch. I have reverted the changes now. Sorry about that(in case anyone noticed :P).