From 15b109a651afe303553a42465fdc9d95e544eb6c Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 9 Nov 2009 17:16:54 +0000
Subject: [PATCH] rename FILO to LIFO, that is more widely used.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30445 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 bt5/erp5_simulation/PathTemplateItem/portal_solvers/1/1.xml | 2 +-
 .../portal_types/Quantity%20Split%20Solver.xml              | 2 +-
 bt5/erp5_simulation/bt/revision                             | 2 +-
 product/ERP5/DeliverySolver/DeliverySolver.py               | 2 +-
 product/ERP5/DeliverySolver/{FILO.py => LIFO.py}            | 6 +++---
 product/ERP5/Document/Movement.py                           | 2 +-
 product/ERP5/Tool/SolverTool.py                             | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)
 rename product/ERP5/DeliverySolver/{FILO.py => LIFO.py} (94%)

diff --git a/bt5/erp5_simulation/PathTemplateItem/portal_solvers/1/1.xml b/bt5/erp5_simulation/PathTemplateItem/portal_solvers/1/1.xml
index 3b22fa3795..03408845b4 100644
--- a/bt5/erp5_simulation/PathTemplateItem/portal_solvers/1/1.xml
+++ b/bt5/erp5_simulation/PathTemplateItem/portal_solvers/1/1.xml
@@ -78,7 +78,7 @@
         </item>
         <item>
             <key> <string>delivery_solver</string> </key>
-            <value> <string>FILO Solver</string> </value>
+            <value> <string>LIFO Solver</string> </value>
         </item>
         <item>
             <key> <string>delivery_solver_id</string> </key>
diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml
index 31cbc35378..afc776f39f 100644
--- a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml
+++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Quantity%20Split%20Solver.xml
@@ -32,7 +32,7 @@
             <value>
               <tuple>
                 <string>FIFO Solver</string>
-                <string>FILO Solver</string>
+                <string>LIFO Solver</string>
               </tuple>
             </value>
         </item>
diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision
index f11c82a4cb..9a037142aa 100644
--- a/bt5/erp5_simulation/bt/revision
+++ b/bt5/erp5_simulation/bt/revision
@@ -1 +1 @@
-9
\ No newline at end of file
+10
\ No newline at end of file
diff --git a/product/ERP5/DeliverySolver/DeliverySolver.py b/product/ERP5/DeliverySolver/DeliverySolver.py
index 01828d7926..5e27783699 100644
--- a/product/ERP5/DeliverySolver/DeliverySolver.py
+++ b/product/ERP5/DeliverySolver/DeliverySolver.py
@@ -40,7 +40,7 @@ class DeliverySolver:
     Can be used to:
 
      * distribute
-     * queue (FIFO, FILO, ...)
+     * queue (FIFO, LIFO, ...)
      * etc
   """
 
diff --git a/product/ERP5/DeliverySolver/FILO.py b/product/ERP5/DeliverySolver/LIFO.py
similarity index 94%
rename from product/ERP5/DeliverySolver/FILO.py
rename to product/ERP5/DeliverySolver/LIFO.py
index a2a56a64ae..533b0b84b3 100644
--- a/product/ERP5/DeliverySolver/FILO.py
+++ b/product/ERP5/DeliverySolver/LIFO.py
@@ -32,16 +32,16 @@ from Products.ERP5Type import interfaces
 
 from FIFO import FIFO
 
-class FILO(FIFO):
+class LIFO(FIFO):
   """
-  The FILO solver reduces deliveted quantity by reducing the quantity of
+  The LIFO solver reduces deliveted quantity by reducing the quantity of
   simulation movements from the first order.
   """
 
   # Declarative interfaces
   zope.interface.implements(interfaces.IDeliverySolver)
 
-  title = 'FILO Solver'
+  title = 'LIFO Solver'
 
   def _getSimulationMovementList(self):
     """
diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py
index 4c68518b73..db70699b8e 100644
--- a/product/ERP5/Document/Movement.py
+++ b/product/ERP5/Document/Movement.py
@@ -355,7 +355,7 @@ class Movement(XMLObject, Amount):
 
       For outgoing quantities, it is the responsability of database
       to calculate asset prices based on calculation rules (FIFO,
-      FILO, AVERAGE, etc.).
+      LIFO, AVERAGE, etc.).
     """
     # This is what we use for accounting
     result = self.getSourceTotalAssetPrice()
diff --git a/product/ERP5/Tool/SolverTool.py b/product/ERP5/Tool/SolverTool.py
index 4800505f10..c848fcc528 100644
--- a/product/ERP5/Tool/SolverTool.py
+++ b/product/ERP5/Tool/SolverTool.py
@@ -95,7 +95,7 @@ class SolverTool(BaseTool):
     """
     # XXX Hardcoded for now. We need a new registration system for
     # delivery solvers.
-    return ['FIFO', 'FILO', 'MinPrice',]
+    return ['FIFO', 'LIFO', 'MinPrice',]
 
   def getDeliverySolverTranslatedItemList(self, class_name_list=None):
     """
-- 
2.30.9