Might it be possible to just handle the exception being thrown? Isn't the
event fired after the item is deleted and having the exception raised and
unhandled causes the transaction to roll back.

On Thu, Jun 16, 2011 at 9:12 AM, Wichert Akkerman <wich...@wiggy.net> wrote:

> On 06/16/2011 03:58 PM, Andreas Jung wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>>
>> Giacomo Spettoli wrote:
>>
>>
>>  Hi,
>>>    you could disable "link-integrity" check via python before using
>>> manage_delObjects and re-enable after job's done.
>>>
>> How would you do that? Afaik: the integrity checker is integrated
>> as an event subscriber. In Produce&  Publish I am using the deletion
>> API heavily for moving stuff around. Perhaps I should disable the
>> integrity checks in general for such sites...causing more problems than
>> it actually solves.
>>
>
> There is no way to disable it unfortunately, and since it's an event
> subscriber you can't even monkeypatch it away. The only approach I have
> found is using z3c.unconfigure to disable the whole thing globally.
>
> Wichert.
>
>
> _______________________________________________
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
_______________________________________________
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to