From 354347c58ae586e446969536f1c37a3f77293f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 27 Apr 2010 11:27:29 +0000 Subject: [PATCH] SubversionTool is a base tool, so it does not need all those methods git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34815 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Subversion/Tool/SubversionTool.py | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py index 554331a333..254a32a6ed 100644 --- a/product/ERP5Subversion/Tool/SubversionTool.py +++ b/product/ERP5Subversion/Tool/SubversionTool.py @@ -203,37 +203,9 @@ class SubversionTool(BaseTool, UniqueObject, Folder): # Declarative Security security = ClassSecurityInfo() - # - # ZMI methods - # - manage_options = ( ( { 'label' : 'Overview' - , 'action' : 'manage_overview' - } - , - ) - + Folder.manage_options - ) - security.declareProtected( Permissions.ManagePortal, 'manage_overview' ) manage_overview = DTMLFile( 'explainSubversionTool', _dtmldir ) - # Filter content (ZMI)) - def __init__(self): - return Folder.__init__(self, SubversionTool.id) - - - def filtered_meta_types(self, user=None): - """ - Filter content (ZMI)) - Filters the list of available meta types. - """ - all = SubversionTool.inheritedAttribute('filtered_meta_types')(self) - meta_types = [] - for meta_type in self.all_meta_types(): - if meta_type['name'] in self.allowed_types: - meta_types.append(meta_type) - return meta_types - # path is the path in svn working copy # return edit_path in zodb to edit it # return '#' if no zodb path is found -- 2.30.9