Commit f8dd1d93 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove heading 'trade_phase/' in comparison if exists.


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 71de63af
......@@ -131,9 +131,9 @@ class BusinessProcess(Path, XMLObject):
if trade_phase is None:
trade_phase = set()
elif not isinstance(trade_phase, (list, tuple)):
trade_phase = set((trade_phase,))
else:
trade_phase = set(trade_phase)
trade_phase = (trade_phase,)
trade_phase = set([x.split('trade_phase/', 1)[-1] \
for x in trade_phase])
result = []
if kw.get('portal_type', None) is None:
kw['portal_type'] = self.getPortalTradeModelPathTypeList()
......
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