[Zope-CMF] Re: Action Name as TAL Expression

Tres Seaver tseaver at palladion.com
Fri Jul 15 08:49:52 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florent Guillaume wrote:
> Pete Mawhinney <pmawhinney at fitness2live.com.au> wrote:
> 
>>From: Tom Dossis [mailto:td at yoma.com.au] 
>>
>>A CMF action name is currently a simple string.
>>
>>It would be a nice and relatively simple enhancement to have it support 
>>TAL expressions.  Note: This would need to be backward compatible, so we 
>>need to identify when/how to interpret the name as a tal expression.
> 
> 
> In any reasonable system, action names are not english strings anyway,
> and have to be post-processed before being displayed because of i18n
> requirements. And it's quite easy in your application's code to
> recognize a special action id and compute a value before display.

+1.  The action ID is used to identify the action in code, and should
should remain an "identifier" not a label.  I could see a patch like the
one proposed for the portal_actionicons tool, which is desgined for the
kinds of indirections the OP needs.

Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC17Dw+gerLs4ltQ4RAuw8AJ4gbPLpmO6osUHTXwBc+CPLbRQg1QCgj09l
2F6pkGC1TR+MJ+EbEUmeszw=
=YIdp
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list