[CMF-checkins] CVS: CMF/CMFSetup/xml - ticTypeExport.xml:1.1.2.2
Yvo Schubbe
y.2004_ at wcm-solutions.de
Mon Jul 19 13:56:17 EDT 2004
Update of /cvs-repository/CMF/CMFSetup/xml
In directory cvs.zope.org:/tmp/cvs-serv7655/CMFSetup/xml
Modified Files:
Tag: yuppie-actions-cleanup-branch
ticTypeExport.xml
Log Message:
- replaced 'allowed_content_types' attribute by 'allowed_content_type' elements
=== CMF/CMFSetup/xml/ticTypeExport.xml 1.1.2.1 => 1.1.2.2 ===
--- CMF/CMFSetup/xml/ticTypeExport.xml:1.1.2.1 Sun Jul 18 18:08:45 2004
+++ CMF/CMFSetup/xml/ticTypeExport.xml Mon Jul 19 13:56:17 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"
@@ -49,9 +50,10 @@
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:content="permission">View</permission></tal:case>
</action>
</type-info>
More information about the CMF-checkins
mailing list