Projet

Général

Profil

Bug #10694

zapper l'action export_to_model quand un modèle n'a pas été défini

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

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'base_filename''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/wf/export_to_model.py", line 211, in submit_form
   209             in_backoffice = get_request() and get_request().is_in_backoffice()
   210             if self.attach_to_history:
>  211                 filename = self.model_file.base_filename
   212                 content_type = self.model_file.content_type
   213                 if self.convert_to_pdf:

  locals:
     form = <wcs.qommon.form.Form object at 0x7fae4c66add0>
     evo = <wcs.formdata.Evolution object at 0x4203550>
     formdata = <Droit-D-Interpellation id:18>
     user = <SqlUser 'Steve G\xc3\xa9rard' id:12>
     in_backoffice = True
     self = <wcs.wf.export_to_model.ExportToModel object at 0x7fae4c9de950>


Fichiers

Révisions associées

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

workflows: don't perform "export to model" if no model has been set (#10694)

Historique

#1

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

#2

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

Ack.

#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 96951c971efb9846ff2bf8c26931820a4ec4f89e
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Apr 18 17:30:55 2016 +0200

    workflows: don't perform "export to model" if no model has been set (#10694)
#4

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

  • Version cible mis à v1.42
#5

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

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

Formats disponibles : Atom PDF