[CMF-checkins] CVS: Products/CMFCore/tests/base - tidata.py:1.7.8.1

Yvo Schubbe y.2004_ at wcm-solutions.de
Sun Jul 18 17:55:48 EDT 2004


Update of /cvs-repository/Products/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv15484/CMFCore/tests/base

Modified Files:
      Tag: yuppie-actions-cleanup-branch
	tidata.py 
Log Message:
- added 'getMapping' method to replace some redundant code
- Action 'title' is an alias of 'name'
- Action 'visible' is a boolean
- some related cleanup


=== Products/CMFCore/tests/base/tidata.py 1.7 => 1.7.8.1 ===
--- Products/CMFCore/tests/base/tidata.py:1.7	Tue Apr 13 13:22:17 2004
+++ Products/CMFCore/tests/base/tidata.py	Sun Jul 18 17:55:18 2004
@@ -7,7 +7,7 @@
       , 'meta_type' : 'Dummy'
       , 'actions' : (
             { 'id':'view',
-              'name':'View',
+              'title': 'View',
               'action':'string:',
               'permissions':('View',),
               'category':'object',
@@ -38,13 +38,16 @@
       , 'product' : 'FooProduct'
       , 'factory' : 'addFoo'
       , 'actions' : (
-            { 'name':'View',
+            { 'id': 'view',
+              'title': 'View',
               'action':'string:view',
               'permissions':('View',) }
-          , { 'name':'View2',
+          , { 'id': 'view2',
+              'title': 'View2',
               'action':'string:view2',
               'permissions':('View',) }
-          , { 'name':'Edit',
+          , { 'id': 'edit',
+              'title': 'Edit',
               'action':'string:edit',
               'permissions':('forbidden permission',) }
           )
@@ -259,15 +262,15 @@
            'gethtml':'source_html'}
       , 'actions' : (
             { 'id':'view',
-              'name':'View',
+              'title': 'View',
               'action':'string:${object_url}/view.html',
               'permissions':(View,) }
           , { 'id':'edit',
-              'name':'Edit',
+              'title': 'Edit',
               'action':'string:${object_url}/edit.html',
               'permissions':(ModifyPortalContent,) }
           , { 'id':'metadata',
-              'name':'Metadata',
+              'title': 'Metadata',
               'action':'string:${object_url}/metadata.html',
               'permissions':(ModifyPortalContent,) }
           )



More information about the CMF-checkins mailing list