From ce0ff0c1fa0932b1ffda8aba773683ea551fd0e7 Mon Sep 17 00:00:00 2001 From: yvesf Date: Mon, 22 Nov 2010 15:04:59 +0100 Subject: remove debugging prints --- web.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web.py') diff --git a/web.py b/web.py index 985b293..0fc770d 100644 --- a/web.py +++ b/web.py @@ -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") -- cgit v1.2.1