Bug #10687
unmark_visited_object: value = 'argument of type 'NoneType' is not iterable'
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
Historique
Mis à jour par Frédéric Péters il y a presque 8 ans
- Fichier 0001-sessions-make-sure-session.visited_objects-is-as-dic.patch 0001-sessions-make-sure-session.visited_objects-is-as-dic.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
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)
sessions: make sure session.visited_objects is as dict (#10687)