Jannis Leidel
|
71eee85b85
|
Moved authority app from src/ to root directory
--HG--
rename : src/authority/__init__.py => authority/__init__.py
rename : src/authority/admin.py => authority/admin.py
rename : src/authority/decorators.py => authority/decorators.py
rename : src/authority/exceptions.py => authority/exceptions.py
rename : src/authority/fixtures/tests.json => authority/fixtures/tests.json
rename : src/authority/forms.py => authority/forms.py
rename : src/authority/managers.py => authority/managers.py
rename : src/authority/models.py => authority/models.py
rename : src/authority/permissions.py => authority/permissions.py
rename : src/authority/sites.py => authority/sites.py
rename : src/authority/templates/admin/edit_inline/action_tabular.html => authority/templates/admin/edit_inline/action_tabular.html
rename : src/authority/templates/admin/permission_change_form.html => authority/templates/admin/permission_change_form.html
rename : src/authority/templates/authority/403.html => authority/templates/authority/403.html
rename : src/authority/templates/authority/permission_delete_link.html => authority/templates/authority/permission_delete_link.html
rename : src/authority/templates/authority/permission_form.html => authority/templates/authority/permission_form.html
rename : src/authority/templates/authority/permission_request_approve_link.html => authority/templates/authority/permission_request_approve_link.html
rename : src/authority/templates/authority/permission_request_delete_link.html => authority/templates/authority/permission_request_delete_link.html
rename : src/authority/templatetags/__init__.py => authority/templatetags/__init__.py
rename : src/authority/templatetags/permissions.py => authority/templatetags/permissions.py
rename : src/authority/tests.py => authority/tests.py
rename : src/authority/urls.py => authority/urls.py
rename : src/authority/views.py => authority/views.py
rename : src/authority/widgets.py => authority/widgets.py
|
2010-01-07 18:00:41 +01:00 |
|
Martin Mahner
|
d64c52dc36
|
Another cleanup after the merge. Removed some unused imports
|
2009-07-10 18:28:33 +02:00 |
|
Martin Mahner
|
69a443effd
|
Merged with jezdez' repo
--HG--
files : src/authority/actions.py
files : src/authority/admin.py
files : src/authority/decorators.py
files : src/authority/permissions.py
|
2009-07-10 18:10:48 +02:00 |
|
Jannis Leidel
|
340cbb9c73
|
Fixes issue #2 - Adds ability to pass non-lookup parameters in decorator to permission check.
|
2009-07-10 15:55:25 +02:00 |
|
Jannis Leidel
|
13cc721580
|
Refactored permission class registration.
|
2009-07-10 01:07:20 +02:00 |
|
Martin Mahner
|
9851fc8d6e
|
Overall cleanup. Removed unused imports. Fixed whitespaces.
|
2009-07-09 13:51:28 +02:00 |
|
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 |
|