[Erp5-report] r6469 - /erp5/trunk/products/ERP5/Document/Person.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 5 14:56:48 CEST 2006
Author: aurel
Date: Wed Apr 5 14:56:46 2006
New Revision: 6469
URL: http://svn.erp5.org?rev=6469&view=rev
Log:
invalid the cache when setting reference on a person otherwise
ERP5Security is not up to date
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=6469&r1=6468&r2=6469&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Person.py (original)
+++ erp5/trunk/products/ERP5/Document/Person.py Wed Apr 5 14:56:46 2006
@@ -35,6 +35,7 @@
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
@@ -174,6 +175,8 @@
break
self._setReference(value)
self.reindexObject()
+ # invalid the cache for ERP5Security
+ clearCache()
security.declareProtected(Permissions.SetOwnPassword, 'setPassword')
def setPassword(self, value) :
More information about the Erp5-report
mailing list