Commit c17b459a authored by Vincent Pelletier's avatar Vincent Pelletier

Override CMF's setDescription default accessor.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20915 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 98f07c99
......@@ -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):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment