Commit 9537c8a1 authored by Jean-Paul Smets's avatar Jean-Paul Smets

SolverSelection is a generic property sheet which can be used to associate a...

SolverSelection is a generic property sheet which can be used to associate a document to a list of solver portal types. It will be used in Divergence Testers (to provide a list of applicable solvers to solve a given type of divergence). It will be used in Resolution Decision to (to specify which solver to use).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29996 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7a2fddd
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2006-2008 Nexedi SA and Contributors. All Rights Reserved.
......@@ -59,6 +60,7 @@ class PropertyDivergenceTester(XMLObject):
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.DivergenceTester
, PropertySheet.SolverSelection
)
def test(self, simulation_movement):
......
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2006-2008 Nexedi SA and Contributors. All Rights Reserved.
# Rafael Monnerat <rafael@nexedi.com>
# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-a
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
......@@ -28,17 +28,15 @@
##############################################################################
class DivergenceTester:
class SolverSelection:
"""
Divergence Tester are use for the divergence testers.
Solver Selection provides provides properties to
store a selection of solver portal types. It uses
for now lines property type but will later use
categories (since portal types are portal types).
"""
_properties = (
{ 'id' : 'tested_property',
'description' : 'Property used to Test',
'type' : 'lines',
'default' : (),
'mode' : 'w' },
{ 'id' : 'delivery_solver',
'description' : 'Applicable Deliver Solver Portal Types',
'type' : 'lines',
......@@ -49,9 +47,4 @@ class DivergenceTester:
'type' : 'lines',
'default' : (),
'mode' : 'w' },
{ 'id' : 'matching_provider',
'description' : 'Defines whether a divergence tester acts as a matching provider.',
'type' : 'boolean',
'default' : 0,
'mode' : 'rw' },
)
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