Project

General

Profile

Bug #10694

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

Added by Frédéric Péters almost 5 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
Start date:
18 Apr 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
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>


Files

Associated revisions

Revision 96951c97 (diff)
Added by Frédéric Péters almost 5 years ago

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

History

#1

Updated by Frédéric Péters almost 5 years ago

#2

Updated by Benjamin Dauvergne almost 5 years ago

Ack.

#3

Updated by Frédéric Péters almost 5 years ago

  • Status changed from En cours to 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

Updated by Frédéric Péters almost 5 years ago

  • Target version set to v1.42
#5

Updated by Frédéric Péters over 4 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF