E&S CVS Commit: PEAK - Fix more peak.web problems:
pje at eby-sarna.com
pje at eby-sarna.com
Thu Dec 4 19:03:00 EST 2003
Module Name: PEAK
Committed By: pje
Date: Fri Dec 5 00:02:41 UTC 2003
Modified Files:
PEAK/src/peak/web: errors.py interfaces.py places.py resources.py
Log Message:
Fix more peak.web problems:
* Errors were trying to create a substitute context for themselves by
walking to the parent context and then back down. This didn't work
properly for an error that occurred at the application root. So, I
added an 'ITraversalContext.substituteContext()' method that provides
the necessary support, and removed the hacky code from WebException.
* Some code in peak.web.resources was still using an older error interface.
The first problem was uncovered by Radek Kanovsky, and I found the second
while trying to figure out what caused the first.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/web/errors.py.diff?r1=1.6&r2=1.7
http://cvs.eby-sarna.com/PEAK/src/peak/web/interfaces.py.diff?r1=1.21&r2=1.22
http://cvs.eby-sarna.com/PEAK/src/peak/web/places.py.diff?r1=1.24&r2=1.25
http://cvs.eby-sarna.com/PEAK/src/peak/web/resources.py.diff?r1=1.15&r2=1.16
To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 PEAK/src/peak/web/errors.py
cvs rdiff -r1.21 -r1.22 PEAK/src/peak/web/interfaces.py
cvs rdiff -r1.24 -r1.25 PEAK/src/peak/web/places.py
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/web/resources.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