[Zope3-dev] substransactions and beforeDelete
Steve Alexander
steve at z3u.com
Thu Jan 8 11:31:54 EST 2004
Hi Florent,
>> Why are you catching the exception?
>
>
> Because I want to display a nice message to the user. If I don't catch
> the exception, it will go up to the Publisher that will display a
> not-nice error message. Hm are you suggesting I could provide a custom
> error message for that particular exception? That could work, but I
> would have like the flexibility of catching the exception from normal
> skin code and display my error message there.
On the zodb-dev list I've proposed a get_transaction().doom() API that,
along with some small changes to the publication component, will address
your use-case.
--
Steve Alexander
More information about the Zope3-dev
mailing list