Mercurial > hg > theslasher
view theslasher/factory.py @ 0:3812c1493dde default tip
add the slasher...be afraid, be very afraid
author | k0s <k0scist@gmail.com> |
---|---|
date | Mon, 11 Jan 2010 17:50:36 -0500 |
parents | |
children |
line wrap: on
line source
from paste.httpexceptions import HTTPExceptionHandler from theslasher import TheSlasher from webob import Response def example(environ, start_response): return Response(content_type='text/plain', body=environ['PATH_INFO'])(environ, start_response) def factory(global_conf, **app_conf): """create a webob view and wrap it in middleware""" return TheSlasher(example)