[Zope-CMF] Re: [dev] enhancing Actions: a rough proposal
yuppie
y.2004_ at wcm-solutions.de
Mon Nov 22 09:56:13 EST 2004
Chris Withers wrote:
> yuppie wrote:
>
>> - Defining which Actions belong to which types:
>> I tested it with conditions (e.g. "python: folder is not object" or
>> "python:object.getPortalTypeName() in ('File', 'Image')"), but maybe
>> we need a solution based on marker interfaces.
>
>
> Hmm, a TALES expression seens the most flexible here, right?
Well. My examples *are* TALES expressions. The problem of using TALES
expressions is that registering new types isn't easy.
Meanwhile I tend to keep a list of available actions (just their ids)
inside the TypeInfos.
Cheers, Yuppie
More information about the Zope-CMF
mailing list