Jannis Leidel
|
b1356e8761
|
Back to tuple style syntax for permission required decorator.
|
2009-07-06 21:57:16 +02:00 |
|
Jannis Leidel
|
9b4b9bf096
|
Try to fix the permission system after breaking it.
|
2009-07-06 19:08:44 +02:00 |
|
Jannis Leidel
|
1421d47085
|
Remove debugging print statement.
|
2009-07-06 16:04:58 +02:00 |
|
Jannis Leidel
|
6740e52369
|
Introduce a new syntax for the decorator to not rely on the order of the arguments passed to the view function. That failed because kwargs is a dict, d'oh.
|
2009-07-06 16:03:56 +02:00 |
|
Jannis Leidel
|
aad51ef877
|
Removed dependency on external decorator package, using functools.wraps instead.
|
2009-07-06 11:08:36 +02:00 |
|
Jannis Leidel
|
3fe2ba2991
|
The decorator falls back nicely if a query parameter isn't given and therefore None by ignoring it.
|
2009-07-05 23:42:30 +02:00 |
|
Jannis Leidel
|
287d2eccd5
|
Fixed decorator to only check for permissions if user is logged in. Added permission_denied view to be used when permission check unsuccessful, e.g. with the new permission_required_or_403 decorator. The permission_required decorator will redirect to the login form by default.
|
2009-07-03 15:41:21 +02:00 |
|
Jannis Leidel
|
8a38d574d5
|
Added decorator to be used with views, yay
|
2009-06-22 01:06:21 +02:00 |
|