Commit a2c46a91 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added interface declaration

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30394 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0e6e9f1
......@@ -30,7 +30,7 @@
import zope.interface
from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject
from Products.CMFActivity.ActiveProcess import ActiveProcess
......@@ -73,6 +73,12 @@ class SolverProcess(XMLObject, ActiveProcess):
, PropertySheet.DublinCore
)
# Declarative interfaces
zope.interface.implements(interfaces.ISolver,
interfaces.IConfigurable,
)
# Implementation
def buildTargetSolverList(self):
"""
Builds target solvers from solver decisions
......@@ -122,6 +128,7 @@ class SolverProcess(XMLObject, ActiveProcess):
for configuration_kw in configuration_list:
solver_instance.updateConfiguration(**configuration_kw)
# ISolver implementation
# Solver Process Workflow Interface
# NOTE: how can we consider that a workflow defines or provides an interface ?
def solve(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