Projet

Général

Profil

Bug #10687

unmark_visited_object: value = 'argument of type 'NoneType' is not iterable'

Ajouté par Frédéric Péters il y a presque 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
18 avril 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.TypeError'>', value = 'argument of type 'NoneType' is not iterable'

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/sessions.py", line 113, in unmark_visited_object
   111     def unmark_visited_object(self, object_key):
   112         # remove from current session
>  113         if object_key in getattr(self, 'visiting_objects', {}):
   114             del self.visiting_objects[object_key]
   115         # and from others

  locals:
     self = <BasicSession at 7fae4cdabfd0: b21a00d6ba1df7b5>
     object_key = 'formdata-test-courrier-accuse-de-reception-demande-derogation-4'

  File "/usr/lib/python2.7/dist-packages/wcs/forms/common.py", line 494, in status
   492         if form and form.is_submitted() and not form.has_errors():
   493             url = self.submit(form)
>  494             get_session().unmark_visited_object(object_key)
   495             if url is None:
   496                 url = get_request().get_frontoffice_url()

Fichiers

Révisions associées

Révision 32f7f5ba (diff)
Ajouté par Frédéric Péters il y a presque 8 ans

sessions: make sure session.visited_objects is as dict (#10687)

Historique

#1

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

#2

Mis à jour par Thomas Noël il y a presque 8 ans

Ack

#3

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

  • Statut changé de En cours à Résolu (à déployer)
commit 32f7f5ba279845989dd917a162f17108f7c26ea8
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Apr 18 12:05:26 2016 +0200

    sessions: make sure session.visited_objects is as dict (#10687)
#4

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

  • Version cible mis à v1.42
#5

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

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF