E&S CVS Commit: PEAK - Added test for loading files using PEP 302 loaders, and fixed the
pje at eby-sarna.com
pje at eby-sarna.com
Fri Oct 8 13:24:00 EDT 2004
Module Name: PEAK
Committed By: pje
Date: Fri Oct 8 17:23:59 UTC 2004
Modified Files:
PEAK/src/peak/config/tests: __init__.py
PEAK/src/peak/naming/factories: openable.py
Log Message:
Added test for loading files using PEP 302 loaders, and fixed the
inevitable bugs. ('pkgfile:' URLs didn't work with import loaders, and
import loaders were broken too.) Also note that the PkgFileURL class no
longer offers a 'getFilename()' method, because it may not refer to a file!
(If you want to try to get the filename, you can take the factory's
canonical 'address' attribute and see if it's a 'file:' URL, and then get
to 'FileURL.getFilename()' from there.)
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/config/tests/__init__.py.diff?r1=1.35&r2=1.36
http://cvs.eby-sarna.com/PEAK/src/peak/naming/factories/openable.py.diff?r1=1.21&r2=1.22
To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 PEAK/src/peak/config/tests/__init__.py
cvs rdiff -r1.21 -r1.22 PEAK/src/peak/naming/factories/openable.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