Projet

Général

Profil

Bug #8925

Bug d'affichage sur un utilisateur incomplètement initialisé (parce que la création du profil par check_hobos a échouée)

Ajouté par Benjamin Dauvergne il y a plus de 8 ans. Mis à jour il y a 9 mois.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
09 novembre 2015
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

Trace attachée.


Fichiers

bug-mail (18,7 ko) bug-mail Benjamin Dauvergne, 09 novembre 2015 11:45

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 8 ans

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'get''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/formdata.py", line 75, in get_dict_with_varnames
    73                     new_data['var_%s_raw' % field.varname] = raw_value
    74             if field.store_structured_value:
>   75                 structured_value = data.get('%s_structured' % field.id)
    76                 if structured_value:
    77                     for k, v in structured_value.items():

  locals:.
     raw_value = None
     new_data = {'f0': '', 'field_civilite': '', 'var_zipcode': '', 'field_code_postal': '', 'f_zipcode': '', 'var_title': '', 'var_first_name': '', 'var_last_name': '', 'var_email': '', 'var_phone': '', 'field_nom': '', 'field_commune': '', 'var_civilite_raw': '', 'field_adresse_electronique': '', 'f_last_name': '', 'var_city': '', 'var_civilite': '', 'f_phone': '', 'var_mobile': '', 'f_mobile': '', 'var_address': '', 'f_city': '', 'f_email': '', 'field_adresse': '', 'f_title': '', 'field_prenom': '', 'f_address': '', 'field_telephone': '', 'f_first_name': '', 'field_mobile': ''}
     fields = [<fields.StringField object at 0x33b0890>, <fields.StringField object at 0x33b0310>, <fields.StringField object at 0x319f6d0>, <fields.EmailField object at 0x319f990>, <fields.StringField object at 0x319f4d0>, <fields.StringField object at 0x319f710>, <fields.StringField object at 0x319f850>, <fields.StringField object at 0x319ff90>, <fields.StringField object at 0x319fad0>, <fields.ItemField object at 0x319fa90>, <fields.StringField object at 0x319f310>, <fields.StringField object at 0x319f590>, <fields.EmailField object at 0x319fe10>, <fields.StringField object at 0x319f750>, <fields.StringField object at 0x319f790>, <fields.StringField object at 0x319f5d0>, <fields.StringField object at 0x319f8d0>, <fields.StringField object at 0x319fe50>]
     formdata = None
     value = ''
     varnames_only = False
     field = <fields.ItemField object at 0x319fa90>
     identifier_name = 'civilite'
     data = None
     display_value = ''
#2

Mis à jour par Frédéric Péters il y a 9 mois

  • Statut changé de Nouveau à Fermé
  • Planning mis à Non

Le code a beaucoup bougé depuis et c'est corrigé, l'accès à data ne se fait pas si data est None,

            if data is not None:
                structured_value = field.get_structured_value(data)

Formats disponibles : Atom PDF