"""The root directory for the Quixote demo.
"""
from quixote import get_response
from quixote.directory import Directory
from quixote.errors import PublishError
from quixote.util import dump_request
from quixote.demo.extras import ExtraDirectory
class RootDirectory(Directory):
_q_exports = ["", "simple", "plain", "error", "publish_error", "css",
"dumpreq", "extras", ("favicon.ico", "favicon_ico")]
def _q_index [html] (self):
print "debug message from the index page"
"""
Quixote Demo
Hello, world!
To understand what's going on here, be sure to read the
doc/demo.txt file included with Quixote.
Here are some features of this demo:
simple:
A Python function that generates a very simple document.
plain:
A Python function that generates a plain text document.
error:
A Python function that raises an exception.
publish_error:
A Python function that raises
a PublishError exception. This exception
will be caught by a _q_exception_handler method.
dumpreq:
Print out the contents of the HTTPRequest object.