[Erp5-report] r13152 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 1 16:01:29 CET 2007
Author: aurel
Date: Thu Mar 1 16:01:27 2007
New Revision: 13152
URL: http://svn.erp5.org?rev=13152&view=rev
Log:
fix way to call clearAllCache
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=13152&r1=13151&r2=13152&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Thu Mar 1 16:01:27 2007
@@ -56,7 +56,6 @@
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 @@
# 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 @@
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)
More information about the Erp5-report
mailing list