Bug #11337
trace lors d'une tentative de modification d'un statut de workflow
Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
14 juin 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Description
Réproduit sur la dev Alfortville, workflow https://demarches-alfortville.dev.entrouvert.org/backoffice/workflows/22/ .
En cliquant par exemple sur le statut "Document transmis", ça crash avec la trace:
Exception: type = '<type 'exceptions.TypeError'>', value = 'is_available() got an unexpected keyword argument 'workflow'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/admin/workflows.py", line 503, in is_item_available 501 502 def is_item_available(self, item): > 503 return item.is_available(workflow=self.workflow) 504 505 def get_new_item_form(self): locals: item = <class 'modules.payments.PaymentWorkflowStatusItem'> self = <wcs.admin.workflows.WorkflowStatusPage object at 0x7f0cf9ffd690> File "/usr/lib/python2.7/dist-packages/wcs/admin/workflows.py", line 507, in get_new_item_form 505 def get_new_item_form(self): 506 form = Form(enctype='multipart/form-data', action = 'newitem') > 507 available_items = [x for x in item_classes if self.is_item_available(x)] 508 def cmp_items(x, y): 509 t = cmp(x.category and x.category[0], y.category and y.category[0])
Demandes liées
Historique
Mis à jour par Frédéric Péters il y a presque 8 ans
- Duplique Bug #11336: changement de signature de is_available ajouté