[CMF-checkins] CVS: CMF/CMFCore/tests/base - tidata.py:1.3
Yvo Schubbe
schubbe@web.de
Fri, 4 Jul 2003 03:59:23 -0400
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv15486/CMFCore/tests/base
Modified Files:
tidata.py
Log Message:
- refactored and added TypeInformation migration tests
- fixed TypeInformation construction from oldstyle fti data
=== CMF/CMFCore/tests/base/tidata.py 1.2 => 1.3 ===
--- CMF/CMFCore/tests/base/tidata.py:1.2 Sat Jun 28 12:31:22 2003
+++ CMF/CMFCore/tests/base/tidata.py Fri Jul 4 03:58:49 2003
@@ -52,6 +52,64 @@
,
)
+FTIDATA_CMF13 = (
+ { 'id' : 'Dummy Content 13'
+ , 'meta_type' : 'Dummy'
+ , 'description' : (
+ 'Dummy Content.')
+ , 'icon' : 'dummy_icon.gif'
+ , 'product' : 'FooProduct'
+ , 'factory' : 'addFoo'
+ , 'immediate_view' : 'metadata_edit_form'
+ , 'actions' : (
+ { 'id':'view',
+ 'name':'View',
+ 'action':'dummy_view',
+ 'permissions':(View,) }
+ , { 'id':'edit',
+ 'name':'Edit',
+ 'action':'dummy_edit_form',
+ 'permissions':(ModifyPortalContent,) }
+ , { 'id':'metadata',
+ 'name':'Metadata',
+ 'action':'metadata_edit_form',
+ 'permissions':(ModifyPortalContent,) }
+ )
+ }
+ ,
+ )
+
+FTIDATA_CMF13_FOLDER = (
+ { 'id' : 'Dummy Folder 13'
+ , 'meta_type' : 'Dummy Folder'
+ , 'description' : (
+ 'Dummy Folder.')
+ , 'icon' : 'dummy_icon.gif'
+ , 'product' : 'FooProduct'
+ , 'factory' : 'addFoo'
+ , 'filter_content_types' : 0
+ , 'immediate_view' : 'dummy_edit_form'
+ , 'actions' : (
+ { 'id':'view',
+ 'name':'View',
+ 'action':'',
+ 'permissions':(View,),
+ 'category':'folder' }
+ , { 'id':'edit',
+ 'name':'Edit',
+ 'action':'dummy_edit_form',
+ 'permissions':(ManageProperties,),
+ 'category':'folder' }
+ , { 'id':'localroles',
+ 'name':'Local Roles',
+ 'action':'folder_localrole_form',
+ 'permissions':(ManageProperties,),
+ 'category':'folder' }
+ )
+ }
+ ,
+ )
+
FTIDATA_CMF14 = (
{ 'id' : 'Dummy Content 14'
, 'meta_type' : 'Dummy'