Commit 0c531705 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Accept and ignore "fast".

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20879 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78505444
...@@ -280,9 +280,11 @@ class Movement(XMLObject, Amount): ...@@ -280,9 +280,11 @@ class Movement(XMLObject, Amount):
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getTotalPrice') 'getTotalPrice')
def getTotalPrice(self, default=None, context=None, REQUEST=None, **kw): def getTotalPrice(self, default=None, context=None, REQUEST=None, fast=None,
""" **kw):
Get the Total Price in the context. """Return the total price in the context.
The optional parameter "fast" is for compatibility, and will be ignored.
""" """
# see getPrice # see getPrice
if isinstance(default, Base) and context is None: if isinstance(default, Base) and context is None:
...@@ -293,8 +295,9 @@ class Movement(XMLObject, Amount): ...@@ -293,8 +295,9 @@ class Movement(XMLObject, Amount):
LOG('ERP5', WARNING, msg) LOG('ERP5', WARNING, msg)
context = default context = default
default = None 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, security.declareProtected( Permissions.AccessContentsInformation,
'getTotalQuantity') 'getTotalQuantity')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment