diff options
author | yvesf <yvesf@pinky.(none)> | 2010-11-24 22:41:28 +0100 |
---|---|---|
committer | yvesf <yvesf@pinky.(none)> | 2010-11-24 22:41:28 +0100 |
commit | ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6 (patch) | |
tree | 8dbd16b11546bf4a6a940b7c5f0a79d94dad48c9 /web.py | |
parent | 9a1362c62fb52c125fd818a147e63c96c317081f (diff) | |
download | booksearch-ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6.tar.gz booksearch-ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6.zip |
proxy fixups
Diffstat (limited to 'web.py')
-rw-r--r-- | web.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,7 +101,7 @@ class MyHtmlFormatter(highlight.HtmlFormatter): return highlight.HtmlFormatter._format_fragment(self, text, fragment, seen) @app.route("/excerpt/<int:docnum>/<path:term>", 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) |