[Erp5-report] r23971 - /erp5/trunk/products/CMFActivity/ActiveProcess.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 2 13:30:28 CEST 2008
Author: thibaut
Date: Thu Oct 2 13:30:23 2008
New Revision: 23971
URL: http://svn.erp5.org?rev=23971&view=rev
Log:
add a new method to define a creation date on an active process thanks to the start date
Modified:
erp5/trunk/products/CMFActivity/ActiveProcess.py
Modified: erp5/trunk/products/CMFActivity/ActiveProcess.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/ActiveProcess.py?rev=23971&r1=23970&r2=23971&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/ActiveProcess.py (original)
+++ erp5/trunk/products/CMFActivity/ActiveProcess.py Thu Oct 2 13:30:23 2008
@@ -36,7 +36,7 @@
from BTrees.Length import Length
from Products.CMFActivity.ActiveObject import DISTRIBUTABLE_STATE, INVOKE_ERROR_STATE, VALIDATE_ERROR_STATE
from random import randint
-
+from DateTime import DateTime
from zLOG import LOG
manage_addActiveProcessForm=DTMLFile('dtml/ActiveProcess_add', globals())
@@ -155,6 +155,13 @@
"""
return self.hasActivity(processing_node = VALIDATE_ERROR_STATE)
+ def CreationDate(self):
+ """
+ Define a Creation Date for an active process
+ thanks to the start date
+ """
+ return self.getStartDate()
+
def start():
# start activities related to this process
pass
More information about the Erp5-report
mailing list