Commit 1e757432 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use recursiveReindexObject again in reindexObjectSecurity.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64bdfb8d
......@@ -502,11 +502,12 @@ be a problem)."""
"""
# In ERP5, simply reindex all objects.
#LOG('reindexObjectSecurity', 0, 'self = %r, self.getPath() = %r' % (self, self.getPath()))
self.reindexObject()
#self.reindexObject()
# Reindex contents
for c in self.objectValues():
if hasattr(aq_base(c), 'reindexObjectSecurity'):
c.reindexObjectSecurity()
#for c in self.objectValues():
# if hasattr(aq_base(c), 'reindexObjectSecurity'):
# c.reindexObjectSecurity()
self.recursiveReindexObject()
security.declarePublic( 'recursiveReindexObject' )
def recursiveReindexObject(self, *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