diff src/server/constants.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 c7fba7709d05
line wrap: on
line diff
--- a/src/server/constants.py	Mon Jul 10 19:10:31 2017 +0200
+++ b/src/server/constants.py	Tue Jul 11 07:46:20 2017 +0200
@@ -58,6 +58,9 @@
     PAGES_ACCESS_ADMIN = u"admin"  # only profiles set in admins_list can access the page
     PAGES_ACCESS_ALL = (PAGES_ACCESS_NONE, PAGES_ACCESS_PUBLIC, PAGES_ACCESS_PROFILE, PAGES_ACCESS_ADMIN)
 
+    ## Session flags ##
+    FLAG_CONFIRM = u"confirm"
+
     ## HTTP methods ##
     HTTP_METHOD_GET = u'GET'
     HTTP_METHOD_POST = u'POST'