[Erp5-report] r23194 - /erp5/trunk/products/ERP5/Document/Alarm.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Aug 27 14:23:44 CEST 2008


Author: aurel
Date: Wed Aug 27 14:23:42 2008
New Revision: 23194

URL: http://svn.erp5.org?rev=23194&view=rev
Log:
allow to propagate parameters when creating an active process on an alarm

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=23194&r1=23193&r2=23194&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Alarm.py (original)
+++ erp5/trunk/products/ERP5/Document/Alarm.py Wed Aug 27 14:23:42 2008
@@ -499,14 +499,14 @@
 
   security.declareProtected(Permissions.ModifyPortalContent, 
                             'newActiveProcess')
-  def newActiveProcess(self):
+  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
     """
     portal_activities = getToolByName(self,'portal_activities')
-    active_process = portal_activities.newActiveProcess()
+    active_process = portal_activities.newActiveProcess(**kw)
     active_process.setStartDate(DateTime())
     active_process.setCausalityValue(self)
     return active_process




More information about the Erp5-report mailing list