Projet

Général

Profil

0001-backoffice-include-all-event-lines-in-trace-history-.patch

Frédéric Péters, 19 octobre 2021 21:53

Télécharger (2,27 ko)

Voir les différences:

Subject: [PATCH] backoffice: include all event lines in trace history (#57872)

 wcs/backoffice/management.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
wcs/backoffice/management.py
3187 3187
            r += htmltext('<ul class="form-inspector biglist">')
3188 3188
            wf_status = None
3189 3189
            status_admin_base_url = '#'
3190
            last_event_line = None
3190 3191
            for evolution in self.filled.evolution:
3191 3192
                if evolution.status and evolution.status != wf_status:
3192 3193
                    for part in evolution.parts or []:
......
3196 3197
                                    htmltext('<li><span class="event">%s</span></li>')
3197 3198
                                    % part.get_event_label()
3198 3199
                                )
3200
                                last_event_line = part
3199 3201
                                break
3200 3202
                    try:
3201 3203
                        status = self.filled.formdef.workflow.get_status(evolution.status)
......
3214 3216
                    )
3215 3217
                if evolution.status:
3216 3218
                    wf_status = evolution.status
3217
                first_part = True
3218 3219
                for part in evolution.parts or []:
3219 3220
                    if isinstance(part, ActionsTracingEvolutionPart):
3220
                        if not first_part and part.actions:
3221
                        if part.actions and part != last_event_line:
3222
                            last_event_line = part
3221 3223
                            r += htmltext('<li><span class="event">%s</span></li>') % part.get_event_label()
3222
                        first_part = False
3223 3224
                        for action_ts, action_key, action_id in part.actions:
3224 3225
                            action_label = action_classes.get(action_key, action_key)
3225 3226
                            try:
3226
-