[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.6
Tres Seaver
tseaver@zope.com
Tue, 15 Apr 2003 12:08:33 -0400
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv13354/CMFCore/tests/base
Modified Files:
dummy.py
Log Message:
- Land tseaver-ti_apb_redux-branch.
=== CMF/CMFCore/tests/base/dummy.py 1.5 => 1.6 ===
--- CMF/CMFCore/tests/base/dummy.py:1.5 Thu Feb 13 02:44:49 2003
+++ CMF/CMFCore/tests/base/dummy.py Tue Apr 15 12:08:02 2003
@@ -2,7 +2,7 @@
from OFS.SimpleItem import Item
from Products.CMFCore.PortalContent import PortalContent
from Products.CMFCore.TypesTool import TypeInformation
-from Products.CMFCore.TypesTool import FactoryTypeInformation
+from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
from Products.CMFCore.ActionProviderBase import ActionProviderBase
class DummyObject(Implicit):
@@ -122,23 +122,25 @@
""" Dummy class of type info object """
meta_type = "Dummy Test Type Info"
-DummyFTI = FactoryTypeInformation( 'Dummy Content',
- title='Dummy Content Title',
- meta_type=DummyContent.meta_type,
- product='CMFDefault',
- factory='addDocument',
- actions= ( { 'name' : 'View',
- 'action' : 'view',
- 'permissions' : ('View', ) },
- { 'name' : 'View2',
- 'action' : 'view2',
- 'permissions' : ('View', ) },
- { 'name' : 'Edit',
- 'action' : 'edit',
- 'permissions' : ('forbidden permission',)
- }
- )
- )
+DummyFTI = FTI( 'Dummy Content'
+ , title='Dummy Content Title'
+ , meta_type=DummyContent.meta_type
+ , product='CMFDefault'
+ , factory='addDocument'
+ , actions= ( { 'name' : 'View'
+ , 'action' : 'string:view'
+ , 'permissions' : ( 'View', )
+ }
+ , { 'name' : 'View2'
+ , 'action' : 'string:view2'
+ , 'permissions' : ( 'View', )
+ }
+ , { 'name' : 'Edit'
+ , 'action' : 'string:edit'
+ , 'permissions' : ( 'forbidden permission',)
+ }
+ )
+ )
class DummyFolder( Implicit ):
"""