[Product-Developers] manage_delObjects() redirecting to deletion confirmation screen

Mikko Ohtamaa mikko+plone at redinnovation.com
Fri Jun 17 00:03:34 UTC 2011


> calling manage_delObjects() from custom application code seems to
> redirect to the deletion confirmation screen in case of a possible
> link-integrity violation. This is desirable when removing an object
> from the Plone UI but it is absolutely not desirable when I remove
> objects programmatically through my own code.
>

http://collective-docs.plone.org/content/deleting.html#bypassing-link-integrity-check

You can apply a marker interface to HTTPRequest object and link
integrity check is disabled. Or something along the lines.

I'll let you work on how it goes and write the necessary documentation
this time :)

-Mikko


More information about the Product-Developers mailing list