From 879524998052ac1695d604faee612b1cacc0e647 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 9 Nov 2009 16:06:05 +0000
Subject: [PATCH] add a title in delivery solvers.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30438 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/DeliverySolver/FIFO.py        | 2 ++
 product/ERP5/DeliverySolver/FILO.py        | 2 ++
 product/ERP5/interfaces/delivery_solver.py | 4 +++-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/DeliverySolver/FIFO.py b/product/ERP5/DeliverySolver/FIFO.py
index 7e35dd71b3..aa24e65259 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 c352e68e84..a2a56a64ae 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 6c58471bae..5b9e617b89 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
-- 
2.30.9