view decoupage/factory.py @ 38:cec3a2b24e78

bump version following distribution
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 19 Apr 2010 17:13:52 -0700
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)