| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
_CheckLogin
Class that checks that the user passes the given test, redirecting to the log-in page if necessary. If the test is passed, the view function is invoked. The test should be a callable that takes the user object and returns True if the user passes.
We use a class here so that we can define __get__. This way, when a _CheckLogin object is used as a method decorator, the view function is properly bound to its instance.
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Apr 17 18:52:15 2008 | http://epydoc.sourceforge.net |