Commit graph

164 commits

Author SHA1 Message Date
Jannis Leidel
4f90c8efdb Updated README a bit. 2010-01-15 22:52:53 +01:00
Jannis Leidel
372631dc3d Prepare for 0.4 release. 2010-01-15 22:41:42 +01:00
Jannis Leidel
56507c4d52 Added fixture file to package data. 2010-01-15 22:41:11 +01:00
Jannis Leidel
32883905a4 Make use of new helper method introduced with the permission assigning features. 2010-01-15 22:35:01 +01:00
Jannis Leidel
567de09ca5 Further nitpicking. 2010-01-15 22:34:24 +01:00
Jannis Leidel
d4891f6b34 Minor nitpicking. 2010-01-15 22:30:09 +01:00
Jannis Leidel
407d9f26c5 Updated buildout config a little to make sure we call the Django versions by their names. 2010-01-15 22:29:44 +01:00
Diego Búrigo Zacarão
eb9218fe84 Fixed test_all() method of test.py
- It's necessary to pass the object to be checked against the
   permission types.
2010-01-15 18:30:16 -02:00
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
Jannis Leidel
bcb6308f3b Added James Pic to list of authors 2010-01-07 17:58:51 +01:00
Jannis Leidel
63ff98e044 Automated merge with http://bitbucket.org/jpic/django-authority/ 2010-01-07 17:49:22 +01:00
jpic
9e772dd52a Implemented assign(), but a test doesn't pass.
test_all() should assert that using assign() with a
content_object and *without* specifying the "checks"
argument gives all permissions to the user.

This does *not* work at the moment.
2009-11-03 21:43:20 +00:00
jpic
1982cb8b7b Add basic behaviour tests for BasePermission.assign() 2009-11-02 11:34:12 +00:00
jpic
919e3e3b18 Add basic behaviour test 2009-11-02 11:33:04 +00:00
jpic
728e87cc30 Add manage.py in example project, useful to run tests ootb with ./manage.py test authority 2009-11-02 11:32:21 +00:00
Jannis Leidel
51ac4a9515 Added news for last commits 2009-10-17 13:19:19 +02:00
Jannis Leidel
fa4a3fbc11 Moved setting the user field widget to correct location in UserPermissionForm 2009-10-12 15:45:06 +02:00
Jannis Leidel
950061cb75 Show how to override a form in the add_permission view in the example project 2009-10-12 14:56:10 +02:00
Jannis Leidel
7d831233df Renamed upload_sphinx section to upload_docs because the command was added to distribute, yay 2009-10-12 14:55:39 +02:00
Jannis Leidel
f31565c006 Added example db to hgignore 2009-10-12 14:53:19 +02:00
Jannis Leidel
642639e8fa Added ability to override form in add_permission view 2009-10-12 14:52:14 +02:00
Jannis Leidel
552ed3935b Added TODO to .hgignore *snicker* 2009-10-12 14:49:17 +02:00
Jannis Leidel
da3906f813 Updated buildout config 2009-10-12 14:48:30 +02:00
Jannis Leidel
cd89499c43 Fix isse #6 - Fix PermissionDescriptor.__get__ signature 2009-08-24 15:25:18 +02:00
Jannis Leidel
6ef0520a71 Bumped Django version in buildout recipe up to 1.1 2009-08-24 15:24:41 +02:00
Jannis Leidel
d3510ae0c8 Updated readme a bit 2009-07-28 18:00:14 +02:00
Jannis Leidel
3c768107d7 Added tag 0.3 for changeset 9f43899a6fb4 2009-07-28 17:58:23 +02:00
Jannis Leidel
3ffc90f10d Bumped version to 0.4 2009-07-28 17:47:12 +02:00
Jannis Leidel
efb31827de Bumped version up 2009-07-28 17:41:30 +02:00
Jannis Leidel
d84aebed8a Updated manifest template and readme in preparation for release 2009-07-28 17:34:50 +02:00
Jannis Leidel
bd0979c65d Updated docstrings in template tags a bit 2009-07-24 00:03:22 +02:00
Diego Búrigo Zacarão
ffdfb2f328 Added get_permission_request templatetag 2009-07-23 18:35:09 -03:00
Jannis Leidel
e7e1c35ea7 Removed a bit of redundancy of the permission check API 2009-07-23 22:58:24 +02:00
Jannis Leidel
44e9397f23 Added SQL files to migrate permission model from 0.2 to 0.3 2009-07-23 22:42:12 +02:00
Jannis Leidel
5111912709 Use a hidden input if we want to add or request a specific permission 2009-07-23 14:59:47 +02:00
Jannis Leidel
abf72ba3ab Added Diego for his tremendous help in creating this app 2009-07-23 07:42:48 +02:00
Jannis Leidel
a4aca3a3aa Merge commit
--HG--
files : src/authority/forms.py
files : src/authority/views.py
2009-07-23 07:37:10 +02:00
Jannis Leidel
c3208b2b34 Added date_requested and date_approved fields to Permission model, to accompany the permission request changes. This requires a schema change.
Fixed legacy permission name "approve_permission_requests".
Fixed forms to not bypass validation for permission requests.
Combined the templates for permission requests forms and permission forms in one file.
Added ability to withdraw a permission request, along the lines of the permission denial.
Updated URLs to be more awesome.
Refactored template tags to be classbased, easier to use.
Changed signature of permission_form templatetag and added ability to pass a template name with which the form should be rendered.
Combined permission_form and permission_request_form in one template tag class.
Added utility to determine best URL to redirect to after successful permission (request) creation.
Made sure the new GET access to the permission form views is secure. Please test!
Added new "approve_permissions" admin action to easily approve permissions in the admin.
Updated default templates to use the new features.
Now dance.
2009-07-23 07:33:34 +02:00
Jannis Leidel
1233b9c10d Fixed typo in docs. 2009-07-23 04:46:37 +02:00
Diego Búrigo Zacarão
a8a84025f7 Not necessary anymore 2009-07-22 13:21:33 -03:00
Diego Búrigo Zacarão
a240998eed bugfix: Initial user value in the view for permission requests 2009-07-22 13:13:15 -03:00
Diego Búrigo Zacarão
a92e3da0fd Added Permission Request feature
- Permissions are considered requests until the 'approved'
   field be set to True
2009-07-22 12:05:07 -03:00
Jannis Leidel
9680b4a805 Automated merge with http://bitbucket.org/barttc/django-authority/
--HG--
emptychangelog : true
2009-07-17 14:17:59 +02:00
Jannis Leidel
0a73b40bef Re-added dev tagging and bumping version up to 0.3 2009-07-17 14:16:24 +02:00
Jannis Leidel
6785c63044 Added tag 0.2 for changeset b6291a00d996 2009-07-17 14:13:49 +02:00
Jannis Leidel
cea086fc4e Added docs to source distribution and removed dev version tag for upcoming release 2009-07-17 14:13:38 +02:00
Martin Mahner
af9a591024 Automated merge with ssh://hg@bitbucket.org/jezdez/django-authority/
--HG--
emptychangelog : true
2009-07-17 14:03:44 +02:00
Jannis Leidel
22a3fc9cb9 Added check for the permission to change permissions before running the admin action. Updated docs. 2009-07-17 13:52:44 +02:00
Jannis Leidel
6a2b56a8d0 Move the admin actions to the admin.py to make it easier to handle the registering it with the default admin site. Fixed a bug where the short description of the admin action wasn't lazy. Updated docs. 2009-07-17 13:27:02 +02:00
Martin Mahner
a887a2f00e Docs: Updated nature theme, removed the justified text style: 2009-07-17 11:36:11 +02:00