Commit 882ad698 authored by Nicolas Wavrant's avatar Nicolas Wavrant

stack-monitor: now can define a default webpage. Default is settings.cgi

parent fba78dbb
...@@ -92,6 +92,7 @@ context = ...@@ -92,6 +92,7 @@ context =
raw index_template $${deploy-index-template:location}/$${deploy-index-template:filename} raw index_template $${deploy-index-template:location}/$${deploy-index-template:filename}
key password zero-parameters:monitor-password key password zero-parameters:monitor-password
raw extra_eggs_interpreter ${buildout:directory}/bin/${extra-eggs:interpreter} raw extra_eggs_interpreter ${buildout:directory}/bin/${extra-eggs:interpreter}
raw default_page /index.cgi?script=$${monitor-parameters:knowledge0-cgi}%2F$${deploy-settings-cgi:filename}
[deploy-index-template] [deploy-index-template]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
......
...@@ -108,4 +108,4 @@ else: ...@@ -108,4 +108,4 @@ else:
else: else:
html_base = jinja2.Template(open('{{ index_template }}').read()) html_base = jinja2.Template(open('{{ index_template }}').read())
print print
print html_base.render(tree=make_menu()) print html_base.render(tree=make_menu(), default_page="{{ default_page }}")
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div id="content"> <div id="content">
<iframe src="/index.cgi"> <iframe src="{{ default_page }}">
</iframe> </iframe>
</div> </div>
</body> </body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment