E&S CVS Commit: PEAK - Fix double-reload caused by "double-layered laziness". Apparently Python

pje at eby-sarna.com pje at eby-sarna.com
Sat Jan 31 13:21:00 EST 2004


Module Name:	PEAK
Committed By:	pje
Date:		Sat Jan 31 18:20:48 UTC 2004

Modified Files:
	PEAK/src/peak/util: imports.py

Log Message:
Fix double-reload caused by "double-layered laziness".  Apparently Python
can sometimes import a module into one of our "lazy module" objects without
our noticing that it has done so.  Fix this by checking to see if module
has any contents before reloading it.  This fixes the problems using Zope
with PEAK that were reported by Wayne Larsen, and replaces the quick hack
I gave on the mailing list.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/util/imports.py.diff?r1=1.15&r2=1.16

To generate a diff of this commit:
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/util/imports.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