aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/src/tui/utils/session.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/tui/utils/session.py
parent7dcf9aa0db8585eb3489bcf0903e67bdd9dee027 (diff)
downloadtorouter-fcf6a8630b7ae818e7719d6e811d01d9359388c3.zip
torouter-fcf6a8630b7ae818e7719d6e811d01d9359388c3.tar.gz
remove unused told TUI
Diffstat (limited to 'packages/torouter-web/src/tui/utils/session.py')
-rw-r--r--packages/torouter-web/src/tui/utils/session.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/torouter-web/src/tui/utils/session.py b/packages/torouter-web/src/tui/utils/session.py
deleted file mode 100644
index 4570196..0000000
--- a/packages/torouter-web/src/tui/utils/session.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import web
-from tui import config
-
-# The main session class
-
-def add_session_to_app(app):
-
- if web.config.get("_session") is None:
- store = web.session.DiskStore('sessions')
- session = web.session.Session(app, store, initializer={'login': 0, 'privilege': 0})
- web.config._session = session
- else:
- session = web.config._session
-
-def is_logged():
- return web.config._session.login
-
-def check_login(data):
- if (data.user == config.authinfo[0]) and (data.password == config.authinfo[1]):
- web.config._session.login = 1
- return 0
- return 1
-
-def logout():
- web.config._session.kill()
-