Commit 530f77e1 authored by Aurel's avatar Aurel

allow to propagate parameters when creating an active process on an alarm


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbca63c1
...@@ -499,14 +499,14 @@ Alarm URL: %s ...@@ -499,14 +499,14 @@ Alarm URL: %s
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'newActiveProcess') 'newActiveProcess')
def newActiveProcess(self): def newActiveProcess(self, **kw):
""" """
We will create a new active process in order to store We will create a new active process in order to store
new results, then this process will be added to the list new results, then this process will be added to the list
of processes of processes
""" """
portal_activities = getToolByName(self,'portal_activities') portal_activities = getToolByName(self,'portal_activities')
active_process = portal_activities.newActiveProcess() active_process = portal_activities.newActiveProcess(**kw)
active_process.setStartDate(DateTime()) active_process.setStartDate(DateTime())
active_process.setCausalityValue(self) active_process.setCausalityValue(self)
return active_process return active_process
......
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