Commit graph

81 commits

Author SHA1 Message Date
Jannis Leidel
458ee3f10e Removed dev tagging 2009-07-11 18:36:40 +02:00
Jannis Leidel
035f0aca7e Removed tag 0.1 2009-07-11 18:36:27 +02:00
Jannis Leidel
4374e4412c Added tag 0.1 for changeset 53174b9aa3ee 2009-07-11 18:34:07 +02:00
Jannis Leidel
2c549956fb Some minor updates to the docs by bartTC, thanks 2009-07-11 18:32:42 +02:00
Jannis Leidel
4023668b70 Added dir 2009-07-11 17:38:32 +02:00
Jannis Leidel
1f89e24995 Automated merge with http://bitbucket.org/barttc/django-authority/
--HG--
files : src/authority/views.py
2009-07-11 17:35:02 +02:00
Jannis Leidel
95795b5adf Updated manifest template and authors file 2009-07-11 17:34:52 +02:00
Jannis Leidel
46b917e6e7 Make sure we simply return a 403 page if given wrong parameters 2009-07-11 17:34:34 +02:00
Martin Mahner
93a547e504 Added first proposal docs. 2009-07-10 21:28:46 +02:00
Martin Mahner
64be785eb0 Automated merge with ssh://hg@bitbucket.org/jezdez/django-authority/
--HG--
emptychangelog : true
2009-07-10 20:23:44 +02:00
Jannis Leidel
512f12e721 Make sure the form validation says something about the super user having perms. 2009-07-10 19:12:54 +02: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
b7ebf0022c Fixing docstring, d'oh 2009-07-10 17:29:39 +02:00
Jannis Leidel
66af3c16fd Make sure we return to correct page after running admin action. 2009-07-10 15:56:10 +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
ab04831a7f Added missing import. 2009-07-10 15:27:46 +02:00
Jannis Leidel
e2a49b17fd Fixes oversight in get_labels. 2009-07-10 15:25:18 +02:00
Jannis Leidel
428cd35dc0 Fixing issue #3 for realz. 2009-07-10 13:36:21 +02:00
Jannis Leidel
97eb2f99f5 Fixes issue #3 - make the admin work again after API changes 2009-07-10 11:44:00 +02:00
Jannis Leidel
494649b1d4 Updated example permission to follow new-ish registry layout 2009-07-10 01:47:29 +02:00
Jannis Leidel
210c0e032b Made the register and unregister methods public 2009-07-10 01:21:08 +02:00
Jannis Leidel
991905311f Updated setup.py and manifest template 2009-07-10 01:09:42 +02:00
Jannis Leidel
56bf2cf20e Added missed file from last commit 2009-07-10 01:09:01 +02:00
Jannis Leidel
13cc721580 Refactored permission class registration. 2009-07-10 01:07:20 +02:00
Martin Mahner
336fb0ea80 Docs: Hide the static directory from "non-all" lists. 2009-07-09 19:26:40 +02:00
Martin Mahner
93cffeee46 Docs: Renamed .rst to .txt. It's simpler to identify these text files for not so versatile users (What is .rst? My editor won't open this.) and it actually does not change anything in sphinx's behaviour. 2009-07-09 19:25:22 +02:00
Martin Mahner
9851fc8d6e Overall cleanup. Removed unused imports. Fixed whitespaces. 2009-07-09 13:51:28 +02:00
Martin Mahner
ae358f29c1 Created a skeleton for the upcoming documentation. 2009-07-09 13:31:14 +02:00
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