Bug #10667
trace après suppression de la dernière variable de workflow
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
Historique
Mis à jour par Frédéric Péters il y a environ 8 ans
- Fichier 0001-workflows-don-t-break-when-last-workflow-variable-is.patch 0001-workflows-don-t-break-when-last-workflow-variable-is.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
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)
workflows: don't break when last workflow variable is removed (#10667)