Commit 486ded49 authored by Xiaowu Zhang's avatar Xiaowu Zhang

Revert "erp5_core: reindex recursively only if indexable children type exists in..."

This reverts commit 18e9c69a
parent 6a684d80
......@@ -4,8 +4,7 @@
# with lots of content could mean hours of non-usable overloaded system.
type_tool = context.getPortalObject().portal_types
for portal_type_name in context.getTypeInfo().getTypeAllowedContentTypeList():
type_ = getattr(type_tool, portal_type_name)
if type_.getTypeAcquireLocalRole() and type_.isIndexable():
if getattr(type_tool, portal_type_name).getTypeAcquireLocalRole():
reindex = context.recursiveReindexObject
break
else:
......
......@@ -360,14 +360,6 @@ class ERP5TypeInformation(XMLObject,
permission = self.permission or 'Add portal content'
return getSecurityManager().checkPermission(permission, container)
security.declarePublic('isIndexable')
def isIndexable(self):
"""Test if an instance is indexable by default
"""
portal = self.getPortalObject()
klass = portal.portal_types.getPortalTypeClass(self.getId())
return klass.isIndexable()
security.declarePublic('constructTempInstance')
def constructTempInstance(self, container, id, *args, **kw ):
"""
......
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