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
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to