Jump to revision: | |
---|---|
Author: | pje |
Date: | Thu Jan 6 01:03:58 2005 UTC (19 years, 3 months ago) |
Log Message:
The old 'peak.security' implementation has been removed, and replaced with a simpler, more flexible implementation based on generic functions (using less than half the code and seven fewer interfaces). Complete docs and API tests for the new implementation can be found in 'rules.txt' in the 'peak.security' package directory. (Note: as a side-effect of this change, the old 'security.IInteraction' interface and 'security.Interaction' class can now be temporarily found as 'web.IInteraction' and 'web.Interaction' respectively. Both will soon be refactored out of existence, however, so please update your code accordingly!) Also, the new implemetation does not require redundant 'security.allow(security.Anybody)' declarations just because you've declared other permissions for a class, so these declarations have been removed from ``peak.web``. They don't do any harm, however, so you can leave them in your own code as long as you change them to use 'binding.metadata()' instead of the deprecated 'security.allow()'.
Changed paths:
Path | Action | Text Changes | Prop Changes | Diff to Previous |
---|---|---|---|---|
PEAK/CHANGES.txt | modified | X | (diff to previous) | |
PEAK/src/peak/peak.ini | modified | X | (diff to previous) | |
PEAK/src/peak/security/api.py | modified | X | (diff to previous) | |
PEAK/src/peak/security/interfaces.py | modified | X | (diff to previous) | |
PEAK/src/peak/security/permission.py | deleted | |||
PEAK/src/peak/security/rules.py | added | X | X | |
PEAK/src/peak/security/rules.txt | added | X | X | |
PEAK/src/peak/security/tests/__init__.py | modified | X | (diff to previous) | |
PEAK/src/peak/security/tests/permission.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/environ.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/interfaces.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/places.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/publish.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/resources.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/templates.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/tests/test_environ.py | modified | X | (diff to previous) |
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |