E&S CVS Commit: PEAK - More peak.web skin-related enhancements and fixes:

pje at eby-sarna.com pje at eby-sarna.com
Wed Jul 30 20:05:00 EDT 2003


Module Name:	PEAK
Committed By:	pje
Date:		Thu Jul 31 00:04:29 UTC 2003

Modified Files:
	PEAK/src/peak: peak.ini
	PEAK/src/peak/web: interfaces.py publish.py skins.py
	PEAK/src/peak/web/tests: test_templates.py

Log Message:
More peak.web skin-related enhancements and fixes:

Added 'IPolicyInfo' interface for common aspects of 'IWebInteraction'
and 'IInteractionPolicy'.  Added 'ISkin' interface for skins.

Rearranged policy/interaction/skin definitions to this order:
1) CGIPublisher adapts app to 'IInteractionPolicy' to create policy
2) CGIPublisher gets interaction class from policy to create interactions

Enhanced NullSkinService to more thoroughly set up the default skin, and
to reuse the same skin across requests.

Added 'preTraverse()' call to 'afterTraversal()' method, so that terminal
published objects get a chance to check preconditions and raise any
alerts, redirects, etc.

Drafted implementation of skin traversal, getResource() (non-caching), and
getResourceURL().


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.65&r2=1.66
http://cvs.eby-sarna.com/PEAK/src/peak/web/interfaces.py.diff?r1=1.12&r2=1.13
http://cvs.eby-sarna.com/PEAK/src/peak/web/publish.py.diff?r1=1.18&r2=1.19
http://cvs.eby-sarna.com/PEAK/src/peak/web/skins.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_templates.py.diff?r1=1.4&r2=1.5

To generate a diff of this commit:
cvs rdiff -r1.65 -r1.66 PEAK/src/peak/peak.ini
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/web/interfaces.py
cvs rdiff -r1.18 -r1.19 PEAK/src/peak/web/publish.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/web/skins.py
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/web/tests/test_templates.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