~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend

« back to all changes in this revision

Viewing changes to mnemosyne/openSM2sync/server.py

  • Committer: Peter.Bienstman at UGent
  • Date: 2014-05-19 06:47:48 UTC
  • Revision ID: peter.bienstman@ugent.be-20140519064748-p83kalyv32kmvmpy
DocumentationĀ upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
import httplib
15
15
import tempfile
16
16
 
17
 
from cherrypy import wsgiserver
18
 
 
19
17
from partner import Partner
20
18
from log_entry import EventTypes
21
19
from utils import traceback_string, rand_uuid
107
105
        self.machine_id = machine_id
108
106
        # We only use 1 thread, such that subsequent requests don't run into
109
107
        # SQLite access problems.
 
108
        from cherrypy import wsgiserver
110
109
        self.wsgi_server = wsgiserver.CherryPyWSGIServer\
111
110
            (("0.0.0.0", port), self.wsgi_app, server_name="localhost",
112
111
            numthreads=1, timeout=1000)