diff src/server/constants.py @ 990:6daa59d44ee2

pages: menu implementation, first draft: menu can now be specified in sat.conf using menu_json setting and using pages' names. A default menu is set in constants, with only login and blog pages for now.
author Goffi <goffi@goffi.org>
date Fri, 01 Dec 2017 00:02:34 +0100
parents 64826e69f365
children 641664553a41
line wrap: on
line diff
--- a/src/server/constants.py	Thu Nov 30 21:05:24 2017 +0100
+++ b/src/server/constants.py	Fri Dec 01 00:02:34 2017 +0100
@@ -57,6 +57,8 @@
     PAGES_ACCESS_PROFILE = u"profile"  # a session with an existing profile must be started
     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)
+    # names of the page to use for menu
+    DEFAULT_MENU = ['login', 'blog_view']
 
     ## Session flags ##
     FLAG_CONFIRM = u"CONFIRM"