[Erp5-report] r19375 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 19 10:17:03 CET 2008
Author: vincent
Date: Tue Feb 19 10:17:02 2008
New Revision: 19375
URL: http://svn.erp5.org?rev=19375&view=rev
Log:
Reuse existing "site" variable instea dof calling getPortalObject again.
Update comment.
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=19375&r1=19374&r2=19375&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Tue Feb 19 10:17:02 2008
@@ -4593,9 +4593,8 @@
if update_translation:
site.ERP5Site_updateTranslationTable()
- # It is better to clear cache because the installation of a template
- # adds many new things into the portal.
- self.getPortalObject().portal_caches.clearAllCache()
+ # Clear cache to avoid reusing cached values with replaced objects.
+ site.portal_caches.clearAllCache()
security.declareProtected(Permissions.ManagePortal, 'install')
def install(self, **kw):
More information about the Erp5-report
mailing list