Commit graph

20 commits

Author SHA1 Message Date
Jason Ward
079b1a1595 refs #4: made a base test case for smart caching 2012-09-24 14:20:00 -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
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
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
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
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
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