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):

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