Commit 2d657745 authored by Sebastien Robin's avatar Sebastien Robin

added a try before rebuilding trees


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 344fea0b
......@@ -27,7 +27,10 @@ def editDocument(self, object=None, **kw):
object._edit(**kw)
portal_trees = getToolByName(object,'portal_trees')
for o in portal_trees.objectValues():
o.rebuild()
try:
o.rebuild()
except AttributeError,KeyError:
pass
......
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