summaryrefslogtreecommitdiff
path: root/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'web.py')
-rw-r--r--web.py6
1 files changed, 3 insertions, 3 deletions
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")