[CMF-checkins] CVS: CMF/CMFDefault - DiscussionItem.py:1.34.8.1 Document.py:1.57.8.2 Favorite.py:1.20.8.1 File.py:1.26.8.1 Image.py:1.24.8.1 Link.py:1.27.8.1 NewsItem.py:1.19.8.1 SkinnedFolder.py:1.14.8.1
Yvo Schubbe
schubbe@web.de
Sat, 28 Jun 2003 10:41:40 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv5929/CMFDefault
Modified Files:
Tag: yuppie-ti_aliases-branch
DiscussionItem.py Document.py Favorite.py File.py Image.py
Link.py NewsItem.py SkinnedFolder.py
Log Message:
- added basic method aliases ( bypassing __call__() and view() )
=== CMF/CMFDefault/DiscussionItem.py 1.34 => 1.34.8.1 ===
--- CMF/CMFDefault/DiscussionItem.py:1.34 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/DiscussionItem.py Sat Jun 28 10:41:08 2003
@@ -46,6 +46,8 @@
, 'product' : '' # leave blank to suppress
, 'factory' : ''
, 'immediate_view' : ''
+ , 'aliases' : {'(Default)':'discussionitem_view',
+ 'view':'discussionitem_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/discussionitem_view'
=== CMF/CMFDefault/Document.py 1.57.8.1 => 1.57.8.2 ===
--- CMF/CMFDefault/Document.py:1.57.8.1 Sun Jun 22 12:17:44 2003
+++ CMF/CMFDefault/Document.py Sat Jun 28 10:41:08 2003
@@ -42,26 +42,24 @@
, 'product' : 'CMFDefault'
, 'factory' : 'addDocument'
, 'immediate_view' : 'metadata_edit_form'
+ , 'aliases' : {'(Default)':'document_view',
+ 'view':'document_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
- , 'action': 'string:${object_url}/view'
+ , 'action': 'string:${object_url}/document_view'
, 'permissions' : (View,)
}
, { 'id' : 'edit'
, 'name' : 'Edit'
- , 'action': 'string:${object_url}/edit'
+ , 'action': 'string:${object_url}/document_edit_form'
, 'permissions' : (ModifyPortalContent,)
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
- , 'action': 'string:${object_url}/metadata'
+ , 'action': 'string:${object_url}/metadata_edit_form'
, 'permissions' : (ModifyPortalContent,)
}
)
- , 'aliases' : {'(Default)':'document_view',
- 'view':'document_view',
- 'edit':'document_edit_form',
- 'metadata':'metadata_edit_form'}
}
,
)
=== CMF/CMFDefault/Favorite.py 1.20 => 1.20.8.1 ===
--- CMF/CMFDefault/Favorite.py:1.20 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/Favorite.py Sat Jun 28 10:41:08 2003
@@ -36,6 +36,8 @@
, 'product' : 'CMFDefault'
, 'factory' : 'addFavorite'
, 'immediate_view' : 'metadata_edit_form'
+ , 'aliases' : {'(Default)':'favorite_view',
+ 'view':'favorite_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/favorite_view'
=== CMF/CMFDefault/File.py 1.26 => 1.26.8.1 ===
--- CMF/CMFDefault/File.py:1.26 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/File.py Sat Jun 28 10:41:08 2003
@@ -38,6 +38,8 @@
, 'product' : 'CMFDefault'
, 'factory' : 'addFile'
, 'immediate_view' : 'metadata_edit_form'
+ , 'aliases' : {'(Default)':'index_html',
+ 'view':'file_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/file_view'
=== CMF/CMFDefault/Image.py 1.24 => 1.24.8.1 ===
--- CMF/CMFDefault/Image.py:1.24 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/Image.py Sat Jun 28 10:41:08 2003
@@ -36,6 +36,8 @@
, 'product' : 'CMFDefault'
, 'factory' : 'addImage'
, 'immediate_view' : 'metadata_edit_form'
+ , 'aliases' : {'(Default)':'index_html',
+ 'view':'image_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/image_view'
=== CMF/CMFDefault/Link.py 1.27 => 1.27.8.1 ===
--- CMF/CMFDefault/Link.py:1.27 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/Link.py Sat Jun 28 10:41:08 2003
@@ -40,6 +40,8 @@
, 'product' : 'CMFDefault'
, 'factory' : 'addLink'
, 'immediate_view' : 'metadata_edit_form'
+ , 'aliases' : {'(Default)':'link_view',
+ 'view':'link_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/link_view'
@@ -59,7 +61,6 @@
}
,
)
-
def addLink( self
, id
=== CMF/CMFDefault/NewsItem.py 1.19 => 1.19.8.1 ===
--- CMF/CMFDefault/NewsItem.py:1.19 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/NewsItem.py Sat Jun 28 10:41:08 2003
@@ -35,6 +35,8 @@
, 'product' : 'CMFDefault'
, 'factory' : 'addNewsItem'
, 'immediate_view' : 'metadata_edit_form'
+ , 'aliases' : {'(Default)':'newsitem_view',
+ 'view':'newsitem_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/newsitem_view'
=== CMF/CMFDefault/SkinnedFolder.py 1.14 => 1.14.8.1 ===
--- CMF/CMFDefault/SkinnedFolder.py:1.14 Fri May 9 17:40:24 2003
+++ CMF/CMFDefault/SkinnedFolder.py Sat Jun 28 10:41:08 2003
@@ -36,6 +36,8 @@
, 'factory' : 'addSkinnedFolder'
, 'filter_content_types' : 0
, 'immediate_view' : 'folder_edit_form'
+ , 'aliases' : {'(Default)':'folder_view',
+ 'view':'folder_view'}
, 'actions' : ( { 'id' : 'view'
, 'name' : 'View'
, 'action': 'string:${object_url}/folder_view'