[CMF-checkins] CVS: CMF/CMFCore - ActionProviderBase.py:1.6
Chris Withers
chrisw@nipltd.com
Sat, 9 Mar 2002 12:48:44 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv20179/CMFCore
Modified Files:
ActionProviderBase.py
Log Message:
Fixed ActionProvidorBase for the case when no permission
is specified for an action that is added TTW
=== CMF/CMFCore/ActionProviderBase.py 1.5 => 1.6 ===
else:
c_expr = ''
+ if permission:
+ perm = (str(permission),)
+ else:
+ perm = ()
al.append(ActionInformation(id=str(id)
, title=str(name)
, action=a_expr
, condition=c_expr
- , permissions=(str(permission),)
+ , permissions=perm
, category=str(category)
, visible=int(visible)
))