""" $URL: svn+ssh://svn.mems-exchange.org/repos/trunk/qp/demo/echo/slash.qpy $ $Id: slash.qpy 28044 2006-03-09 16:35:08Z dbinger $ """ from qp.pub.publish import Publisher from qp.pub.common import get_request, header, footer from qp.fill.directory import Directory from pprint import pformat class SitePublisher (Publisher): configuration = dict( http_address=('', 8001), as_https_address=('localhost', 9001), https_address=('localhost', 10001), scgi_address=('localhost', 11001), ) class SiteDirectory (Directory): """ This site displays the http request. """ def get_exports(self): yield '', 'index', None, None def index [html] (self): header('HTTP Request') '