[Zope-CMF] Changing permissions on CMF portal_type actions
Michael LaPera
mlapera@colorbyte.com
Tue, 16 Jul 2002 17:27:11 -0400
On Tuesday, July 2, 2002, at 03:12 PM, Dieter Maurer wrote:
> Michael LaPera writes:
>> I am using Plone and I have a custom portal_type "MailMessage" (a la
>> CMFMailn) with the actions ("view", "send", "redirect", "forward",
>> "reply"). When an object is added I would like only the actions "view"
>> and "send" to be available, but after a member sends the email I want
>> to
>> hide the "send" action and make available the "redirect" and "forward"
>> actions.
> Look at DCWorkflow (--> Zope.org). It allows permissions to change
> with workflow states.
>
> In your case, sending the message would change the workflow state...
I can see how DCWorkflow can change the permission (state) of a
portal_type object, but I could not figure out how to use DCWorkflow to
change the state of a specific action of a portal_type object.
My objective is, basically, to dynamically change the Plone content tabs
(which use the portal_type object actions to draw some of the tabs) with
my MailMessage object.
Thanks,
Michael