Commit ff5a9d1c authored by Nicolas Dumazet's avatar Nicolas Dumazet

Fix initialization of site: do not clear activities on the second call.

addERP5Tool might be clever now, and avoids recreating portal_activities
if it already exists, but the line just after should *not* be run if
the tool already exists, or else we simply clear all activities generating
during BT5 install.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43012 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bed82258
......@@ -1621,7 +1621,7 @@ class ERP5Generator(PortalGenerator):
make sure that we do not put un the queue the full reindexation
"""
# Add Activity Tool
if create_activities:
if create_activities and not p.hasObject('portal_activities'):
addERP5Tool(p, 'portal_activities', 'Activity Tool')
# Initialize Activities
p.portal_activities.manageClearActivities(keep=0)
......
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