[Erp5-report] r20915 - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 12 08:21:33 CEST 2008
Author: vincent
Date: Mon May 12 08:21:33 2008
New Revision: 20915
URL: http://svn.erp5.org?rev=20915&view=rev
Log:
Override CMF's setDescription default accessor.
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=20915&r1=20914&r2=20915&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Mon May 12 08:21:33 2008
@@ -790,6 +790,16 @@
self._setTitle(value)
self.reindexObject()
+ security.declareProtected( Permissions.ModifyPortalContent, 'setDescription' )
+ def setDescription(self, value):
+ """
+ Set the description and reindex.
+ Overrides CMFCore/PortalFolder.py implementation, which does not reindex
+ and is guarded by inappropriate security check.
+ """
+ self._setDescription(value)
+ self.reindexObject()
+
security.declareProtected( Permissions.AccessContentsInformation, 'test_dyn' )
def test_dyn(self):
"""
More information about the Erp5-report
mailing list