E&S CVS Commit: PEAK - The 'naming.IStreamFactory' interface now has an 'address' attribute, which

pje at eby-sarna.com pje at eby-sarna.com
Fri Oct 8 12:30:00 EDT 2004

Module Name:	PEAK
Committed By:	pje
Date:		Fri Oct  8 16:29:10 UTC 2004

Modified Files:
	PEAK/src/peak/naming: interfaces.py
	PEAK/src/peak/naming/factories: openable.py

Log Message:
The 'naming.IStreamFactory' interface now has an 'address' attribute, which
is the string form of the canonical URL of the target stream.  This was
added to make it easier to e.g. report errors in a stream that's being
parsed, since the parser only needs the factory in order to report the
location of an error.  (Note: if you implement 'naming.IStreamFactory', be
sure to add this attribute to your implementations.)

Also, added an 'ImportLoaderFactory' that allows PEP 302 loaders (such as
the "import from zipfile" loader) to be used as stream factories when
referring to "package files".

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.45 -r1.46 PEAK/src/peak/naming/interfaces.py
cvs rdiff -r1.20 -r1.21 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