From 3801e40afd55ad519bef2ee3594d66ac328bc380 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Sat, 23 Sep 2006 11:05:25 +0000
Subject: [PATCH] remove unused hideFromAddMenu method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10268 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/ERP5Type.py | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py
index 435a7707bc..f231116e71 100644
--- a/product/ERP5Type/ERP5Type.py
+++ b/product/ERP5Type/ERP5Type.py
@@ -144,9 +144,9 @@ class ERP5TypeInformation( FactoryTypeInformation,
 
     # Groups are used to classify portal types (e.g. resource).
     defined_group_list = (
-      'accounting_transaction', 'accounting_movement', 'alarm', 'balance_transaction_line',
-      'container', 'container_line', 'delivery', 'delivery_movement',
-      'discount', 'invoice', 'invoice_movement', 'item',
+      'accounting_transaction', 'accounting_movement', 'alarm',
+      'balance_transaction_line', 'container', 'container_line', 'delivery',
+      'delivery_movement', 'discount', 'invoice', 'invoice_movement', 'item',
       'order', 'order_movement', 'node', 'payment_node', 'payment_condition',
       'resource', 'supply', 'supply_path', 'transformation', 'variation',
       'sub_variation', 'web_document', 'event', 'ticket', 'dms_document'
@@ -166,15 +166,6 @@ class ERP5TypeInformation( FactoryTypeInformation,
         self.setMethodAliases({})
         return 1
 
-    security.declarePublic('hideFromAddMenu')
-    def hidenFromAddMenu(self):
-      """
-      Return only true or false if we should
-      hide from add menu
-      """
-      return self.hiden_from_add_menu
-
-
     #
     #   Agent methods
     #
@@ -627,7 +618,8 @@ class ERP5TypeInformation( FactoryTypeInformation,
         _aq_reset() # XXX We should also call it whenever we change workflow defition
       return result
 
-    security.declareProtected( Permissions.ManagePortal, 'manage_editLocalRolesForm' )
+    security.declareProtected( Permissions.ManagePortal,
+                              'manage_editLocalRolesForm' )
     def manage_editLocalRolesForm( self, REQUEST, manage_tabs_message=None ):
 
         """ Show the 'Local Roles' management tab.
-- 
2.30.9