[Zope-PTK] How can I override ActionsTool
Jens Vagelpohl
jens@digicool.com
Wed, 14 Feb 2001 22:31:23 -0500
robert,
there is a proposal on the table to add a management tab to the actions tool
that can be used to select or unselect actions that are exposed by the
actions tool itself (as opposed to e.g. actions that are exposed by a
content item)., as long as it makes sense to enable or disable them. this
configurability would include the "join" action link.
i'm basically waiting for the go-ahead from the right people.
jens
on 2/14/01 9:39, robert at rocad at robert@redcor.ch wrote:
> 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