Commit e232f2e9 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

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
parent 005d50ee
......@@ -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
......
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