summaryrefslogtreecommitdiff
path: root/server/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/__init__.py')
-rw-r--r--server/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/__init__.py b/server/__init__.py
index d71f707..284c162 100644
--- a/server/__init__.py
+++ b/server/__init__.py
@@ -30,9 +30,10 @@ class CodeqManager(multiprocessing.managers.BaseManager):
pass
class UserSessionProxy(multiprocessing.managers.BaseProxy):
- _method_to_typeid_ = {'get_prolog':'PrologSession'}
+ _method_to_typeid_ = {'get_prolog': 'PrologSession', 'get_python': 'PythonSession'}
CodeqManager.register('PrologSession')
+CodeqManager.register('PythonSession')
CodeqManager.register('UserSession', proxytype=UserSessionProxy)
#CodeqManager.register('get_session_by_id', callable=user_session.get_session_by_id, proxytype=UserSessionProxy)
#CodeqManager.register('get_or_create_session', callable=user_session.get_or_create_session, proxytype=UserSessionProxy)