[Erp5-report] r23226 - /erp5/trunk/products/ERP5/Document/Alarm.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 28 14:29:54 CEST 2008
Author: aurel
Date: Thu Aug 28 14:29:43 2008
New Revision: 23226
URL: http://svn.erp5.org?rev=23226&view=rev
Log:
remove explicit parameter defined as dict
Modified:
erp5/trunk/products/ERP5/Document/Alarm.py
Modified: erp5/trunk/products/ERP5/Document/Alarm.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Alarm.py?rev=23226&r1=23225&r2=23226&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Alarm.py (original)
+++ erp5/trunk/products/ERP5/Document/Alarm.py Thu Aug 28 14:29:43 2008
@@ -501,13 +501,14 @@
security.declareProtected(Permissions.ModifyPortalContent,
'newActiveProcess')
- def newActiveProcess(self, activate_kw={}, **kw):
+ def newActiveProcess(self, **kw):
"""
We will create a new active process in order to store
new results, then this process will be added to the list
of processes
"""
tag = self.portal_ids.getLastLengthGeneratedId(id_group=self.getId())
+ activate_kw = kw.get('activate_kw', {})
if tag is not None:
activate_kw.setdefault('tag', str(tag))
portal_activities = getToolByName(self,'portal_activities')
More information about the Erp5-report
mailing list