Bug #54368
UnboundLocalError: local variable 'answer' referenced before assignment
Début:
28 mai 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/qommon/form.py", line 1630, in __init__ 1628 self.hint = _('Please answer this simple mathematical question as proof you are not a bot.') 1629 self.add(StringWidget, 'q', required=True, attrs={'required': 'required'}) > 1630 token['answer'] = str(answer) 1631 1632 def _parse(self, request):
Misère de gens qui voudraient des captcha.
Fichiers
Révisions associées
forms: fix creation of captcha answer when using translations (#54368)
Historique
Mis à jour par Frédéric Péters il y a presque 3 ans
- Fichier 0001-forms-fix-creation-of-captcha-answer-when-using-tran.patch 0001-forms-fix-creation-of-captcha-answer-when-using-tran.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 presque 3 ans
- Fichier 0001-forms-fix-creation-of-captcha-answer-when-using-tran.patch 0001-forms-fix-creation-of-captcha-answer-when-using-tran.patch ajouté
Refait en comparant plutôt les versions traduites, histoire de ne pas réintroduire N_.
Mis à jour par Emmanuel Cazenave il y a presque 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a presque 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit bf063692b6d9e9fbcdedb28f9d37a9225ce01046 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri May 28 10:29:36 2021 +0200 forms: fix creation of captcha answer when using translations (#54368)
Mis à jour par Frédéric Péters il y a presque 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
forms: fix creation of captcha answer when using translations (#54368)