Commit 9677c09e authored by Jérome Perrin's avatar Jérome Perrin

fix supply_path_type and portal_type arguments clash


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ba7185f
...@@ -682,7 +682,8 @@ class Resource(XMLMatrix, Variated): ...@@ -682,7 +682,8 @@ class Resource(XMLMatrix, Variated):
portal = self.getPortalObject() portal = self.getPortalObject()
domain_tool = getToolByName(portal, 'portal_domains') domain_tool = getToolByName(portal, 'portal_domains')
if supply_path_type is None: if supply_path_type is None:
portal_type_list = portal.getPortalSupplyPathTypeList() portal_type_list = kw.pop('portal_type',
portal.getPortalSupplyPathTypeList())
elif isinstance(supply_path_type, (list, tuple)): elif isinstance(supply_path_type, (list, tuple)):
portal_type_list = supply_path_type portal_type_list = supply_path_type
else: else:
......
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