[Erp5-dev] TaskConstraint proposition
Mikolaj Antoszkiewicz
mikolaj at erp5.pl
Fri May 16 19:18:47 CEST 2008
Hi All,
Since the Order_validateData script for task_workflow has been removed,
I propose a proper TaskConstraint replacement to verify task consistency
before confirmation, so that Task Report could be generated.
TaskLineCategoryExistence constraint class handles the more complicated
check for existence of specific category ('reference' in our case) on
all contained Task Lines.
There is no constraint on destination_decision, since I assume there
doesn't have to be a task assignor (and it's not compulsory for the Task
Report generation), but without it (and with destination not a
'Person'), the notifyAssignee script raises an Exception and stops Task
Report building.
I'm attaching two patches for the notifications scripts, which fix the
problem mentioned above.
Mikolaj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TaskLineCategoryExistence.py
Type: text/x-python
Size: 3563 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080516/0b6fbb52/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TaskConstraint.py
Type: text/x-python
Size: 3573 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080516/0b6fbb52/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TaskReport_notifyAssignee.xml.patch
Type: text/x-patch
Size: 3695 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080516/0b6fbb52/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TaskReport_copyOrderPropertiesAndNotifyAssignee.xml.patch
Type: text/x-patch
Size: 5602 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080516/0b6fbb52/attachment-0001.bin>
More information about the Erp5-dev
mailing list