comparison 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
comparison
equal deleted inserted replaced
956:dabecab10faa 957:67bf14c91d5c
34 self.profile = None 34 self.profile = None
35 self.jid = None 35 self.jid = None
36 self.uuid = unicode(shortuuid.uuid()) 36 self.uuid = unicode(shortuuid.uuid())
37 self.identities = data_objects.Identities() 37 self.identities = data_objects.Identities()
38 self.csrf_token = unicode(shortuuid.uuid()) 38 self.csrf_token = unicode(shortuuid.uuid())
39 self.flags = set()
39 40
40 41
41 class ISATGuestSession(Interface): 42 class ISATGuestSession(Interface):
42 id = Attribute("UUID of the guest") 43 id = Attribute("UUID of the guest")
43 data = Attribute("data associated with the guest") 44 data = Attribute("data associated with the guest")