On Fri, Oct 31, 2003 at 12:28:45PM +0100, Florent Guillaume wrote:
| I have code that needs to maintain certain invariants when objects are
| deleted, these invariants are maintained in manage_beforeDelete.
| Unfortunately manage_beforeDelete has this code:
| if hasattr(aq_base(object), 'manage_beforeDelete'):
| object.manage_beforeDelete(item, container)
| except BeforeDeleteException, ob:
| LOG('Zope',ERROR,'manage_beforeDelete() threw',
| Which means that ConflictErrors in my invariant code get swallowed, and
| my invariants are broken. This kills me.
| I want to add an additionnal:
| except ConflictError:
+1 from me.
Sidnei da Silva <[EMAIL PROTECTED]>
dreamcatching :: making your dreams come true
My apologies if I sound angry. I feel like I'm talking to a void.
-- Avery Pennarun
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -