[CMF-checkins] CVS: CMF/CMFCore - ActionsTool.py:1.26
Chris Withers
chrisw@nipltd.com
Sat, 9 Mar 2002 12:23:43 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv7103/CMFCore
Modified Files:
ActionsTool.py
Log Message:
Fixed ActionsTool so that duplicate actions are stripped
=== CMF/CMFCore/ActionsTool.py 1.25 => 1.26 ===
if catlist is None:
filtered_actions[category] = catlist = []
- # If a bug occurs where actions appear more than once,
- # a little code right here can fix it.
- catlist.append(action)
+ # Filter out duplicate actions
+ if not action in catlist:
+ catlist.append(action)
return filtered_actions
# listFilteredActions() is an alias.