aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/src/runui.py
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-10-02 16:44:03 +0200
committerficus <ficus@robocracy.org>2012-10-02 16:44:03 +0200
commitfcf6a8630b7ae818e7719d6e811d01d9359388c3 (patch)
tree81610e80263e0f326f300b1bc7ea4264df9f29ab /packages/torouter-web/src/runui.py
parent7dcf9aa0db8585eb3489bcf0903e67bdd9dee027 (diff)
downloadtorouter-fcf6a8630b7ae818e7719d6e811d01d9359388c3.tar.gz
torouter-fcf6a8630b7ae818e7719d6e811d01d9359388c3.zip
remove unused told TUI
Diffstat (limited to 'packages/torouter-web/src/runui.py')
-rw-r--r--packages/torouter-web/src/runui.py60
1 files changed, 0 insertions, 60 deletions
diff --git a/packages/torouter-web/src/runui.py b/packages/torouter-web/src/runui.py
deleted file mode 100644
index 87c6626..0000000
--- a/packages/torouter-web/src/runui.py
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/env python
-# tui - Tor web UI
-# by Arturo Filasto' <hellais@torproject.org>
-#
-
-import sys, time, os
-from daemon import Daemon
-import web
-from tui import config
-import tui.controllers
-
-from tui.utils import session
-from tui.view import render
-
-# This is the main structure of URLs
-urls = (
- '/', 'tui.controllers.main.index',
-# '/config/(tor|router)', 'tui.controllers.main.config',
- '/network', 'tui.controllers.network.main',
- '/network/firewall', 'tui.controllers.network.firewall',
- '/network/wireless', 'tui.controllers.network.wireless',
- '/network/wired', 'tui.controllers.network.wired',
- '/network/status', 'tui.controllers.network.status',
- '/tor', 'tui.controllers.tor.status',
- '/tor/config', 'tui.controllers.tor.torrc',
- '/logout', 'tui.controllers.main.logout'
- )
-# '/wizard/([0-9a-f]{1,2})?', 'tui.controllers.wizard.step',
-# '/status', 'tui.controllers.status')
-
-app = web.application(urls, globals())
-# add session management to the app
-session.add_session_to_app(app)
-app.internalerror = web.debugerror
-
-class TorWebDaemon(Daemon):
- def run(self):
- app.run()
-
-DEBUG = False
-if __name__ == "__main__":
- if DEBUG:
- app.run()
- service = TorWebDaemon('/tmp/tui.pid')
- if len(sys.argv) == 2:
- if 'start' == sys.argv[1]:
- sys.argv[1] = '8080'
- service.start()
- elif 'stop' == sys.argv[1]:
- service.stop()
- elif 'restart' == sys.argv[1]:
- service.restart()
- else:
- print "Unknown command"
- sys.exit(2)
- sys.exit(0)
- else:
- print "starting daemon..."
- service.start()
-