PasteDeploy's documentation helped, but it was still a little confusing. To 
add a custom middleware you have to write it like:
def auth_filter_factory(global_conf):
    def add_auth(app):
        # make wsgi app
        return app
    return add_auth


and then in the INI file:
[pipeline:main] 
pipeline = egg:WebError#evalerror auth sales

[filter:auth] 
paste.filter_factory = sales.lib.auth:auth_filter_factory

Any additional keys under [filter:auth] will be sent to auth_filter_factory 
as keyword arguments

--
Jason

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/7C1Bhh3ojt8J.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to