Project

General

Profile

Bug #60675

quelque part des tirets autorisés dans un identifiant de champ

Added by Frédéric Péters 13 days ago. Updated 11 days ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
14 Jan 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

Avec résultat dans l'inspect dans la constition des clés,

Exception:
  type = '<class 'KeyError'>', value = ''form_var_corbeille_de_rue_pleine_var_dechets-au-sol''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/substitution.py", line 234, in __getitem__
   232     def __getitem__(self, key):
   233         if not self.valid_key_regex.match(key):
>  234             raise KeyError(key)
   235         parts = key.split('_')
   236         try:

  locals:
     key = 'form_var_corbeille_de_rue_pleine_var_dechets-au-sol'

[...]

     sub_key = 'dechets-au-sol'

Files

Associated revisions

Revision f0c3e930 (diff)
Added by Frédéric Péters 11 days ago

misc: do not announce invalid varnames as ok (#60675)

History

#1

Updated by Frédéric Péters 13 days ago

https://demarches-montoulouse.cutm-publik-preprod.nfrance.com/backoffice/forms/blocks/37/9757fd50-b0ff-1fff-9239-61eb8635025c/

mais valider ce champ affiche bien l'erreur "uniquement des lettres, des chiffres et le tiret bas (_)" pour la valeur "dechets-au-sol".

(???)

#3

Updated by Frédéric Péters 13 days ago

  • Assignee set to Frédéric Péters
  • Status changed from Nouveau to En cours
#4

Updated by Frédéric Péters 13 days ago

#5

Updated by Nicolas Roche 13 days ago

  • Status changed from Solution proposée to Solution validée

Ack

#6

Updated by Frédéric Péters 11 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit f0c3e9306f4424622cbf32dfea018cb65bcc4baf
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Jan 14 14:53:20 2022 +0100

    misc: do not announce invalid varnames as ok (#60675)
#7

Updated by Frédéric Péters 11 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF