Bug #1405
Quixote Traceback (AttributeError: StringField instance has no attribute 'variable')
0%
Description
When I started to activate SAML support in wcs and tried my first login I faced this bug:
Exception: type = '<type 'exceptions.AttributeError'>', value = 'StringField instance has no attribute 'variable'' Stack trace (most recent call first): File "/usr/lib/pymodules/python2.6/wcs/formdata.py", line 38, in get_dict_with_varnames 36 value = field.label 37 # add it as f$n$ > 38 if data is not None or not field.variable: 39 new_data['f%s' % field.id] = value 40
Our site is running this version: wcs 1.5+svn2182-1squeeze1auf1 (Debian)
Historique
Mis à jour par Jean Christophe André il y a environ 12 ans
Changing field.variable
to field.varname
solved the problem. Thanks Fred. ;-)
This bug can be closed as far as I am concerned.
Mis à jour par Frédéric Péters il y a environ 12 ans
C'est corrigé (s/variable/varname/), en d54f36b1, par contre je m'interroges sur la nécessité de ce "or not..."; à investiguer.
Mis à jour par Frédéric Péters il y a environ 12 ans
Pour référence ça vient de https://dev.entrouvert.org/projects/wcs/repository/revisions/aee0f8e
Mis à jour par Thomas Noël il y a environ 12 ans
Frédéric Péters a écrit :
(...) je m'interroges sur la nécessité de ce "or not..."; à investiguer.
Pas de souvenirs de la part de Benjamin (qui a commité cette modif), je suis pour retirer le "or not ...".
Mis à jour par Frédéric Péters il y a environ 12 ans
- Statut changé de Nouveau à Fermé
Je viens d'annuler les différentes modifications au formdata.py qui se trouvaient (par erreur?) dans le commit de Benjamin.