Commit 00602212 authored by Romain Courteaud's avatar Romain Courteaud

slapos_rss_style: stop using dropped related keys

parent 6933e371
...@@ -29,18 +29,18 @@ if follow_up_portal_type is None: ...@@ -29,18 +29,18 @@ if follow_up_portal_type is None:
context_kw = {} context_kw = {}
if context_related: if context_related:
context_kw['follow_up_default_or_child_aggregate_uid'] = context.getUid() context_kw['follow_up__uid'] = context.getUid()
data_list = [] data_list = []
for brain in portal.portal_simulation.getMovementHistoryList( for brain in portal.portal_simulation.getMovementHistoryList(
security_query=portal.portal_catalog.getSecurityQuery(), security_query=portal.portal_catalog.getSecurityQuery(),
# Limit only to listable portal types # Limit only to listable portal types
portal_type=['Web Message', 'Mail Message'], portal_type=['Web Message', 'Mail Message'],
follow_up_simulation_state = ['validated','submitted', 'suspended', 'invalidated', follow_up__simulation_state = ['validated','submitted', 'suspended', 'invalidated',
# Unfortunally Upgrade decision uses diferent states. # Unfortunally Upgrade decision uses diferent states.
'confirmed', 'started', 'stopped', 'delivered'], 'confirmed', 'started', 'stopped', 'delivered'],
only_accountable=False, only_accountable=False,
follow_up_portal_type=follow_up_portal_type, follow_up__portal_type=follow_up_portal_type,
omit_input=True, omit_input=True,
simulation_state=('started', 'stopped', 'delivered'), simulation_state=('started', 'stopped', 'delivered'),
limit=list_lines, limit=list_lines,
......
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