Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
989:1d1a6c91961f | 990:6daa59d44ee2 |
---|---|
55 PAGES_ACCESS_NONE = u"none" # no access to this page (using its path will return a 404 error) | 55 PAGES_ACCESS_NONE = u"none" # no access to this page (using its path will return a 404 error) |
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 # names of the page to use for menu | |
61 DEFAULT_MENU = ['login', 'blog_view'] | |
60 | 62 |
61 ## Session flags ## | 63 ## Session flags ## |
62 FLAG_CONFIRM = u"CONFIRM" | 64 FLAG_CONFIRM = u"CONFIRM" |
63 | 65 |
64 ## Data post ## | 66 ## Data post ## |