Commit c2e57d60 authored by Nicolas Dumazet's avatar Nicolas Dumazet

and now we can remove one level of indentation and make it more readable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35977 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd68f6a4
......@@ -143,7 +143,7 @@ class SupplyChain(Path, XMLObject):
if current_supply_link is None:
# No current_supply_link defined, we need to return the last SupplyLink
return [self.getLastLink()]
else:
# Get all SupplyLink in the SupplyChain
supply_link_list = self.objectValues(
portal_type=self.supply_link_portal_type)
......@@ -160,8 +160,7 @@ class SupplyChain(Path, XMLObject):
previous_production_list.append(supply_link)
if previous_production_list != []:
previous_supply_link_list = previous_production_list
return previous_production_list
return previous_supply_link_list
security.declareProtected(Permissions.View,
......
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