minimalparts / PeARS

Archive repository for the PeARS project. Please head over to https://github.com/PeARSearch/PeARS-orchard for the latest version.
MIT License
17 stars 21 forks source link

Some minor code refactoring #25

Closed nandajavarma closed 9 years ago

nandajavarma commented 9 years ago

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).

stultus commented 9 years ago

Looks good to me. Merging.