diff options
author | yvesf <yvesf-git@xapek.org> | 2010-11-22 15:04:59 +0100 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2010-11-22 15:04:59 +0100 |
commit | ce0ff0c1fa0932b1ffda8aba773683ea551fd0e7 (patch) | |
tree | 0bdde6a3399d5ba27e00ce32e2a70c17b9cf4ebb /web.py | |
parent | af15f2c4a192dea02aab9e519defc68c71763ec4 (diff) | |
download | booksearch-ce0ff0c1fa0932b1ffda8aba773683ea551fd0e7.tar.gz booksearch-ce0ff0c1fa0932b1ffda8aba773683ea551fd0e7.zip |
remove debugging prints
Diffstat (limited to 'web.py')
-rw-r--r-- | web.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,6 @@ def do_book_file(docnum): def pdf_to_image(filepath, page): - print page def generator(process, input): input.seek(0) while not process.stdin.closed: @@ -127,8 +126,6 @@ def do_search(skip=0,term=None): query = QueryParser("content").parse(term) facets = searching.Facets.from_field(searcher, "path") results = searcher.search(query, limit=None) - for result in results: - print result.get("pagenumber") categories = facets.categorize(results) searcher.close() @@ -146,6 +143,9 @@ def do_search(skip=0,term=None): return flask.render_template('search.html', matches=matches, term=term) +def log_response(sender, response): + sender.logger.debug('Request context is about to close down. ' + 'Response: %s', response) if __name__ == "__main__": app.debug = True app.run(host="0.0.0.0") |