comparison src/twisted/plugins/libervia_server.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 fd4eae654182
children f2170536ba23
comparison
equal deleted inserted replaced
989:1d1a6c91961f 990:6daa59d44ee2
115 # Options which are in sat.conf only 115 # Options which are in sat.conf only
116 OPT_PARAMETERS_CFG = [ 116 OPT_PARAMETERS_CFG = [
117 ['empty_password_allowed_warning_dangerous_list', None, '', None], 117 ['empty_password_allowed_warning_dangerous_list', None, '', None],
118 ['url_redirections_profile', None, '', None], 118 ['url_redirections_profile', None, '', None],
119 ['url_redirections_dict', None, {}, None], 119 ['url_redirections_dict', None, {}, None],
120 ['menu_json', None, C.DEFAULT_MENU, None],
120 ] 121 ]
121 122
122 def initialise(options): 123 def initialise(options):
123 """Method to initialise global modules""" 124 """Method to initialise global modules"""
124 from twisted.internet import glib2reactor 125 from twisted.internet import glib2reactor