Commit c1967322 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fixed recursive (use of objectValues). Removed useless allowsContentTypes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eac507cf
......@@ -145,7 +145,6 @@ be a problem)."""
# Class inheritance fixes
edit = Base.edit
_edit = Base._edit
allowedContentTypes = Base.allowedContentTypes
# Implementation
security.declarePrivate('_setObject')
......@@ -437,8 +436,9 @@ be a problem)."""
# Reindex self
self.immediateReindexObject()
# Reindex contents
for c in self.contentValues():
c.recursiveImmediateReindexObject()
for c in self.objectValues():
if hasattr(aq_base(c), 'recursiveImmediateReindexObject'):
c.recursiveImmediateReindexObject()
# Special Relation keyword : 'content' and 'container'
security.declareProtected( Permissions.AccessContentsInformation, '_getCategoryMembershipList' )
......
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