|
From: <pa...@zo...> - 2003-02-22 17:09:37
|
Just 2 small problems in my view:
1. a small bug about catalog Index: the 'description' index should be =
TextIndex, but not FieldIndex.
2. I found I can't re-assign a workitem if it already has a actor. In =
the following lines:
def assignWorkitem(self, instance_id, workitem_id, actor, =
REQUEST=3DNone):
.......
workitem_is_ok =3D instance.isActiveOrRunning() and not =
workitem.status =3D=3D 'completed' and workitem.actor =3D=3D ''
if user_is_ok and workitem_is_ok:
workitem.assignTo(actor)
if REQUEST: REQUEST.RESPONSE.redirect(REQUEST.HTTP_REFERER)
I think the workitem_is_ok should be:
workitem_is_ok =3D instance.isActiveOrRunning() and not =
workitem.status =3D=3D 'completed'
=20
This way, we can re-assign a workitem easily.
Correct me if I am wrong. Thanks.
panjunyong |