summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackbird <blackbird@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-05-22 11:36:38 +0000
committerblackbird <blackbird@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-05-22 11:36:38 +0000
commit49b51ed098782ea4b802264e98182adad0e2f4f5 (patch)
treefafa5cf8beb925fd86a7cf0cc0ac2087eb7eefa3
parent06a58ba7a17b5b3b5dba1b61f8d35062cfc2fcac (diff)
downloaddocutils-49b51ed098782ea4b802264e98182adad0e2f4f5.tar.gz
fixed path
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5085 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--sandbox/py-rest-doc/sphinx/web/application.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sandbox/py-rest-doc/sphinx/web/application.py b/sandbox/py-rest-doc/sphinx/web/application.py
index 5a6050195..81af09b9f 100644
--- a/sandbox/py-rest-doc/sphinx/web/application.py
+++ b/sandbox/py-rest-doc/sphinx/web/application.py
@@ -113,7 +113,7 @@ class DocumentationApplication(object):
url = get_target_uri(filename)
return RedirectResponse(url)
# XXX: do a difflib match test here
- return Response(render_template(req, 'not_found.html'))
+ return Response(render_template(req, 'not_found.html'), status=404)
def __call__(self, environ, start_response):
"""
@@ -137,7 +137,7 @@ class DocumentationApplication(object):
return resp(environ, start_response)
-def make_app(conf=None):
+def make_app(conf):
"""
Creates the WSGI application based on a configuration passed.
Handled configuration values so far:
@@ -146,8 +146,8 @@ def make_app(conf=None):
the folder containing the documentation data as generated
by sphinx with the web builder.
"""
- app = DocumentationApplication(conf or {})
+ app = DocumentationApplication(conf)
app = SharedDataMiddleware(app, {
- '/style': path.join(path.dirname(__file__), '..', 'style')
+ '/style': path.join(conf['data_root_path'], 'style')
})
return app