[Erp5-report] r16018 - /erp5/trunk/products/ERP5/Document/Person.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 3 14:41:23 CEST 2007
Author: ivan
Date: Mon Sep 3 14:41:22 2007
New Revision: 16018
URL: http://svn.erp5.org?rev=16018&view=rev
Log:
Clear cache using portal_caches tool not global function so no warning is raised.
Modified:
erp5/trunk/products/ERP5/Document/Person.py
Modified: erp5/trunk/products/ERP5/Document/Person.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Person.py?rev=16018&r1=16017&r2=16018&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Person.py (original)
+++ erp5/trunk/products/ERP5/Document/Person.py Mon Sep 3 14:41:22 2007
@@ -35,7 +35,6 @@
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Utils import assertAttributePortalType
from Products.ERP5Type.XMLObject import XMLObject
-from Products.ERP5Type.Cache import clearCache
try:
from Products import PluggableAuthService
@@ -180,7 +179,8 @@
self._setReference(value)
self.reindexObject()
# invalid the cache for ERP5Security
- clearCache(cache_factory_list=('erp5_content_short', ))
+ portal_caches = getToolByName(self.getPortalObject(), 'portal_caches')
+ portal_caches.clearCache(cache_factory_list=('erp5_content_short', ))
security.declareProtected(Permissions.SetOwnPassword, 'setPassword')
def setPassword(self, value) :
More information about the Erp5-report
mailing list