diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-05 13:37:19 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2012-12-05 13:37:19 +0100 |
commit | ad7420281cdaf5846d8754a29e5006bde82d87f9 (patch) | |
tree | 49342c9f20af9cf024901f2d26c3b608687f428a /docs/source/pluginwriter | |
parent | 2222278dcdf70a1dbcba0e5955344259d0697752 (diff) | |
download | mediagoblin-ad7420281cdaf5846d8754a29e5006bde82d87f9.tar.lz mediagoblin-ad7420281cdaf5846d8754a29e5006bde82d87f9.tar.xz mediagoblin-ad7420281cdaf5846d8754a29e5006bde82d87f9.zip |
Create a active_user_from_url decorator
This can be used for URL patterns containing a <user> element. It will look
up the corresponding user among all active users and return a 404 NOT FOUND
page if there is no such active user. It then passes the User() instance as
url_user keyword argument to the decorated view function.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'docs/source/pluginwriter')
0 files changed, 0 insertions, 0 deletions