From dfe54fcb96c5881ef10394e44bd763e4c0bab8ac Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Wed, 22 Jun 2005 16:01:10 +0000
Subject: [PATCH] Tweak the default factory type information: correct the
 permission for metadata, add history, and reorder the actions for
 convenience.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3318 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Utils.py | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py
index 18985307b7..6551058e83 100755
--- a/product/ERP5Type/Utils.py
+++ b/product/ERP5Type/Utils.py
@@ -530,19 +530,23 @@ def setDefaultClassProperties(document_class):
           , 'action'        : '%s_view' % document_class.__name__
           , 'permissions'   : ( Permissions.View, )
           }
-        , { 'id'            : 'print'
-          , 'name'          : 'Print'
-          , 'category'      : 'object_print'
-          , 'action'        : '%s_print' % document_class.__name__
-          , 'permissions'   : (
-              Permissions.View, )
+        , { 'id'            : 'history'
+          , 'name'          : 'History'
+          , 'category'      : 'object_view'
+          , 'action'        : 'Base_viewHistory'
+          , 'permissions'   : ( Permissions.View, )
           }
         , { 'id'            : 'metadata'
           , 'name'          : 'Metadata'
           , 'category'      : 'object_view'
           , 'action'        : 'Base_viewMetadata'
-          , 'permissions'   : (
-              Permissions.View, )
+          , 'permissions'   : ( Permissions.ManageProperties, )
+          }
+        , { 'id'            : 'print'
+          , 'name'          : 'Print'
+          , 'category'      : 'object_print'
+          , 'action'        : '%s_print' % document_class.__name__
+          , 'permissions'   : ( Permissions.View, )
           }
         )
       }
-- 
2.30.9