Commit 46b57e43 authored by Brian Lloyd's avatar Brian Lloyd

fix theoretical bug 213.

parent 6421c26b
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
############################################################################## ##############################################################################
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.182 2002/03/27 22:18:54 caseman Exp $''' $Id: Application.py,v 1.183 2002/04/12 16:06:01 Brian Exp $'''
__version__='$Revision: 1.182 $'[11:-2] __version__='$Revision: 1.183 $'[11:-2]
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_ import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
import time, traceback, os, Products import time, traceback, os, Products
...@@ -243,9 +243,6 @@ class Expired(Globals.Persistent): ...@@ -243,9 +243,6 @@ class Expired(Globals.Persistent):
def initialize(app): def initialize(app):
# Initialize the application # Initialize the application
# Initialize the cache:
app.Control_Panel.initialize_cache()
# The following items marked b/c are backward compatibility hacks # The following items marked b/c are backward compatibility hacks
# which make sure that expected system objects are added to the # which make sure that expected system objects are added to the
# bobobase. This is required because the bobobase in use may pre- # bobobase. This is required because the bobobase in use may pre-
...@@ -260,6 +257,9 @@ def initialize(app): ...@@ -260,6 +257,9 @@ def initialize(app):
get_transaction().note('Added Control_Panel') get_transaction().note('Added Control_Panel')
get_transaction().commit() get_transaction().commit()
# Initialize the cache:
app.Control_Panel.initialize_cache()
# b/c: Ensure that a ProductFolder exists. # b/c: Ensure that a ProductFolder exists.
if not hasattr(app.Control_Panel.aq_base, 'Products'): if not hasattr(app.Control_Panel.aq_base, 'Products'):
app.Control_Panel.Products=App.Product.ProductFolder() app.Control_Panel.Products=App.Product.ProductFolder()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment