[CMF-checkins] CVS: CMF/CMFSetup/xml - apcExport.xml:1.2 ticTypeExport.xml:1.2

Yvo Schubbe y.2004_ at wcm-solutions.de
Mon Jul 19 14:11:37 EDT 2004


Update of /cvs-repository/CMF/CMFSetup/xml
In directory cvs.zope.org:/tmp/cvs-serv10833/CMFSetup/xml

Modified Files:
	apcExport.xml ticTypeExport.xml 
Log Message:
merged yuppie-actions-cleanup-branch:
- enforced usage of 'title' instead of 'name', 'url' instead of 'action'
- enforced boolean type of 'visible'
- refactored CMFSetup actions and type-info handling
- updated default profile


=== CMF/CMFSetup/xml/apcExport.xml 1.1 => 1.2 ===
--- CMF/CMFSetup/xml/apcExport.xml:1.1	Mon May 24 18:43:53 2004
+++ CMF/CMFSetup/xml/apcExport.xml	Mon Jul 19 14:11:37 2004
@@ -5,20 +5,21 @@
                   tal:attributes="id info/id;" >
   <action action_id="folder_contents"
           title="Folder Contents"
-          category="folder"
-          action_expr="${folder_url}/folder_contents"
           condition_expr=""
-          visible="1"
-          permission="View"
+          url_expr="string:${folder_url}/folder_contents"
+          category="folder"
+          visible="True"
           tal:repeat="action info/actions"
           tal:attributes="action_id action/id;
-                          title action/name;
-                          category action/category;
-                          action_expr action/action;
+                          title action/title;
                           condition_expr action/condition;
+                          url_expr action/action;
+                          category action/category;
                           visible action/visible;
-                          permission action/permission;
-                         " />
+                         ">
+   <permission
+      tal:repeat="permission action/permissions"
+      tal:content="permission">View</permission>
+  </action>
  </action-provider></tal:loop>
 </actions-tool>
-


=== CMF/CMFSetup/xml/ticTypeExport.xml 1.1 => 1.2 ===
--- CMF/CMFSetup/xml/ticTypeExport.xml:1.1	Sat May 29 19:44:55 2004
+++ CMF/CMFSetup/xml/ticTypeExport.xml	Mon Jul 19 14:11:37 2004
@@ -7,7 +7,6 @@
    icon="foo.png"
    immediate_view="foo_view"
    filter_content_types="False"
-   allowed_content_types=""
    allow_discussion="False"
    global_allow="False"
    tal:define="info python: here.getTypeInfo( options[ 'type_id' ] )"
@@ -22,13 +21,15 @@
                    constructor_path info/constructor_path | default;
                    immediate_view info/immediate_view;
                    filter_content_types info/filter_content_types;
-                   allowed_content_types python:
-                       ','.join( info[ 'allowed_content_types' ] );
                    allow_discussion info/allow_discussion;
                    global_allow info/global_allow;
                   "
    >
-  <description tal:content="info/description">Foo things</description>
+  <description tal:content="info/description">Foo things</description
+ ><tal:case tal:condition="info/allowed_content_types">
+  <allowed_content_type
+     tal:repeat="act info/allowed_content_types"
+     tal:content="act">foo</allowed_content_type></tal:case>
   <aliases>
    <alias from="(Default)" to="foo_view"
           tal:repeat="item info/aliases/items"
@@ -38,20 +39,21 @@
   <action
      action_id="view"
      title="View"
-     condition=""
-     action_expr="string:${object_url}/foo_view"
-     permissions="View"
+     condition_expr=""
+     url_expr="string:${object_url}/foo_view"
      category="object"
      visible="True"
      tal:repeat="action info/actions"
      tal:attributes="action_id action/id;
                      title action/title;
-                     condition action/condition;
-                     action_expr action/action;
-                     permissions python:
-                       ','.join( action[ 'permissions' ] );
+                     condition_expr action/condition;
+                     url_expr action/action;
                      category action/category;
                      visible action/visible;
                     "
-     />
+  ><tal:case tal:condition="action/permissions">
+   <permission
+      tal:repeat="permission action/permissions"
+      tal:content="permission">View</permission></tal:case>
+  </action>
 </type-info>



More information about the CMF-checkins mailing list