summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-15 11:07:16 +0200
committerAleš Smodiš <aless@guru.si>2015-09-15 11:07:16 +0200
commitcc3a807157d6d2d2c4830afcec90d6614e486b70 (patch)
tree57077a9c160a50913a13b98b1e0f1e220091ff31 /client
parent64073d4c7efb2f21f66d0fea5083c659a1b0a15e (diff)
Removed WSGI parts. They've been supplanted with the node app and the TCP communication with the node app.
Diffstat (limited to 'client')
-rw-r--r--client/__init__.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/client/__init__.py b/client/__init__.py
deleted file mode 100644
index 1c5d693..0000000
--- a/client/__init__.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# coding=utf-8
-
-# TODO: this module is deprecated, remove it
-
-import multiprocessing.managers
-
-__all__ = ['get_session_by_id', 'get_or_create_session']
-
-class CodeqManager(multiprocessing.managers.BaseManager):
- pass
-
-CodeqManager.register('PrologSession')
-CodeqManager.register('PythonSession')
-CodeqManager.register('UserSession')
-#CodeqManager.register('get_session_by_id')
-#CodeqManager.register('get_or_create_session')
-#CodeqManager.register('authenticate_and_create_session')
-CodeqManager.register('Codeq')
-
-m = CodeqManager(address=('localhost', 16231), authkey=b'c0d3q3y')
-m.connect()
-codeq = m.Codeq()
-
-def get_session_by_id(sid):
-# return m.get_session_by_id(sid)
- return codeq.get_session_by_id(sid)
-
-def get_or_create_session(uid, username, sid=None):
-# return m.get_or_create_session(uid, username, sid)
- return codeq.get_or_create_session(uid, username, sid)
-
-def authenticate_and_create_session(username, password):
-# return m.authenticate_and_create_session(username, password)
- return codeq.authenticate_and_create_session(username, password)
-
-def list_problems():
- return codeq.list_problems()