Commit graph

35 commits

Author SHA1 Message Date
Jason Ward
6d6c91dfb6 refs #8: refactor 2012-09-26 17:23:30 -04:00
Jason Ward
342f3d5311 refs #8: name changes and used kwargs in one of the tests 2012-09-26 17:17:27 -04:00
Jason Ward
6326631756 refs #8: language cleanup, code cleanup 2012-09-26 16:27:33 -04:00
Jason Ward
8d62a86e96 refs #8: did a smarter job of building the cache without redoing work 2012-09-26 16:10:45 -04:00
Jason Ward
7c899a245d refs #7: doing the correct number of queries now 2012-09-26 16:01:01 -04:00
Jason Ward
b81ef7b5d0 Merge remote-tracking branch 'origin/master' into issue_6
Conflicts:
	authority/permissions.py
2012-09-26 14:02:01 -04:00
Jason Ward
e8c7c46ab4 Merge remote-tracking branch 'origin/master' into issue_4
Conflicts:
	authority/permissions.py
2012-09-26 13:52:45 -04:00
Jason Ward
8b62ad97d2 refs #3: name changes to be more django 2012-09-26 13:47:16 -04:00
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
263144831f refs #4: removed old comment 2012-09-26 11:09:15 -04:00
Jason Ward
de45b9535e refs #6: no longer relying on self.user being set 2012-09-25 16:43:05 -04:00
Jason Ward
289e9f0bdf refs #4: default to using the smart cache 2012-09-25 13:58:37 -04:00
Jason Ward
57d38c6727 Merge branch 'issue_3' into issue_4
Conflicts:
	authority/permissions.py
2012-09-25 13:34:59 -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
877833bdf2 Merge branch 'issue_3' into issue_4
Conflicts:
	authority/permissions.py
	authority/tests.py
2012-09-24 16:44: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
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
7744fac9f3 refs #4: The smart cache is now only being done if the correct settings is set. 2012-09-24 14:28:57 -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
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
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
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
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
Renamed from src/authority/permissions.py (Browse further)