Jannis Leidel
|
4b6fae8a27
|
Removed unrequired import.
|
2009-07-07 14:51:56 +02:00 |
|
Jannis Leidel
|
31eba894d8
|
Fixed backwards incompatibility with admin.
|
2009-07-07 14:50:49 +02:00 |
|
Jannis Leidel
|
79860a5cf3
|
test commit
|
2009-07-07 13:13:19 +02:00 |
|
Jannis Leidel
|
f9f0f63805
|
Added site-wide admin action (1.1 only) for editing permissions of arbitrary objects.
|
2009-07-07 02:12:08 +02:00 |
|
Jannis Leidel
|
5ce1b10a7d
|
Updated admin integration by adding a generic foreign key widget (thanks Alex) and some minor refinements.
|
2009-07-07 02:10:20 +02:00 |
|
Jannis Leidel
|
a8fd0b25ca
|
small update to example docstring
|
2009-07-07 00:44:14 +02:00 |
|
Jannis Leidel
|
1cfcf334ce
|
Overhaul to the templatetags. New templatetag get_permission to perform a specific permission check.
|
2009-07-07 00:20:36 +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
|
18969fa389
|
Fixed oversight in example flatpage template.
|
2009-07-06 19:03:33 +02:00 |
|
Jannis Leidel
|
8aceec2104
|
Updated example for permission_required_or_403 decorator to follow new syntax.
|
2009-07-06 16:07:24 +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
|
52e8c07ff1
|
Fixed order of possible templates of permission denied views.
|
2009-07-06 14:30:56 +02:00 |
|
Jannis Leidel
|
8f85db2438
|
Remove erroneous check for an existing obj in generic permission check.
|
2009-07-06 13:57:45 +02:00 |
|
Jannis Leidel
|
15f1af8295
|
Undid last commit partially.
|
2009-07-06 11:26:53 +02:00 |
|
Jannis Leidel
|
37a4ae24fb
|
Cache permission choices for each model class.
|
2009-07-06 11:10:08 +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
|
0b369d9310
|
Renamed verbose_name attribute of permission checks to short_description for consistency
|
2009-07-04 11:06:01 +02:00 |
|
Jannis Leidel
|
9dd3affcc1
|
Made PermissionInline a bit more pleasant with ForeignKeyRawIdWidget and automatic choices for permission field
|
2009-07-03 18:04:22 +02:00 |
|
Jannis Leidel
|
77313a9a97
|
Added default template of permission denied view (403.html)
|
2009-07-03 15:47:46 +02:00 |
|
Jannis Leidel
|
f8cb902476
|
Take Django's default permissions into account again
|
2009-07-03 15:45:34 +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
|
0f14d735a3
|
Fixed permission check handling, abstracted some bits and removed special "admin" permission check.
|
2009-07-03 15:38:45 +02:00 |
|
Jannis Leidel
|
62b8c12077
|
Add an alternative Django 1.0.2 section to the buildout. Use django-debug-toolbar's released version instead of latest development version.
|
2009-07-03 15:34:42 +02:00 |
|
Jannis Leidel
|
3c34e7482d
|
Added an example of the decorator to the docstring of the example view. Fixed verbose name of top_secret permission check of example app.
|
2009-06-22 16:09:06 +02:00 |
|
Jannis Leidel
|
9f426e2e92
|
Added decorator to required packages in setup.py
|
2009-06-22 16:07:20 +02:00 |
|
Jannis Leidel
|
3e047dc5fe
|
Updated example project to use the latest additions to django-authority
|
2009-06-22 01:07:26 +02:00 |
|
Jannis Leidel
|
8a38d574d5
|
Added decorator to be used with views, yay
|
2009-06-22 01:06:21 +02:00 |
|
Jannis Leidel
|
8e285686a5
|
Refined permission system to have three types of permission checks: default (add, browse, change and delete), custom (like defaul checks) and complex (method based).
|
2009-06-22 01:05:31 +02:00 |
|
Jannis Leidel
|
5ba65d928d
|
Fixed permission manager for user
|
2009-06-22 01:00:25 +02:00 |
|
Jannis Leidel
|
1356043dcb
|
Small update to README
|
2009-06-12 12:02:39 +02:00 |
|
Jannis Leidel
|
e44842df3c
|
Removed model attribute from permission admin
|
2009-06-12 11:48:20 +02:00 |
|
Jannis Leidel
|
539a8bf637
|
Removed some debug print statements and got rid of the importlib in authority.autodiscover()
|
2009-06-12 01:57:08 +02:00 |
|
Jannis Leidel
|
6caa002694
|
Removed old exceptions and the autodiscover call which should be made in urls.py like admin
|
2009-06-12 01:48:50 +02:00 |
|
Jannis Leidel
|
0ffda098d5
|
Got rid of unneeded importlib.import_module import, err.
|
2009-06-12 01:25:39 +02:00 |
|
Jannis Leidel
|
6163e02b26
|
A short description for the example FlatPagePermission
|
2009-06-12 01:22:43 +02:00 |
|
Jannis Leidel
|
ff0150398c
|
Updated the FlatPage permissions to work with the latest changes. Added a custom permission check 'top_secret'. Added more examples to flatpage template.
|
2009-06-12 01:12:51 +02:00 |
|
Jannis Leidel
|
dfa487e44d
|
Moved a bunch of methods to the model manager, which now resides in its own file. Promoted permission registry to a class to put some utility functions to it, including a function to compile a choice list for a given permission label. Updated __unicode__ of Permission model. Added new default permission check 'can_browse'. Added support for verbose names of permission checks. Updated forms to work with all changes. Moved codename field to base form class.
|
2009-06-12 01:11:06 +02:00 |
|
Jannis Leidel
|
ea8f0168e8
|
Removed ipython and added django-extensions, django-debug-toolbar
|
2009-06-12 01:00:04 +02:00 |
|
Jannis Leidel
|
fd6da1d129
|
Fixed manifest template
|
2009-06-12 00:59:00 +02:00 |
|
Jannis Leidel
|
9e666d9099
|
Renamed permissions template tags
|
2009-06-12 00:54:48 +02:00 |
|
Jannis Leidel
|
5c6fcfe884
|
Renamed permissions template tags
--HG--
rename : src/authority/templatetags/permissions_tags.py => src/authority/templatetags/permissions.py
|
2009-06-12 00:54:34 +02:00 |
|
Jannis Leidel
|
1676c12e30
|
made flatpage template nicer, heh
|
2009-06-08 13:19:14 +02:00 |
|
Jannis Leidel
|
4e91ac30e7
|
Fixed fallback to Django's permission system
|
2009-06-08 13:18:54 +02:00 |
|
Jannis Leidel
|
5d76231cbe
|
Hm, silly
|
2009-06-08 12:25:10 +02:00 |
|
Jannis Leidel
|
fd6f5d5d8c
|
Updates to hgignore
|
2009-06-08 12:06:29 +02:00 |
|
Jannis Leidel
|
93ee4e7239
|
Added setup.py and LICENSE
|
2009-06-08 12:06:14 +02:00 |
|
Jannis Leidel
|
96a80d27a1
|
Added example project
|
2009-06-08 12:03:49 +02:00 |
|