Project

General

Profile

Bug #10687

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

Added by Frédéric Péters almost 5 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
Start date:
18 Apr 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
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()

Files

Associated revisions

Revision 32f7f5ba (diff)
Added by Frédéric Péters almost 5 years ago

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

History

#1

Updated by Frédéric Péters almost 5 years ago

#2

Updated by Thomas Noël almost 5 years ago

Ack

#3

Updated by Frédéric Péters almost 5 years ago

  • Status changed from En cours to 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

Updated by Frédéric Péters almost 5 years ago

  • Target version set to v1.42
#5

Updated by Frédéric Péters over 4 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF