[CMF-checkins] CVS: CMF/CMFDefault - Document.py:1.57.8.1

Yvo Schubbe schubbe@web.de
Sun, 22 Jun 2003 12:18:15 -0400


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv12778/CMFDefault

Modified Files:
      Tag: yuppie-ti_aliases-branch
	Document.py 
Log Message:
'first cut' of ti aliases.
There is still a lot to do, but at least it seems to work.
Feedback is welcome!


=== CMF/CMFDefault/Document.py 1.57 => 1.57.8.1 ===
--- CMF/CMFDefault/Document.py:1.57	Fri May  9 17:40:24 2003
+++ CMF/CMFDefault/Document.py	Sun Jun 22 12:17:44 2003
@@ -44,20 +44,24 @@
   , 'immediate_view' : 'metadata_edit_form'
   , 'actions'        : ( { 'id'            : 'view' 
                          , 'name'          : 'View'
-                         , 'action': 'string:${object_url}/document_view'
+                         , 'action': 'string:${object_url}/view'
                          , 'permissions'   : (View,)
                          }
                        , { 'id'            : 'edit'
                          , 'name'          : 'Edit'
-                         , 'action': 'string:${object_url}/document_edit_form'
+                         , 'action': 'string:${object_url}/edit'
                          , 'permissions'   : (ModifyPortalContent,)
                          }
                        , { 'id'            : 'metadata'
                          , 'name'          : 'Metadata'
-                         , 'action': 'string:${object_url}/metadata_edit_form'
+                         , 'action': 'string:${object_url}/metadata'
                          , 'permissions'   : (ModifyPortalContent,)
                          }
                        )
+  , 'aliases'        : {'(Default)':'document_view',
+                        'view':'document_view',
+                        'edit':'document_edit_form',
+                        'metadata':'metadata_edit_form'}
   }
 ,
 )