[Zope-CMF] possible bug, action condition not obeyed by _getViewFor

Dieter Maurer dieter at handshake.de
Thu Nov 20 14:07:10 EST 2003


Sune Brøndum Wøller wrote at 2003-11-20 01:43 +0100:
 > possible bug:
 > The _getViewFor in utils.py doesn't obey the condition 
 > set on the action.
 > (it only checks permissions)
 > 
 > Context : when defining two 'view' actions on a portal type
 > with mutually exclusive conditions.
 > 
 > I try to use it to have different default views depending on
 > whether the user is logged in.
 > 
 > should it be posted in the collector ?

Yuppie is working on a proposal to forbid non-unique action ids
(in the same catagorie).

Unless you have a strong reason, your use will soon result in
a proper exception ("duplicate action id").
Read the recent discussion in this list and make your voice heard...

-- 
Dieter



More information about the Zope-CMF mailing list