[CMF-checkins] CVS: CMF/CMFCore/tests/base - tidata.py:1.5
Yvo Schubbe
schubbe@web.de
Thu, 31 Jul 2003 11:47:56 -0400
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv19086/CMFCore/tests/base
Modified Files:
tidata.py
Log Message:
Fixed bug in _guessMethodAliases:
Don't complain if we can't simulate _getViewFor behavior. There are CMF 1.4 content types that don't depend on _getViewFor.
=== CMF/CMFCore/tests/base/tidata.py 1.4 => 1.5 ===
--- CMF/CMFCore/tests/base/tidata.py:1.4 Tue Jul 15 11:50:41 2003
+++ CMF/CMFCore/tests/base/tidata.py Thu Jul 31 11:47:21 2003
@@ -204,6 +204,43 @@
,
)
+FTIDATA_CMF14_SPECIAL2 = (
+ { 'id' : 'Dummy Content 14'
+ , 'meta_type' : 'Dummy'
+ , 'description' : (
+ 'Dummy Content.')
+ , 'icon' : 'dummy_icon.gif'
+ , 'product' : 'FooProduct'
+ , 'factory' : 'addFoo'
+ , 'immediate_view' : 'metadata_edit_form'
+ , 'actions' : (
+ { 'id': 'top',
+ 'name': 'View Mail Archive',
+ 'category':'object',
+ 'action':'python:object.getArchive().absolute_url()',
+ 'permissions':(View,) }
+ , { 'id':'view',
+ 'name':'View',
+ 'action':"python:object.someMethod() + '/some_template.html'",
+ 'permissions':(View,) }
+ , { 'id':'edit',
+ 'name':'Edit',
+ 'action':'string:${object_url}/dummy_edit_form',
+ 'permissions':(ModifyPortalContent,) }
+ , { 'id':'metadata',
+ 'name':'Metadata',
+ 'action':'string:${object_url}/metadata_edit_form',
+ 'permissions':(ModifyPortalContent,) }
+ , { 'id':'mkdir',
+ 'name':'MKDIR handler',
+ 'action':'python:object.getMKDIR().absolute_url()',
+ 'category':'folder',
+ 'visible':0 }
+ )
+ }
+ ,
+ )
+
FTIDATA_CMF15 = (
{ 'id' : 'Dummy Content 15'
, 'meta_type' : 'Dummy'