Mercurial > libervia-web
diff src/server/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 | 64826e69f365 |
children | f88325b56a6a |
line wrap: on
line diff
--- a/src/server/server.py Thu Nov 30 21:05:24 2017 +0100 +++ b/src/server/server.py Fri Dec 01 00:02:34 2017 +0100 @@ -1453,6 +1453,7 @@ self.putChild(C.THEMES_URL, ProtectedFile(self.themes_dir)) LiberviaPage.importPages(self) + LiberviaPage.setMenu(self.options['menu_json']) self.bridge.register_signal("psEventRaw", partial(LiberviaPage.onNodeEvent, self), "plugin") # media dirs