Ian Bicking: the old part of his blog

Re: Paste Deployment 0.1

After writing that example, I realized the use of egg:Paste#pipeline was too complex, so I added a couple constructs to make applying filters easier. Now it could be written like:

admin_email = me@example.com

# Put one login system in front of entire site
use = egg:Paste#login
database = mysql://localhost/userdb
table = users
# This defines what the filter wraps:
next = urldispatch


# the login filter should give us a username; this just restricts
# who can access
use = egg:Paste#auth
require_role = admin
next = filebrowser_app

Removing the [composit:main] and [composit:filebrowser] sections.

Comment on Paste Deployment 0.1
by Ian Bicking