summaryrefslogtreecommitdiff
path: root/sandbox/py-rest-doc/sphinx/web/application.py
diff options
context:
space:
mode:
authorblackbird <blackbird@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-05-22 22:23:54 +0000
committerblackbird <blackbird@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-05-22 22:23:54 +0000
commit889322f3740e84bcdd1c6e73805be772b98ca38e (patch)
tree471a93f22c6059a2b9cc5090a102001ff622c871 /sandbox/py-rest-doc/sphinx/web/application.py
parent35655550c014312fdc27f1501b25bf6505a5af44 (diff)
downloaddocutils-889322f3740e84bcdd1c6e73805be772b98ca38e.tar.gz
disable search for now
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5099 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/web/application.py')
-rw-r--r--sandbox/py-rest-doc/sphinx/web/application.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sandbox/py-rest-doc/sphinx/web/application.py b/sandbox/py-rest-doc/sphinx/web/application.py
index a4ce559f6..3680ab3f8 100644
--- a/sandbox/py-rest-doc/sphinx/web/application.py
+++ b/sandbox/py-rest-doc/sphinx/web/application.py
@@ -66,7 +66,11 @@ class DocumentationApplication(object):
"""
Search the database.
"""
- #XXX: this code is ugly. especially the way the summary is created.
+ # disabled for now
+ if not req.args.get('q'):
+ return RedirectResponse('')
+ return RedirectResponse('q/%s/' % req.args['q'])
+
results = None
if 'q' in req.args:
# sidebar checks for keywords too.