[Zope-PTK] How can I override ActionsTool

robert at rocad robert@redcor.ch
Wed, 14 Feb 2001 15:39:19 +0100


Hi Jens,
thanks for the quick answer. Working is just that much nicer like that.
Actually  your answer proposes what I hope to avoid. Replacing the
Actiontool wold prevent me (or at least make it harder) to have different
portals with different behaviour.
What I would like to implement is a Portal for a closed group for which only
the admin is allowed to add new members.

Have of my solution would be to raise the needed accessrights for the join
folder. However it is only displayed to the anonymous user.

Any more idea?
Robert

----- Original Message -----
From: "Jens Vagelpohl" <jens@digicool.com>
To: "robert at rocad" <robert@redcor.ch>; <zope-ptk@zope.org>
Sent: Wednesday, February 14, 2001 2:34 PM
Subject: Re: [Zope-PTK] How can I override ActionsTool


> robert,
>
> right now this is not configurable without diving into the code. if you
look
> at PTKBase/ActionsTool.py you will see that the "Join" link is hardcoded
in
> the listActions method.
>
> what you could do in the interim is to subclass from ActionsTool and
> override listActions so it returns only what you want. you could then
delete
> the ActionsTool in your portal and create an instance of your
> ActionsTool-derived class (make sure the ID of your custom ActionsTool
> instance stays the same as the original ActionsTool in case there are any
> dependencies on it).
>
> jens
>
>
> on 2/14/01 7:59, robert at rocad at robert@redcor.ch wrote:
>
> > Hi there,
> > I would like to overwrite the class ActionsTool.
> > Especially I would like that the option Join is not offered to an
anonymous
> > user anymore.
> >
> > How would I do that best. What are the action_providers?
> >
> > Thanks for your help.
> >
> > Robert
> >
> >
> > _______________________________________________
> > Zope-PTK maillist  -  Zope-PTK@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-ptk
> >
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> > requests
> >
>
>
> _______________________________________________
> Zope-PTK maillist  -  Zope-PTK@zope.org
> http://lists.zope.org/mailman/listinfo/zope-ptk
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests