Commit 5e80649d authored by Alexandre Boeglin's avatar Alexandre Boeglin

allow to pass portal_type_list parameter to getPriceParameterDict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19226 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b04f949
......@@ -555,7 +555,8 @@ class Resource(XMLMatrix, Variated):
security.declareProtected(Permissions.AccessContentsInformation,
'getPriceParameterDict')
def getPriceParameterDict(self, context=None, REQUEST=None, **kw):
def getPriceParameterDict(self, context=None, REQUEST=None,
portal_type_list=None, **kw):
"""
Get all pricing parameters from Predicate.
"""
......@@ -574,7 +575,8 @@ class Resource(XMLMatrix, Variated):
# Generate the predicate mapped value
# to get some price values.
domain_tool = getToolByName(self,'portal_domains')
portal_type_list = self.getPortalSupplyPathTypeList()
if portal_type_list is None:
portal_type_list = self.getPortalSupplyPathTypeList()
# Generate the fake context
tmp_context = self.asContext(context=context,
......
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