[Zope-CVS] CVS: Products/CMFActionIcons - ActionIconsTool.py:1.2
Tres Seaver
tseaver@zope.com
Sat, 12 Jul 2003 21:56:05 -0400
Update of /cvs-repository/Products/CMFActionIcons
In directory cvs.zope.org:/tmp/cvs-serv19304
Modified Files:
ActionIconsTool.py
Log Message:
- ActionIconsTool.py:
o Better stab at supplying a real action_id for workflow actions.
- skins/actionicons/actionicons_macros.pt:
o Mangle category / action ID into the 'id' attribute of the table
cell.
=== Products/CMFActionIcons/ActionIconsTool.py 1.1.1.1 => 1.2 ===
--- Products/CMFActionIcons/ActionIconsTool.py:1.1.1.1 Sun May 25 23:38:25 2003
+++ Products/CMFActionIcons/ActionIconsTool.py Sat Jul 12 21:55:30 2003
@@ -230,8 +230,8 @@
action_id = action.get( 'id' )
# Hack around DCWorkflow's ID-less worklist actions.
- if action_id is None and action.get( 'permissions' ) == ():
- action_id = 'worklist'
+ if action_id is None and action.get( 'category' ) == 'workflow':
+ action[ 'id' ] = action_id = action.get( 'name' )
if action_id: