Project

General

Profile

Bug #13815

Conditions de sortie de page incomplètes

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

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

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Ça donne une trace à l'export mais avant tout, ça ne devrait pas être autorisé.

Exception:
  type = '<type 'exceptions.TypeError'>', value = 'coercing to Unicode: need string or buffer, NoneType found'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/fields.py", line 1445, in post_conditions_export_to_xml
  1443                     post_condition['condition'], charset, 'replace')
  1444             ET.SubElement(condition_node, 'error_message').text = unicode(
> 1445                     post_condition['error_message'], charset, 'replace')
  1446
  1447     def fill_admin_form(self, form):

  locals:
     node = <Element 'field' at 0x7f49e962f2d0>
     post_condition = {'error_message': None, 'condition': 'form_var_Permis == "Oui"'}
     self = <wcs.fields.PageField object at 0x4af06d0>
     charset = 'utf-8'
     condition_node = <Element 'post_condition' at 0x7f49e962fc10>
     conditions_node = <Element 'post_conditions' at 0x7f49e8c8f3d0>
     include_id = True
...

Files

Associated revisions

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

admin: require both condition and error message in post conditions (#13815)

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

fields: don't crash exporting incomplete post-condition (#13815)

History

#2

Updated by Thomas Noël 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 db808c847d733ce2ec4b0a0531662929e1a0de4b
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Nov 1 15:50:47 2016 +0100

    fields: don't crash exporting incomplete post-condition (#13815)

commit 0de7b496473948a2a43ccf633923846904f4551e
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Nov 1 15:48:01 2016 +0100

    admin: require both condition and error message in post conditions (#13815)
#5

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

  • Target version set to v1.64
#6

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

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

Also available in: Atom PDF