E&S CVS Commit: PEAK - The old 'peak.security' implementation has been removed, and replaced with

pje at eby-sarna.com pje at eby-sarna.com
Wed Jan 5 20:04:01 EST 2005


Module Name:	PEAK
Committed By:	pje
Date:		Thu Jan  6 01:03:58 UTC 2005

Modified Files:
	PEAK: CHANGES.txt
	PEAK/src/peak: peak.ini
	PEAK/src/peak/security: api.py interfaces.py
	PEAK/src/peak/security/tests: __init__.py permission.py
	PEAK/src/peak/web: environ.py interfaces.py places.py publish.py
	    resources.py templates.py
	PEAK/src/peak/web/tests: test_environ.py
Added Files:
	PEAK/src/peak/security: rules.py rules.txt
Removed Files:
	PEAK/src/peak/security: permission.py

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()'.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.166&r2=1.167
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.157&r2=1.158
http://cvs.eby-sarna.com/PEAK/src/peak/security/api.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/security/interfaces.py.diff?r1=1.11&r2=1.12
http://cvs.eby-sarna.com/PEAK/src/peak/security/rules.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/PEAK/src/peak/security/rules.txt?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/PEAK/src/peak/security/tests/__init__.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/security/tests/permission.py.diff?r1=1.7&r2=1.8
http://cvs.eby-sarna.com/PEAK/src/peak/web/environ.py.diff?r1=1.25&r2=1.26
http://cvs.eby-sarna.com/PEAK/src/peak/web/interfaces.py.diff?r1=1.52&r2=1.53
http://cvs.eby-sarna.com/PEAK/src/peak/web/places.py.diff?r1=1.48&r2=1.49
http://cvs.eby-sarna.com/PEAK/src/peak/web/publish.py.diff?r1=1.54&r2=1.55
http://cvs.eby-sarna.com/PEAK/src/peak/web/resources.py.diff?r1=1.42&r2=1.43
http://cvs.eby-sarna.com/PEAK/src/peak/web/templates.py.diff?r1=1.36&r2=1.37
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_environ.py.diff?r1=1.21&r2=1.22

To generate a diff of this commit:
cvs rdiff -r1.166 -r1.167 PEAK/CHANGES.txt
cvs rdiff -r1.157 -r1.158 PEAK/src/peak/peak.ini
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/security/api.py
cvs rdiff -r1.11 -r1.12 PEAK/src/peak/security/interfaces.py
cvs rdiff -r1.13 -r0 PEAK/src/peak/security/permission.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/security/rules.py \
    PEAK/src/peak/security/rules.txt
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/security/tests/__init__.py
cvs rdiff -r1.7 -r1.8 PEAK/src/peak/security/tests/permission.py
cvs rdiff -r1.25 -r1.26 PEAK/src/peak/web/environ.py
cvs rdiff -r1.52 -r1.53 PEAK/src/peak/web/interfaces.py
cvs rdiff -r1.48 -r1.49 PEAK/src/peak/web/places.py
cvs rdiff -r1.54 -r1.55 PEAK/src/peak/web/publish.py
cvs rdiff -r1.42 -r1.43 PEAK/src/peak/web/resources.py
cvs rdiff -r1.36 -r1.37 PEAK/src/peak/web/templates.py
cvs rdiff -r1.21 -r1.22 PEAK/src/peak/web/tests/test_environ.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list