[Zope-CMF] Re: Re: [Plone-users] Allowing content authors to
onlydelete some content from a folder
Lars H. Korte
larzy at freenet.de
Mon Oct 20 15:14:16 EDT 2003
"Dieter Maurer" <dieter at handshake.de> schrieb im Newsbeitrag
news:16276.8457.722520.156625 at gargle.gargle.HOWL...
> Lars Hendrik Korte wrote at 2003-10-20 11:49 +0200:
> > >> Make a special "delete" script that checks your rules,
> > >> give it he necessary "proxy role", use it to delete objects.
> > ...
> > Where and How would I "install" a script like this in order to be
> > executed, when the delete-button is hit? In portal_actions?
>
> The easiest place is the "custom" folder in your "portal_skins"
> as, then, you can assign the proxy role via ZMI.
>
> You can also use an FSPythonScript, but then you must add a property
> for the proxy role and this is not straight forward (especially,
> there is a change between CMF 1.3 and CMF 1.4).
>
> Ensure, that your delete action (whereever you define them)
> calls your delete script.
>
ok! but how and where can I tell plone/zope to call my delete script?
Lars
More information about the Zope-CMF
mailing list