[Zope-CMF] [DCWorkflow]Problem with initial state

Encolpe Degoute encolpe at colpi.info
Tue Mar 7 14:33:13 EST 2006


Hi,
I found something funny yesterday that makes me spend some hours:
If you delete the state marked as initial state the variable initial_sate always
contains its id.

It makes _exectuteTransition raising an error because _getWorkflowStateOf return
None.

The code of _executeTransition that gives me headaches:

        old_sdef = self._getWorkflowStateOf(ob)
        old_state = old_sdef.getId()

Regards,
-- 
Encolpe DEGOUTE
http://encolpe.degoute.free.fr/
Logiciels libres, hockey sur glace et autres activités cérébrales


More information about the Zope-CMF mailing list