Commit 29e1978c authored by Aurel's avatar Aurel

remove explicit parameter defined as dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23226 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52b7b764
...@@ -501,13 +501,14 @@ Alarm URL: %s ...@@ -501,13 +501,14 @@ Alarm URL: %s
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
'newActiveProcess') 'newActiveProcess')
def newActiveProcess(self, activate_kw={}, **kw): 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
""" """
tag = self.portal_ids.getLastLengthGeneratedId(id_group=self.getId()) tag = self.portal_ids.getLastLengthGeneratedId(id_group=self.getId())
activate_kw = kw.get('activate_kw', {})
if tag is not None: if tag is not None:
activate_kw.setdefault('tag', str(tag)) activate_kw.setdefault('tag', str(tag))
portal_activities = getToolByName(self,'portal_activities') portal_activities = getToolByName(self,'portal_activities')
......
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