Mercurial > hg > decoupage
view decoupage/factory.py @ 26:f306089d6def
now use contenttransformer to serve files if /transformer in directory configuration; TODO: cache on a per-directory basis
author | k0s <k0scist@gmail.com> |
---|---|
date | Sun, 17 Jan 2010 19:49:04 -0500 |
parents | 6a802c87f070 |
children | 9c570aed2246 |
line wrap: on
line source
from web import Decoupage from paste.httpexceptions import HTTPExceptionHandler def factory(global_conf, **app_conf): """create a webob view and wrap it in middleware""" app = Decoupage(**app_conf) return HTTPExceptionHandler(app)