Projet

Général

Profil

Bug #10667

trace après suppression de la dernière variable de workflow

Ajouté par Frédéric Péters il y a environ 8 ans. Mis à jour il y a environ 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
15 avril 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.ValueError'>', value = 'max() arg is an empty sequence'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/workflows.py", line 241, in __init__
   239         if workflow.variables_formdef:
   240             self.fields = self.workflow.variables_formdef.fields
>  241             self.max_field_id = max([lax_int(x.id) for x in self.fields or []])
   242         else:
   243             self.fields = []

  locals:
     self = <WorkflowVariablesFieldsFormDef 'Nancy en direct' id:None>
     workflow = <Workflow 'Nancy en direct' id:1>

  File "/usr/lib/python2.7/dist-packages/wcs/admin/workflows.py", line 866, in _q_traverse
   864         get_response().breadcrumb.append(('variables/', _('Variables')))
   865         self.fields = WorkflowVariablesFieldsDirectory(
>  866                 WorkflowVariablesFieldsFormDef(self.workflow))
   867         return Directory._q_traverse(self, path)
   868


Fichiers

Révisions associées

Révision 53dbcb54 (diff)
Ajouté par Frédéric Péters il y a environ 8 ans

workflows: don't break when last workflow variable is removed (#10667)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 8 ans

#2

Mis à jour par Thomas Noël il y a environ 8 ans

Yep

#3

Mis à jour par Frédéric Péters il y a environ 8 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 53dbcb54ca091754da3bb4e001848782d724524e
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 15 10:30:17 2016 +0200

    workflows: don't break when last workflow variable is removed (#10667)
#4

Mis à jour par Thomas Noël il y a environ 8 ans

  • Version cible mis à v1.41
#5

Mis à jour par Frédéric Péters il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF