From 6f17b6fbc8f1accdfff5e5a5503baf7eafc9dc08 Mon Sep 17 00:00:00 2001 From: Arturo FilastoĢ€ Date: Tue, 23 Aug 2011 15:15:27 +0200 Subject: * Fix issue with distutils * Temporarily move the style sheet to base.html * Fix issues related to absolute paths * Correct pid file location * misc cleanup --- packages/torouter-web/src/tui/view.py | 5 ++- packages/torouter-web/src/tui/views/base.html | 55 ++++++++++++++++++++++++++- 2 files changed, 58 insertions(+), 2 deletions(-) (limited to 'packages/torouter-web/src/tui') diff --git a/packages/torouter-web/src/tui/view.py b/packages/torouter-web/src/tui/view.py index 0252ad8..48b03c5 100644 --- a/packages/torouter-web/src/tui/view.py +++ b/packages/torouter-web/src/tui/view.py @@ -1,3 +1,4 @@ +import os import web from tui import config @@ -5,7 +6,9 @@ t_globals = dict( datestr=web.datestr, ) +# get the path where the script currently resides +current_path = "/".join(os.path.abspath(__file__).split("/")[:-1]) # create the render object -render = web.template.render('tui/views', cache=config.cache, globals=t_globals) +cender = web.template.render(current_path+'/views', cache=config.cache, globals=t_globals) render._keywords['globals']['render'] = render diff --git a/packages/torouter-web/src/tui/views/base.html b/packages/torouter-web/src/tui/views/base.html index bce4110..5db0249 100644 --- a/packages/torouter-web/src/tui/views/base.html +++ b/packages/torouter-web/src/tui/views/base.html @@ -5,7 +5,60 @@ $def with (page,submenu=None) TUI - Tor Web User Interface - + +
-- cgit v1.2.3 From b54039300353ad6bfb59e6668f03fe9e1745c763 Mon Sep 17 00:00:00 2001 From: Arturo FilastoĢ€ Date: Tue, 23 Aug 2011 15:18:21 +0200 Subject: Fix typo --- packages/torouter-web/src/tui/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/torouter-web/src/tui') diff --git a/packages/torouter-web/src/tui/view.py b/packages/torouter-web/src/tui/view.py index 48b03c5..ea885be 100644 --- a/packages/torouter-web/src/tui/view.py +++ b/packages/torouter-web/src/tui/view.py @@ -9,6 +9,6 @@ t_globals = dict( # get the path where the script currently resides current_path = "/".join(os.path.abspath(__file__).split("/")[:-1]) # create the render object -cender = web.template.render(current_path+'/views', cache=config.cache, globals=t_globals) +render = web.template.render(current_path+'/views', cache=config.cache, globals=t_globals) render._keywords['globals']['render'] = render -- cgit v1.2.3