Commit 0d561ff7 authored by Jérome Perrin's avatar Jérome Perrin

Remove dependancy on Folder, SimulationTool is just a BaseTool



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12213 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d115710c
......@@ -31,7 +31,6 @@ from Products.CMFCore.utils import getToolByName
from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile
from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type import Permissions
from Products.ERP5Type.Tool.BaseTool import BaseTool
......@@ -63,7 +62,6 @@ class SimulationTool (BaseTool):
-
TODO: XXX please use BaseTool
"""
id = 'portal_simulation'
meta_type = 'ERP5 Simulation Tool'
......@@ -76,18 +74,9 @@ class SimulationTool (BaseTool):
#
# ZMI methods
#
manage_options = ( ( { 'label' : 'Overview'
, 'action' : 'manage_overview'
}
,
)
+ Folder.manage_options
)
security.declareProtected( Permissions.ManagePortal, 'manage_overview' )
manage_overview = DTMLFile( 'explainSimulationTool', _dtmldir )
# Filter content (ZMI))
def filtered_meta_types(self, user=None):
# Filters the list of available meta types.
all = SimulationTool.inheritedAttribute('filtered_meta_types')(self)
......
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