[Erp5-report] r20879 - /erp5/trunk/products/ERP5/Document/Movement.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 6 07:57:13 CEST 2008


Author: yo
Date: Tue May  6 07:57:13 2008
New Revision: 20879

URL: http://svn.erp5.org?rev=20879&view=rev
Log:
Accept and ignore "fast".

Modified:
    erp5/trunk/products/ERP5/Document/Movement.py

Modified: erp5/trunk/products/ERP5/Document/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Movement.py?rev=20879&r1=20878&r2=20879&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py Tue May  6 07:57:13 2008
@@ -280,9 +280,11 @@
 
   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 @@
       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')




More information about the Erp5-report mailing list