view decoupage/factory.py @ 34:527ccb76d043

merged some stuff
author k0s <k0scist@gmail.com>
date Mon, 08 Feb 2010 11:44:20 -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)