netrender

- Temporary fix for linked libs repathing (didn't work correctly when using relative links).

- autorefresh only for main page (on job page, it's really annoying because it keeps reseting results preview, so until that's fixed, off it is).
This commit is contained in:
2010-07-17 18:40:00 +00:00
parent fd31436897
commit 84b291462f
4 changed files with 13 additions and 7 deletions

View File

@@ -27,9 +27,10 @@ def get(handler):
def output(text):
handler.wfile.write(bytes(text, encoding='utf8'))
def head(title):
def head(title, refresh = False):
output("<html><head>")
output("<meta http-equiv='refresh' content=5>")
if refresh:
output("<meta http-equiv='refresh' content=5>")
output("<script src='/html/netrender.js' type='text/javascript'></script>")
# output("<script src='/html/json2.js' type='text/javascript'></script>")
output("<title>")
@@ -104,7 +105,7 @@ def get(handler):
f.close()
elif handler.path == "/html" or handler.path == "/":
handler.send_head(content = "text/html")
head("NetRender")
head("NetRender", refresh = True)
output("<h2>Jobs</h2>")