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

Florent Guillaume fg at nuxeo.com
Fri Jul 1 09:27:46 EDT 2005


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

Modified Files:
      Tag: CMF-1_5-branch
	ticTypeExport.xml 
Log Message:
Merge from HEAD:

Use a new XML format for import/export of types, where the properties
are generic. Now arbitrary TypeInformation objects can be used, as long
as they are configured using properties.

Split ConfiguratorBase into ImportConfiguratorBase and
ExportConfiguratorBase, as they really are unrelated.
Split typeinfo configurators and tests into Import and Export version.



=== CMF/CMFSetup/xml/ticTypeExport.xml 1.2 => 1.2.4.1 ===
--- CMF/CMFSetup/xml/ticTypeExport.xml:1.2	Mon Jul 19 14:11:37 2004
+++ CMF/CMFSetup/xml/ticTypeExport.xml	Fri Jul  1 09:27:45 2005
@@ -1,35 +1,13 @@
 <?xml version="1.0"?>
 <type-info xmlns:tal="http://xml.zope.org/namespaces/tal"
    id="foo"
-   kind="Factory-based Type Information"
-   title="Foo"
-   meta_type="Foo Thing"
-   icon="foo.png"
-   immediate_view="foo_view"
-   filter_content_types="False"
-   allow_discussion="False"
-   global_allow="False"
-   tal:define="info python: here.getTypeInfo( options[ 'type_id' ] )"
+   kind="Some Type Information"
+   tal:define="type_id options/type_id;
+               info python: here.getTypeInfo(type_id);
+               props python: here.generateProperties(type_id)"
    tal:attributes="id info/id;
-                   kind info/kind;
-                   title info/title;
-                   meta_type info/meta_type;
-                   icon info/icon;
-                   product info/product | default;
-                   factory info/factory | default;
-                   permission info/permission | default;
-                   constructor_path info/constructor_path | default;
-                   immediate_view info/immediate_view;
-                   filter_content_types info/filter_content_types;
-                   allow_discussion info/allow_discussion;
-                   global_allow info/global_allow;
-                  "
-   >
-  <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>
+                   kind info/kind"
+ ><properties tal:replace="structure props"/>
   <aliases>
    <alias from="(Default)" to="foo_view"
           tal:repeat="item info/aliases/items"



More information about the CMF-checkins mailing list