Bug #46678
inspect vs evolution part != LinkedFormdataEvolutionPart
Début:
16 septembre 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'AttributeError'>', value = ''JournalEvolutionPart' object has no attribute 'formdef'' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/formdata.py", line 1233, in iter_target_datas 1231 for part in self.iter_evolution_parts(): 1232 is_linked = isinstance(part, LinkedFormdataEvolutionPart) > 1233 part_identifier = '%s:%s' % (part.formdef.xml_root_node, part.formdef.url_name) 1234 if is_linked and object_type: 1235 # looking for an object of a specific type (workflow action) locals: CardDef = <class 'wcs.carddef.CardDef'> FormDef = <class 'wcs.formdef.FormDef'> LinkedFormdataEvolutionPart = <class 'wcs.wf.create_formdata.LinkedFormdataEvolutionPart'> LoggedError = <class 'wcs.logged_errors.LoggedError'> data_ids = [('carddef:communes-13', '150'), ('directions', 'DJS | Direction de La Jeunesse et des Sports'), ('carddef:13ave-directions-traitantes', '48')] data_source = {'type': 'carddef:13ave-directions-traitantes'} field = <ItemField bo4e05a84e-b373-4ed0-b795-307e8458ac63 'Direction traitante'> is_linked = False linked_id = '48' object_type = None objectdef = None parent = None part = <wcs.wf.register_comment.JournalEvolutionPart object at 0x7fc67be51208> self = <Contacter-Le-Departement 'Contacter le Département - n°50-95' id:95> status_item = None
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-misc-avoid-unrelated-evolution-parts-when-looking-fo.patch 0001-misc-avoid-unrelated-evolution-parts-when-looking-fo.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Fichier 0001-misc-avoid-unrelated-evolution-parts-when-looking-fo.patch 0001-misc-avoid-unrelated-evolution-parts-when-looking-fo.patch ajouté
(version à la logique corrigée)
Mis à jour par Serghei Mihai il y a plus de 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 426cf599f286d01e613b23da8e4a47c775a2a8f4 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Sep 16 09:28:51 2020 +0200 misc: avoid unrelated evolution parts when looking for related data (#46678)
Mis à jour par Frédéric Péters il y a plus de 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: avoid unrelated evolution parts when looking for related data (#46678)