comparison 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
comparison
equal deleted inserted replaced
956:dabecab10faa 957:67bf14c91d5c
56 PAGES_ACCESS_PUBLIC = u"public" 56 PAGES_ACCESS_PUBLIC = u"public"
57 PAGES_ACCESS_PROFILE = u"profile" # a session with an existing profile must be started 57 PAGES_ACCESS_PROFILE = u"profile" # a session with an existing profile must be started
58 PAGES_ACCESS_ADMIN = u"admin" # only profiles set in admins_list can access the page 58 PAGES_ACCESS_ADMIN = u"admin" # only profiles set in admins_list can access the page
59 PAGES_ACCESS_ALL = (PAGES_ACCESS_NONE, PAGES_ACCESS_PUBLIC, PAGES_ACCESS_PROFILE, PAGES_ACCESS_ADMIN) 59 PAGES_ACCESS_ALL = (PAGES_ACCESS_NONE, PAGES_ACCESS_PUBLIC, PAGES_ACCESS_PROFILE, PAGES_ACCESS_ADMIN)
60 60
61 ## Session flags ##
62 FLAG_CONFIRM = u"confirm"
63
61 ## HTTP methods ## 64 ## HTTP methods ##
62 HTTP_METHOD_GET = u'GET' 65 HTTP_METHOD_GET = u'GET'
63 HTTP_METHOD_POST = u'POST' 66 HTTP_METHOD_POST = u'POST'
64 67
65 ## HTTP codes ## 68 ## HTTP codes ##