[Zope-CMF] Actions can have duplicate Ids?

Tres Seaver tseaver@zope.com
23 Jul 2002 11:26:07 -0400


On Tue, 2002-07-23 at 01:24, Chris Withers wrote:
> Hi All,
> 
> Just noticed that actions can have duplicate ids.

Because actions are order-sensitive, the ID is not used
as a dictionary key.

> Is this a bad thing?

Although it does permit the sys admin to make mistakes,  most action IDs
are constructed via software.  One might modify 'addAction' to check for
duplicates, just in case.

> What are action ids used for now anyway?
>
> Can we get rid of them? They just seem to be confusing...

They are the basis for 'getActionById', which is called
by every content object's '__call__' method;  they are not exactly
optional!  Plone also makes use of hem, I think, to "skin" the
actions via CSS.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com