diff src/server/session_iface.py @ 957:67bf14c91d5c

server (pages): added a confirm flag on successful post: A new set is used in SATSession to keep flags. First flag is "confirm": it is set when some data have been posted (so a confirmation message can be displayed in template). If seen in session, the template "confirm" variable is set to True, and the flag is removed from session (a refresh of the page will not display the confirm message anymore).
author Goffi <goffi@goffi.org>
date Tue, 11 Jul 2017 07:46:20 +0200
parents dabecab10faa
children e59edcae4c18
line wrap: on
line diff
--- a/src/server/session_iface.py	Mon Jul 10 19:10:31 2017 +0200
+++ b/src/server/session_iface.py	Tue Jul 11 07:46:20 2017 +0200
@@ -36,6 +36,7 @@
         self.uuid = unicode(shortuuid.uuid())
         self.identities = data_objects.Identities()
         self.csrf_token = unicode(shortuuid.uuid())
+        self.flags = set()
 
 
 class ISATGuestSession(Interface):