Il giorno gio, 16/06/2011 alle 14.40 +0200, Andreas Jung ha scritto: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi there, > > 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. > > Is there a way to eliminate this redirection? > > Andreas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJN+fmgAAoJEADcfz7u4AZj+20LwJJmxpEMVKoj0TZ2Tc5xh3Ri > CjwzYEkUePsTvzSdPxIwQJ+7apZI4rbkzT+eOb92/66djKzVxPz9VG0KxSYw6rfQ > dbIhfdRpNfdM0/6vflNuGkVmYEW/77JylqAAnWPVAMGfFVARU4Of3aNvzuEmG0+2 > Uxd9VceFf8C++mh7S/BHZcewWyBFaAWnS9KNJsgM2kdo+uTR+Da6s6Zpw/mQMYSz > fF4pp4ZgGsyvK4Yx8xJGr0hz6pcQWYWTCoKkNtVlfZsq3POeZMQZYd1MfaAoq9rv > 4UyDP81b8ec0dvw0/BF46jkgDfCOwgzhIYCnPNY+xvkdjLJNdgBYv6arcgrj5u/5 > P7GofXpma8vvL82mObtcOgMOw0iBg7ftnf3MJjjzHKtXeo1qRgFIsY9OVd7Or9Pg > 3q4YuhzX11sCdg5pWCuswlzxhdSGAI6n5GY4VtFtoDa08Ifh3KlZsFMl5tkCeXac > tokshBBgoA9WC/cEu+88/P6NjLiYmqw= > =tVX2 > -----END PGP SIGNATURE----- > _______________________________________________ > Product-Developers mailing list > [email protected] > https://lists.plone.org/mailman/listinfo/plone-product-developers
Hi, you could disable "link-integrity" check via python before using manage_delObjects and re-enable after job's done. Giacomo. _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
