Commit 9929df06 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Clear cache after install.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1124 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a34468e9
...@@ -37,6 +37,7 @@ from Products.ERP5Type.Utils import readLocalExtension, writeLocalExtension ...@@ -37,6 +37,7 @@ from Products.ERP5Type.Utils import readLocalExtension, writeLocalExtension
from Products.ERP5Type.Utils import readLocalDocument, writeLocalDocument, importLocalDocument from Products.ERP5Type.Utils import readLocalDocument, writeLocalDocument, importLocalDocument
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
import cStringIO import cStringIO
from Products.ERP5Type.Cache import clearCache
from zLOG import LOG from zLOG import LOG
...@@ -725,6 +726,9 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -725,6 +726,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
self.installCatalog(local_configuration, update=update) self.installCatalog(local_configuration, update=update)
LOG('install Business Template: ',0,'action, modules and catalog updated') LOG('install Business Template: ',0,'action, modules and catalog updated')
# It is better to clear cache because the installation of a template
# adds many new things into the portal.
clearCache()
def installPropertySheets(self, local_configuration, update=0): def installPropertySheets(self, local_configuration, update=0):
""" """
......
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