[Erp5-report] r21075 - /erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 21 23:01:32 CEST 2008


Author: yo
Date: Wed May 21 23:01:31 2008
New Revision: 21075

URL: http://svn.erp5.org?rev=21075&view=rev
Log:
Clear all caches after installing everything.

Modified:
    erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py

Modified: erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py?rev=21075&r1=21074&r2=21075&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py (original)
+++ erp5/trunk/products/ERP5Wizard/Tool/WizardTool.py Wed May 21 23:01:31 2008
@@ -386,9 +386,11 @@
     if use_super_manager:
       # set current security manager to owner of site
       _setSuperSecurityManager(self.getPortalObject())
+
+    portal = self.getPortalObject()
     bt5_files = server_response.get("filedata", [])
     bt5_filenames = server_response["server_buffer"].get("filenames", [])
-    portal_templates = getToolByName(self.getPortalObject(), 'portal_templates')
+    portal_templates = getToolByName(portal, 'portal_templates')
     counter = 0
     LOG("Wizard", INFO, 
               "Starting installation for %s" %' '.join(bt5_filenames))
@@ -431,6 +433,8 @@
                                            1)
     self.setExpressConfigurationPreference('preferred_express_after_setup_script_id', 
                                            bt5_after_setup_script_id)
+    # Make sure that the site status is reloaded.
+    portal.portal_caches.clearAllCache()
     LOG("Wizard", INFO, 
               "Completed installation for %s" %' '.join(bt5_filenames))  
     if use_super_manager:




More information about the Erp5-report mailing list