diff --git a/product/ERP5/Document/Person.py b/product/ERP5/Document/Person.py index 19a66d11a13f040916d84b06eec6cf9d1ed06090..047f9d9b93dc847e997ea5ced1dcf5c13b004068 100644 --- a/product/ERP5/Document/Person.py +++ b/product/ERP5/Document/Person.py @@ -35,7 +35,6 @@ from Products.CMFCore.utils import getToolByName 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 @@ class Person(XMLObject): 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) :