mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
write index.html redirect
This commit is contained in:
parent
39899b6e06
commit
b3771fba39
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ def main():
|
||||||
print('autoudate of menu items is enabled:%s. Adding %s'%(\
|
print('autoudate of menu items is enabled:%s. Adding %s'%(\
|
||||||
fetch_menu_json_value('autoupdate_menu'),region,))
|
fetch_menu_json_value('autoupdate_menu'),region,))
|
||||||
menus.update_menu_json(menu_ref)
|
menus.update_menu_json(menu_ref)
|
||||||
|
# redirect from box/maps to an installed map rather than test page
|
||||||
|
with open('{{ vector_map_path }}/index.html','w') as fp:
|
||||||
|
outstr = """<head> \n<meta http-equiv="refresh" content="0; URL=%s " />\n</head>"""%fname
|
||||||
|
fp.write(outstr)
|
||||||
|
|
||||||
|
|
||||||
def get_map_catalog():
|
def get_map_catalog():
|
||||||
global map_catalog
|
global map_catalog
|
||||||
|
|
Loading…
Reference in a new issue