Commit 4c7733bd authored by Jean-Paul Smets's avatar Jean-Paul Smets

renamed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30391 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 538884dd
...@@ -27,11 +27,13 @@ ...@@ -27,11 +27,13 @@
# #
############################################################################## ##############################################################################
import zope.interface
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile from Globals import InitializeClass, DTMLFile
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions, interfaces
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5 import _dtmldir from Products.ERP5 import _dtmldir
...@@ -61,6 +63,11 @@ class SolverTool(BaseTool): ...@@ -61,6 +63,11 @@ class SolverTool(BaseTool):
security.declareProtected( Permissions.ManagePortal, 'manage_overview' ) security.declareProtected( Permissions.ManagePortal, 'manage_overview' )
manage_overview = DTMLFile( 'explainSolverTool', _dtmldir ) manage_overview = DTMLFile( 'explainSolverTool', _dtmldir )
# Declarative interfaces
zope.interface.implements(interfaces.IDeliverySolverFactory,
)
# Implementation
def filtered_meta_types(self, user=None): def filtered_meta_types(self, user=None):
# Filters the list of available meta types. # Filters the list of available meta types.
all = SolverTool.inheritedAttribute('filtered_meta_types')(self) all = SolverTool.inheritedAttribute('filtered_meta_types')(self)
...@@ -74,11 +81,28 @@ class SolverTool(BaseTool): ...@@ -74,11 +81,28 @@ class SolverTool(BaseTool):
""" show the content in the left pane of the ZMI """ """ show the content in the left pane of the ZMI """
return self.objectValues() return self.objectValues()
def buildSolvedSimulationMovement(self, movement): # ISolverTool implementation
def newDeliverySolver(self, class_name, movement_list):
"""
"""
raise NotImplementedError
def getDeliverySolverClassNameList(self):
"""
"""
raise NotImplementedError
def getDeliverySolverTranslatedItemList(self, class_name_list=None):
"""
""" """
Builds a Temp Simulation Movement raise NotImplementedError
Update a given simulation movement which has been def getDeliverySolverTranslatedTitle(self, class_name):
affected by the SolverProcess
""" """
"""
raise NotImplementedError
def getDeliverySolverTranslatedDescription(self, class_name):
"""
"""
raise NotImplementedError
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
from zope.interface import Interface from zope.interface import Interface
class ISolverTool(Interface): class IDeliverySolverFactory(Interface):
"""Solver Tool interface specification """Delivery Solver Factory interface specification
Solver Tool provides methods to create delivery IDeliverySolverFactory provides methods to create delivery
solver instances and retrieve metadata related to delivery solver instances and retrieve metadata related to delivery
solvers. solvers.
......
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