[Zope-Checkins] CVS: StandaloneZConfig/ZConfig - datatypes.py:1.25

Fred L. Drake, Jr. fred at zope.com
Tue Mar 16 16:29:11 EST 2004


Update of /cvs-repository/StandaloneZConfig/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv5818/ZConfig

Modified Files:
	datatypes.py 
Log Message:
ZConfig must not mask imports from the top level that happen to have a dotted
name beginning with a name found inside ZConfig; datatypes are not specified
relative to the ZConfig package


=== StandaloneZConfig/ZConfig/datatypes.py 1.24 => 1.25 ===
--- StandaloneZConfig/ZConfig/datatypes.py:1.24	Thu Feb  5 11:40:28 2004
+++ StandaloneZConfig/ZConfig/datatypes.py	Tue Mar 16 16:28:40 2004
@@ -354,7 +354,7 @@
             raise ValueError("unloadable datatype name: " + `name`)
         components = name.split('.')
         start = components[0]
-        g = globals()
+        g = {}
         package = __import__(start, g, g)
         modulenames = [start]
         for component in components[1:]:




More information about the Zope-Checkins mailing list