Commit 5fa0150e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

explicitly cast to list before calling append(), because...

explicitly cast to list before calling append(), because ERP5Site.getPortalXxxList() (that can be called inside) returns tuple for now.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44986 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6d537e2
...@@ -82,10 +82,10 @@ class TransformedResource(AmountGeneratorLine): ...@@ -82,10 +82,10 @@ class TransformedResource(AmountGeneratorLine):
return result return result
def getMappedValueBaseCategoryList(self): def getMappedValueBaseCategoryList(self):
result = self._baseGetMappedValueBaseCategoryList() result = list(self._baseGetMappedValueBaseCategoryList())
if not result: if not result:
if not self.hasCellContent(base_id='variation'): if not self.hasCellContent(base_id='variation'):
result = self.getVariationRangeBaseCategoryList() # The current resource variation result = list(self.getVariationRangeBaseCategoryList()) # The current resource variation
if 'trade_phase' not in result: if 'trade_phase' not in result:
result.append('trade_phase') result.append('trade_phase')
return result return result
......
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