From c17b459a09ed1d490fed3d41c1247efa7b4b65e6 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Mon, 12 May 2008 06:21:33 +0000
Subject: [PATCH] Override CMF's setDescription default accessor.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20915 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Base.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index ce31a725bb..c83e1e2fea 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -790,6 +790,16 @@ class Base( CopyContainer,
     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):
     """
-- 
2.30.9