diff --git a/product/ERP5/DeliverySolver/FIFO.py b/product/ERP5/DeliverySolver/FIFO.py index 7e35dd71b3b00a45b2284679a8698b66e393faee..aa24e652590d67584720a7e1dc8dfddff33b2533 100644 --- a/product/ERP5/DeliverySolver/FIFO.py +++ b/product/ERP5/DeliverySolver/FIFO.py @@ -40,6 +40,8 @@ class FIFO(DeliverySolver): # Declarative interfaces zope.interface.implements(interfaces.IDeliverySolver) + title = 'FIFO Solver' + # IDeliverySolver Implementation def __init__(self, simulation_movement_list): """ diff --git a/product/ERP5/DeliverySolver/FILO.py b/product/ERP5/DeliverySolver/FILO.py index c352e68e84a321ccb7a68cc9273d7ea443159eef..a2a56a64ae239b3afc93b7db4bc61c3402f8d888 100644 --- a/product/ERP5/DeliverySolver/FILO.py +++ b/product/ERP5/DeliverySolver/FILO.py @@ -41,6 +41,8 @@ class FILO(FIFO): # Declarative interfaces zope.interface.implements(interfaces.IDeliverySolver) + title = 'FILO Solver' + def _getSimulationMovementList(self): """ Returns a list of simulation movement sorted from the first order. diff --git a/product/ERP5/interfaces/delivery_solver.py b/product/ERP5/interfaces/delivery_solver.py index 6c58471bae6d311eed04bc710447460de66164d1..5b9e617b897624c3e8bb1e059b0f3206d5600860 100644 --- a/product/ERP5/interfaces/delivery_solver.py +++ b/product/ERP5/interfaces/delivery_solver.py @@ -27,7 +27,7 @@ # ############################################################################## -from zope.interface import Interface +from zope.interface import Interface, Attribute class IDeliverySolver(Interface): """Delivery Solver interface specification @@ -50,6 +50,8 @@ class IDeliverySolver(Interface): solver operates """ + title = Attribute('The title of the delivery solver.') + def getTotalQuantity(): """ Return the total quantity by summing the quantity of each simulation