Commit f9c6eaa5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Specify keep depending on the parameter update.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4883 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b0dd6c5
...@@ -684,7 +684,11 @@ class ERP5Generator(PortalGenerator): ...@@ -684,7 +684,11 @@ class ERP5Generator(PortalGenerator):
# Initialize Activities # Initialize Activities
portal_activities = getToolByName(p, 'portal_activities', None) portal_activities = getToolByName(p, 'portal_activities', None)
if portal_activities is not None: if portal_activities is not None:
portal_activities.manageClearActivities() if kw.get('update', 0):
keep = 1
else:
keep = 0
portal_activities.manageClearActivities(keep=keep)
def setupTemplateTool(self, p, **kw): def setupTemplateTool(self, p, **kw):
"""Setup the Template Tool. Security must be set strictly. """Setup the Template Tool. Security must be set strictly.
......
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