[Zodb-checkins] CVS: Zope/lib/python/ZConfig - schema.py:1.28
    Fred Drake 
    cvs-admin at zope.org
       
    Wed Oct 22 17:32:46 EDT 2003
    
    
  
Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv25549
Modified Files:
	schema.py 
Log Message:
Repeated imports failed; fixed and added tests.
=== Zope/lib/python/ZConfig/schema.py 1.27 => 1.28 ===
--- Zope/lib/python/ZConfig/schema.py:1.27	Fri Oct  3 17:43:59 2003
+++ Zope/lib/python/ZConfig/schema.py	Wed Oct 22 17:32:15 2003
@@ -303,8 +303,8 @@
         else:
             if os.path.dirname(file):
                 self.error("file may not include a directory part")
-            if not self._schema.hasComponent(pkg):
-                src = self._loader.schemaComponentSource(pkg, file)
+            src = self._loader.schemaComponentSource(pkg, file)
+            if not self._schema.hasComponent(src):
                 self._schema.addComponent(src)
                 self.loadComponent(src)
 
    
    
More information about the Zodb-checkins
mailing list