Commit 03d86a21 authored by Jérome Perrin's avatar Jérome Perrin

add a FIXME for bad use of asContext (passing portal_type as parameter breaks everything)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 784c292c
...@@ -125,7 +125,11 @@ for l in result:\n ...@@ -125,7 +125,11 @@ for l in result:\n
parent_specific_reference=l.parent_specific_reference,\n parent_specific_reference=l.parent_specific_reference,\n
translated_simulation_state_title =\n translated_simulation_state_title =\n
o.getTranslatedSimulationStateTitle(),\n o.getTranslatedSimulationStateTitle(),\n
\n
# FIXME: overriding \'portal_type\' in asContext is clearly a bad idea, as many methods are storred on the portal type \n
# (hence the translated_simulation_state_title hack) -j\xc3\xa9rome\n
portal_type=l.portal_type,\n portal_type=l.portal_type,\n
\n
account_uid=l.account_uid, )\n account_uid=l.account_uid, )\n
new_result.append(c)\n new_result.append(c)\n
\n \n
......
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