Commit graph

201 commits

Author SHA1 Message Date
Jason Ward
513a1ad99a refs #3: small refactor 2012-09-26 13:41:48 -04:00
Jason Ward
1d8f743065 refs #3: typo 2012-09-26 13:38:14 -04:00
Jason Ward
667ef532c8 refs #3: added some select related and kept the query count down 2012-09-25 13:09:28 -04:00
Jason Ward
1818f5885a refs #3: prime both user and group cache at the same time, reduced the number of queries by 1 2012-09-25 12:34:56 -04:00
Jason Ward
485731f3cc refs #3: name change, we are more like Django now 2012-09-24 17:20:37 -04:00
Jason Ward
8f1d2d6a44 refs #3: moved the cached permissions onto the user object (just like django does it) 2012-09-24 17:17:32 -04:00
Jason Ward
a519da2fdd refs #3: stopped storing the whole perm object in the cache, all we care at this point is if the perm existed in that specific way. 2012-09-24 16:39:33 -04:00
Jason Ward
50b8e42fff Merge remote-tracking branch 'origin/master' into issue_3 2012-09-24 16:26:24 -04:00
Jason Ward
ddd4a9c35a refs #3: split up user and group permissions completely. 2012-09-24 15:45:42 -04:00
Jason Ward
cb7b257972 refs #3: name changes 2012-09-24 15:28:38 -04:00
Jason Ward
77915643d3 refs #3: changed the name of the test case 2012-09-24 15:23:07 -04:00
Wes Winham
4a01fbfaf6 Merge pull request #2 from PolicyStat/issue_2
Add comments/docstrings to caching methods.
2012-09-24 11:52:48 -07:00
Jason Ward
d27314ce27 added docs/build/* to the .gitignore 2012-09-24 13:57:12 -04:00
Jason Ward
0b6848baff Merge branch 'issue_2' into issue_3
Conflicts:
	authority/permissions.py
	authority/tests.py
2012-09-24 13:51:50 -04:00
Jason Ward
abe099f9d9 Merge remote-tracking branch 'origin/master' into issue_2 2012-09-24 13:44:49 -04:00
Jason Ward
c94b9c3930 refs #3: Added a cache for group related permissions. 2012-09-24 13:43:54 -04:00
Jason Ward
03bd5c9445 refs #3: made a distinction for the cache that it was a group free cache 2012-09-24 13:34:35 -04:00
Jason Ward
b7e65bbbdd Merge remote-tracking branch 'origin/master' into issue_3 2012-09-24 13:27:16 -04:00
Jason Ward
16d324ba5f Merge pull request #1 from PolicyStat/issue_1
Add a git ignore file
2012-09-24 10:23:45 -07:00
Jason Ward
ccd3417c99 refs #3: added a unit test showing that groups are broken 2012-09-24 12:36:30 -04:00
Jason Ward
ca3963ea7b refs #2: properly tested invalidate_cache 2012-09-24 12:09:59 -04:00
Jason Ward
c091a91412 refs #2: added docstrings and comments 2012-09-24 12:09:25 -04:00
Jason Ward
9fe2ad5a0d refs #1: added a git ignore file 2012-09-24 11:55:19 -04:00
Jason Ward
3e403abb1c removed base prefix 2012-09-20 15:19:06 -04:00
Jason Ward
e49523dace prepended 'base' to all new cache stuff in the base permission class 2012-09-20 14:52:01 -04:00
Jason Ward
73cdf40ab2 Added a performance test 2012-09-20 12:03:12 -04:00
Jason Ward
5cdf9f01b0 flake8 2012-09-20 11:55:38 -04:00
Jason Ward
ba0d47ac0b Built a pre-cached permission dict to reduce the number of queries. 2012-09-20 11:37:44 -04:00
Jason Ward
d41bb71470 flake8 2012-09-20 11:00:01 -04:00
Jason Ward
a67c7b43bd Fixed Q object query that triggers a deepcopy bug in Python < 2.7 when a backend stores an Ellipsis object on the user 2012-09-20 10:56:37 -04:00
Jason Ward
ec2c2802d1 Changing object references from object.id to object.pk 2012-09-20 10:54:49 -04:00
Jannis Leidel
e774382d38 Merge pull request #1 from rdegges/master
Removing Trailing Whitespace from Docs, Fixing Wording
2011-12-03 11:15:47 -08:00
Randall Degges
b50fb66512 Adding missing ' (to enclose the string). 2011-02-21 09:09:32 -08:00
Randall Degges
3f3f06dda0 Removing trailing whitespace. 2011-02-21 09:04:31 -08:00
Randall Degges
5ce50c0341 Fixing wording 'more simpler' -> 'simpler'. 2011-02-21 09:01:51 -08:00
Randall Degges
5f69581e17 Removing trailing whitespace. 2011-02-21 09:01:43 -08:00
Jannis Leidel
2b86bd5232 Added tag 0.4 for changeset 6d55a80ea6d4 2010-01-15 22:53:05 +01:00
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