[Zope3-checkins] CVS: Zope3/src/zope/app/services - registration.py:1.14

Fred L. Drake, Jr. fred at zope.com
Thu Aug 21 19:33:59 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv5643

Modified Files:
	registration.py 
Log Message:
revert previous change; it's still no right, and there's a test case
failing that doesn't without this change  ;-(


=== Zope3/src/zope/app/services/registration.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/services/registration.py:1.13	Thu Aug 21 18:06:24 2003
+++ Zope3/src/zope/app/services/registration.py	Thu Aug 21 18:33:58 2003
@@ -730,7 +730,11 @@
             return c.findModule(name)
 
         # Use sys.modules in lieu of module service:
-        return sys.modules.get(name)
+        module = sys.modules.get(name)
+        if module is not None:
+            return module
+
+        raise ImportError(name)
 
     findModule = zapi.ContextMethod(findModule)
 




More information about the Zope3-Checkins mailing list