[Product-Developers] Aborting deletion of objects
Andreas Jung
lists at zopyx.com
Thu May 14 17:29:41 UTC 2009
On 14.05.09 19:24, Johannes Schwenk wrote:
>
> Currently I am trying to get things working by implementing an adapter for the
> IObjectWillBeRemovedEvent event:
>
Zope does definitely trigger this event.
> @adapter(IEntry, IObjectWillBeRemovedEvent)
> def verifyOnDeletion(obj, event):
> """
> """
> [...]
> raise zExceptions.Redirect(obj.asolute_url())
> [...]
>
> The function never gets called... Yes I registered the adapter with
> <subscriber handler=".vocabulary.verifyOnDeletion" />. Other adapters defined
> that way get called...
No idea. This is supposed to work. Debug the code triggering the
event (OFS module) and check for the list of registered subscriber etc...
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090514/68fd1a06/attachment.vcf>
More information about the Product-Developers
mailing list