comparison libervia/server/server.py @ 1202:3f791fbc1643

server: if "redirections" is not set, use "/login" page as default
author Goffi <goffi@goffi.org>
date Fri, 12 Jul 2019 14:58:11 +0200
parents b300eaec53b6
children 251eba911d4d
comparison
equal deleted inserted replaced
1201:f1f03b08e1f4 1202:3f791fbc1643
343 .format(host_name=self.host_name, 343 .format(host_name=self.host_name,
344 uri=request_data[1].decode("utf-8"))) 344 uri=request_data[1].decode("utf-8")))
345 345
346 # the default root URL, if not redirected 346 # the default root URL, if not redirected
347 if not "" in self.redirections: 347 if not "" in self.redirections:
348 self.redirections[""] = self._getRequestData(C.LIBERVIA_MAIN_PAGE) 348 self.redirections[""] = self._getRequestData(C.LIBERVIA_PAGE_START)
349 349
350 def _setMenu(self, menus): 350 def _setMenu(self, menus):
351 menus = menus.get(self.site_name, []) 351 menus = menus.get(self.site_name, [])
352 main_menu = [] 352 main_menu = []
353 for menu in menus: 353 for menu in menus: