[Zope-CMF] Re: Zope 3 events from workflow

Tres Seaver tseaver at palladion.com
Wed Dec 27 11:01:15 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sidnei da Silva wrote:
> I think there was something else that needs handling in this event
> effort. There's an exception that is raised when an object is moved
> within a transition to signal the move. That should be converted to an
> event, and the corresponding exception handling in the WorkflowTool
> should be converted to a subscriber.

I'm not sure that is quite right -- the point of raising the exception
on move is to "back out" of any further work at that point, and up
through several layers of call stack.  If we move to an event, then we
have to revisit all those layers, to ensure that the "termination path"
does no work after the event is emitted.

Likewise, we run the risk of breaking third-party code which already
expects to raise the exception.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFkpjL+gerLs4ltQ4RAjSwAKDYQgyVYwUXuQSLDZDDdxyWol6Y3gCgr+Jy
uE831LyK6wLxscBuzPzxTfY=
=wSan
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list