Re: [Zope-dev] Zope 2.12 - one more ZPublisher event

2009-11-12 Thread Leonardo Rochael Almeida
On Thu, Nov 12, 2009 at 12:29, Martin Aspeli wrote: > Leonardo Rochael Almeida wrote: >> Wouldn't it be better to just move IPubFailure before the abort? [...] >> I can see the usefulness of the >> transaction being already doom()ed before this event, but not aborted. > > There is an IPubSuccess w

Re: [Zope-dev] Zope 2.12 - one more ZPublisher event

2009-11-12 Thread Martin Aspeli
Leonardo Rochael Almeida wrote: > Wouldn't it be better to just move IPubFailure before the abort? Is > there a reason for subscribing to such an event which would required > the transaction to be aborted already? I can see the usefulness of the > transaction being already doom()ed before this even

Re: [Zope-dev] Zope 2.12 - one more ZPublisher event

2009-11-12 Thread Leonardo Rochael Almeida
Wouldn't it be better to just move IPubFailure before the abort? Is there a reason for subscribing to such an event which would required the transaction to be aborted already? I can see the usefulness of the transaction being already doom()ed before this event, but not aborted. On Wed, Nov 11, 200

[Zope-dev] Zope 2.12 - one more ZPublisher event

2009-11-10 Thread Martin Aspeli
Hi, In Zope 2.12 ZPublisher we have a good set of events now, which provide useful hooks for modifying the response before or after publication. However, I'd like to add one more. ;-) Basically, we have IPubFailure, but this is sent *after* transaction.abort() and endInteraction(). This means