aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jm2l/templates/Interventions/Interventions.mako4
1 files changed, 2 insertions, 2 deletions
diff --git a/jm2l/templates/Interventions/Interventions.mako b/jm2l/templates/Interventions/Interventions.mako
index 8877efc..f917e63 100644
--- a/jm2l/templates/Interventions/Interventions.mako
+++ b/jm2l/templates/Interventions/Interventions.mako
@@ -65,7 +65,7 @@ elif Type=='T':
<fieldset>
<legend>Vos ${CurTitles} programmés pour 2015</legend>
<%
-Selection = filter(lambda x:(x.event_type==CurEventType and x.for_year==2015), uprofil.events)
+Selection = [ x for x in uprofil.events if (x.event_type==CurEventType and x.for_year==2015) ]
HeadHistTitle = u"L'historique de vos %s ( %d ) " % ( CurTitles, len(Selection) )
NothingTitle = u"Vous n'avez pas sollicité d'intervention %s." % CurEvent
%>
@@ -224,7 +224,7 @@ NothingTitle = u"Vous n'avez pas sollicité d'intervention %s." % CurEvent
<fieldset>
<legend>Historique</legend>
<%
-Selection = filter(lambda x:(x.event_type==CurEventType and x.for_year!=2015), uprofil.events)
+Selection = [ x for x in uprofil.events if (x.event_type==CurEventType and x.for_year!=2015) ]
HeadHistTitle = u"L'historique de vos %s ( %d ) " % ( CurTitles, len(Selection) )
NothingTitle = u"Désolé, Il n'y a rien dans l'historique vous concernant."
%>