[Zope-CVS] CVS: Products/CMFActionIcons/skins/actionicons - actionicons_macros.pt:1.2

Tres Seaver tseaver@zope.com
Sat, 12 Jul 2003 21:55:38 -0400


Update of /cvs-repository/Products/CMFActionIcons/skins/actionicons
In directory cvs.zope.org:/tmp/cvs-serv19304/skins/actionicons

Modified Files:
	actionicons_macros.pt 
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/skins/actionicons/actionicons_macros.pt 1.1.1.1 => 1.2 ===
--- Products/CMFActionIcons/skins/actionicons/actionicons_macros.pt:1.1.1.1	Sun May 25 23:38:25 2003
+++ Products/CMFActionIcons/skins/actionicons/actionicons_macros.pt	Sat Jul 12 21:55:33 2003
@@ -1,9 +1,13 @@
 <td metal:define-macro="action_icon_cell"
     tal:define="id action/id | action/name | string:unknown;
+                clean_id python:id.replace( ' ', '_' );
+                category action/category | string:uncategorized;
                 url action/url;
                 title action/title | id;
                "
-    tal:attributes="title title;" >
+    tal:attributes="title title;
+                    id string:${category}X${clean_id};
+                   " >
     <a tal:define="icon  action/icon | nothing"
         tal:attributes="href url;
                         title title;