summaryrefslogtreecommitdiff
path: root/web.py
diff options
context:
space:
mode:
authoryvesf <yvesf@pinky.(none)>2010-11-24 22:41:28 +0100
committeryvesf <yvesf@pinky.(none)>2010-11-24 22:41:28 +0100
commitff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6 (patch)
tree8dbd16b11546bf4a6a940b7c5f0a79d94dad48c9 /web.py
parent9a1362c62fb52c125fd818a147e63c96c317081f (diff)
downloadbooksearch-ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6.tar.gz
booksearch-ff87c6dcaa65c3b1ac366a0ce05b9d6ecf7445b6.zip
proxy fixups
Diffstat (limited to 'web.py')
-rw-r--r--web.py4
1 files changed, 2 insertions, 2 deletions
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/<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)