[Erp5-report] r12213 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 22 18:33:25 CET 2007
Author: jerome
Date: Mon Jan 22 18:33:24 2007
New Revision: 12213
URL: http://svn.erp5.org?rev=12213&view=rev
Log:
Remove dependancy on Folder, SimulationTool is just a BaseTool
Modified:
erp5/trunk/products/ERP5/Tool/SimulationTool.py
Modified: erp5/trunk/products/ERP5/Tool/SimulationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/SimulationTool.py?rev=12213&r1=12212&r2=12213&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py Mon Jan 22 18:33:24 2007
@@ -31,7 +31,6 @@
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 @@
-
- TODO: XXX please use BaseTool
"""
id = 'portal_simulation'
meta_type = 'ERP5 Simulation Tool'
@@ -76,26 +74,17 @@
#
# 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)
- 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
+ # Filters the list of available meta types.
+ all = SimulationTool.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
def tpValues(self) :
""" show the content in the left pane of the ZMI """
More information about the Erp5-report
mailing list