From 0c531705d043734dba241ef1cb825941fb9f13af Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Tue, 6 May 2008 05:57:13 +0000
Subject: [PATCH] Accept and ignore "fast".

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20879 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Movement.py | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py
index cfa6f1f8fb..7c4e37e049 100644
--- a/product/ERP5/Document/Movement.py
+++ b/product/ERP5/Document/Movement.py
@@ -280,9 +280,11 @@ class Movement(XMLObject, Amount):
 
   security.declareProtected( Permissions.AccessContentsInformation,
                              'getTotalPrice')
-  def getTotalPrice(self, default=None, context=None, REQUEST=None, **kw):
-    """
-      Get the Total Price in the context.
+  def getTotalPrice(self, default=None, context=None, REQUEST=None, fast=None,
+                    **kw):
+    """Return the total price in the context.
+
+    The optional parameter "fast" is for compatibility, and will be ignored.
     """
     # see getPrice
     if isinstance(default, Base) and context is None:
@@ -293,8 +295,9 @@ class Movement(XMLObject, Amount):
       LOG('ERP5', WARNING, msg)
       context = default
       default = None
-    return self._getTotalPrice(context=self.asContext(context=context,
-                                REQUEST=REQUEST, **kw),**kw)
+    
+    tmp_context = self.asContext(context=context, REQUEST=REQUEST, **kw)
+    return self._getTotalPrice(context=tmp_context, **kw)
 
   security.declareProtected( Permissions.AccessContentsInformation,
                              'getTotalQuantity')
-- 
2.30.9