I've had an issue lately where pretty much every function in a
controller needed an auth decorator.  Given how many functions were in
the controller this turned out to be an error prone forgetful process.
 So I came up with a simple and probably obvious way to make a
controller wide auth check complete with whitelist.  I threw it up on
my blog in case anyone is interested (
http://dougwarren.org/2010/06/controller-wide-auth-in-web2py/ )  If
there's a better way to handle this, I'd love to hear it :)

Reply via email to