Commit b8e37feb authored by Aurel's avatar Aurel

instead of calling setter, pass all value to constuctor


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23195 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 530f77e1
...@@ -506,9 +506,9 @@ Alarm URL: %s ...@@ -506,9 +506,9 @@ Alarm URL: %s
of processes of processes
""" """
portal_activities = getToolByName(self,'portal_activities') portal_activities = getToolByName(self,'portal_activities')
active_process = portal_activities.newActiveProcess(**kw) active_process = portal_activities.newActiveProcess(start_date=DateTime(),
active_process.setStartDate(DateTime()) causality_value=self,
active_process.setCausalityValue(self) **kw)
return active_process return active_process
security.declareProtected(Permissions.View, 'setNextAlarmDate') security.declareProtected(Permissions.View, 'setNextAlarmDate')
......
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