Projet

Général

Profil

Bug #1405

Quixote Traceback (AttributeError: StringField instance has no attribute 'variable')

Ajouté par Jean Christophe André il y a environ 12 ans. Mis à jour il y a environ 12 ans.

Statut:
Fermé
Priorité:
Haut
Assigné à:
-
Version cible:
-
Début:
04 mai 2012
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Planning:

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

#1

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.

#2

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.

#4

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 ...".

#5

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.

Formats disponibles : Atom PDF