Arthur Lutz <[EMAIL PROTECTED]> wrote: > I'm having a bit of struggle with OFS.ObjectManager in Zope 2.7.6-final. > In a manage_beforeDelete I want to raise a Redirect but it gets eaten up > by in ObjectManager by a log and pass (line 307). > > My question is: how do I get a Redirect through or how do I use the > Exceptions that are actually caught (BeforeDeleteException or > ConflictError - although the first seems more appropriate) ?
Raise BeforeDeleteException (or a subclass) in your code in manage_beforeDelete. Catch it and act on it from the code that calls manage_delObjects. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )