[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.183

Brian Lloyd brian@zope.com
Fri, 12 Apr 2002 12:06:02 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv17044

Modified Files:
	Application.py 
Log Message:
fix theoretical bug 213.


=== Zope/lib/python/OFS/Application.py 1.182 => 1.183 ===
     # Initialize the application
 
-    # Initialize the cache:
-    app.Control_Panel.initialize_cache()
-
     # The following items marked b/c are backward compatibility hacks
     # which make sure that expected system objects are added to the
     # bobobase. This is required because the bobobase in use may pre-
@@ -259,6 +256,9 @@
         app._setObject('Control_Panel', cpl)
         get_transaction().note('Added Control_Panel')
         get_transaction().commit()
+
+    # Initialize the cache:
+    app.Control_Panel.initialize_cache()
 
     # b/c: Ensure that a ProductFolder exists.
     if not hasattr(app.Control_Panel.aq_base, 'Products'):