Commit 76064c9f authored by Sebastien Robin's avatar Sebastien Robin

the trade_phase keyword was not known by the catalog, so give

appropriate keyword to catalog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 235c1f66
...@@ -212,9 +212,13 @@ class ExplanationCache: ...@@ -212,9 +212,13 @@ class ExplanationCache:
# portal_simulation/91/1/1/1/1/1 testing_folder/17 # portal_simulation/91/1/1/1/1/1 testing_folder/17
#if kw.get('explanation_uid', None) is None: #if kw.get('explanation_uid', None) is None:
# kw['explanation_uid'] = self.getRootExplanationUidList() # kw['explanation_uid'] = self.getRootExplanationUidList()
catalog_kw = kw.copy()
if catalog_kw.has_key('trade_phase'):
catalog_kw['trade_phase_relative_url'] = catalog_kw['trade_phase']
del catalog_kw['trade_phase']
self.simulation_movement_cache[kw_tuple] = \ self.simulation_movement_cache[kw_tuple] = \
self.portal_catalog(portal_type="Simulation Movement", self.portal_catalog(portal_type="Simulation Movement",
**kw) **catalog_kw)
return self.simulation_movement_cache[kw_tuple] return self.simulation_movement_cache[kw_tuple]
......
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