[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.188.4.1
Chris McDonough
chrism@zope.com
Fri, 16 May 2003 15:15:18 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv31437
Modified Files:
Tag: Zope-2_6-branch
Application.py
Log Message:
If we are running in development mode, raise an exception at
import time. If an exception is not raised here, the import will
"half-work" and you will be left with one or more half-imported
modules in sys.modules, which can cause lots of wasted debugging time.
=== Zope/lib/python/OFS/Application.py 1.188 => 1.188.4.1 ===
--- Zope/lib/python/OFS/Application.py:1.188 Tue Aug 20 15:37:52 2002
+++ Zope/lib/python/OFS/Application.py Fri May 16 15:15:17 2003
@@ -582,7 +582,8 @@
continue
done[product_name]=1
install_product(app, product_dir, product_name, meta_types,
- folder_permissions)
+ folder_permissions,
+ raise_exc=Globals.DevelopmentMode)
Products.meta_types=Products.meta_types+tuple(meta_types)
Globals.default__class_init__(Folder.Folder)