From e232f2e9fef9d844ec008b462b4b4fb571192d11 Mon Sep 17 00:00:00 2001
From: Thibaut Deheunynck <thibaut@nexedi.com>
Date: Thu, 2 Oct 2008 11:30:23 +0000
Subject: [PATCH] add a new method to define a creation date on an active
 process thanks to the start date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23971 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFActivity/ActiveProcess.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/product/CMFActivity/ActiveProcess.py b/product/CMFActivity/ActiveProcess.py
index 48660b3864..ea338be2dc 100644
--- a/product/CMFActivity/ActiveProcess.py
+++ b/product/CMFActivity/ActiveProcess.py
@@ -36,7 +36,7 @@ from BTrees.IOBTree import IOBTree
 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 @@ class ActiveProcess(Base):
       """
       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
-- 
2.30.9