aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/tui/controllers/tor.py
diff options
context:
space:
mode:
authorArturo Filastò <hellais@torproject.org>2011-08-17 19:38:47 +0200
committerArturo Filastò <hellais@torproject.org>2011-08-17 19:38:47 +0200
commite14cf93e2c93e94c00d55d51ffc8ca26e063377c (patch)
tree3566a2d7eda080fd376d88d274b2af5eb6f3006a /packages/torouter-web/tui/controllers/tor.py
parent4a55d3546be8f0444b12d634ccf01c5a107d46eb (diff)
parent57e54f969b840546925d16ceceb130a0f3927140 (diff)
downloadtorouter-e14cf93e2c93e94c00d55d51ffc8ca26e063377c.tar.gz
torouter-e14cf93e2c93e94c00d55d51ffc8ca26e063377c.zip
Merge branch 'master' of ssh://git-rw.torproject.org/torouter
Diffstat (limited to 'packages/torouter-web/tui/controllers/tor.py')
-rw-r--r--packages/torouter-web/tui/controllers/tor.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/packages/torouter-web/tui/controllers/tor.py b/packages/torouter-web/tui/controllers/tor.py
deleted file mode 100644
index af8678c..0000000
--- a/packages/torouter-web/tui/controllers/tor.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import web
-import view, config
-from view import render
-from tui.utils import session, parsing
-
-"""
-The main Tor status page
-"""
-class status:
- def GET(self):
- trc = parsing.torrc(config.torrc_file)
- trc.parse()
- output = trc.html_output()
- return render.base(render.torstatus(output,config.torrc_file))
-
- def POST(self):
- trc = parsing.torrc(config.torrc_file)
- trc.parse()
- output = trc.html_output()
- return render.base(render.torstatus(output,config.torrc_file))
-
-"""
-Tor configuration page
-"""
-class torrc:
- def update_config(self, data):
- return True
-
- def GET(self):
- return render.base(render.torconfig())
-
- def POST(self):
- self.update_config(web.input())
- return render.base(render.torconfig())
-