diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index f43c0eb542ad064e7322bfeb2edd7a62a1aabf00..63c0c2dd0826dc8886b9dddb0fac4a5b44f240bc 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -56,7 +56,6 @@ from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.RoleInformation import RoleInformation import fnmatch import re, os, sys, string, tarfile -from Products.ERP5Type.Cache import clearAllCache from DateTime import DateTime from OFS.Traversable import NotFound from OFS import XMLExportImport @@ -4161,7 +4160,7 @@ Business Template is a set of definitions, such as skins, portal types and categ # It is better to clear cache because the installation of a template # adds many new things into the portal. - clearAllCache() + self.getPortalObject().portal_caches.clearAllCache() security.declareProtected(Permissions.ManagePortal, 'install') def install(self, **kw): @@ -4217,7 +4216,7 @@ Business Template is a set of definitions, such as skins, portal types and categ item.uninstall(local_configuration) # It is better to clear cache because the uninstallation of a # template deletes many things from the portal. - clearAllCache() + self.getPortalObject().portal_caches.clearAllCache() uninstall = WorkflowMethod(uninstall)