From ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6 Mon Sep 17 00:00:00 2001 From: yvesf Date: Wed, 24 Nov 2010 22:41:28 +0100 Subject: proxy fixups --- web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web.py') diff --git a/web.py b/web.py index 23a69bd..0ae73bb 100644 --- a/web.py +++ b/web.py @@ -101,7 +101,7 @@ class MyHtmlFormatter(highlight.HtmlFormatter): return highlight.HtmlFormatter._format_fragment(self, text, fragment, seen) @app.route("/excerpt//", methods=["GET"]) -def excerpt(docnum, term): +def do_excerpt(docnum, term): def generator(q): for result in searcher.search(q, limit=1, sortedby="pagenumber"): terms = [ text for fieldname, text in q.all_terms() @@ -168,4 +168,4 @@ def log_response(sender, response): 'Response: %s', response) if __name__ == "__main__": app.debug = True - app.run(host="0.0.0.0") + app.run(host="0.0.0.0", port=8000) -- cgit v1.2.1