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

Brian Lloyd brian@zope.com
Fri, 12 Apr 2002 12:04:25 -0400


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

Modified Files:
      Tag: Zope-2_5-branch
	Application.py 
Log Message:
Fix theoretical bug 213.


=== Zope/lib/python/OFS/Application.py 1.179 => 1.179.4.1 ===
     # 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-
@@ -257,6 +254,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'):