Commit 354347c5 authored by Jérome Perrin's avatar Jérome Perrin

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
parent e5ec9b88
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment