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).""" ...@@ -145,7 +145,6 @@ be a problem)."""
# Class inheritance fixes # Class inheritance fixes
edit = Base.edit edit = Base.edit
_edit = Base._edit _edit = Base._edit
allowedContentTypes = Base.allowedContentTypes
# Implementation # Implementation
security.declarePrivate('_setObject') security.declarePrivate('_setObject')
...@@ -437,7 +436,8 @@ be a problem).""" ...@@ -437,7 +436,8 @@ be a problem)."""
# Reindex self # Reindex self
self.immediateReindexObject() self.immediateReindexObject()
# Reindex contents # Reindex contents
for c in self.contentValues(): for c in self.objectValues():
if hasattr(aq_base(c), 'recursiveImmediateReindexObject'):
c.recursiveImmediateReindexObject() c.recursiveImmediateReindexObject()
# Special Relation keyword : 'content' and 'container' # Special Relation keyword : 'content' and 'container'
......
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