Permalink
Browse files

Fully disable socket.io stuff until it's ready

  • Loading branch information...
kumar303 committed Jun 22, 2012
1 parent 226f2cc commit aa48d391cb269694b194906fa04891613e83d2e5
Showing with 10 additions and 5 deletions.
  1. +5 −0 jstestnet/settings/base.py
  2. +3 −3 jstestnet/system/views.py
  3. +2 −2 requirements/compiled.txt
@@ -120,3 +120,8 @@
# When True, always provide CSRF protection for anonymous users.
# This is required to get admin logins to work w/ django-session-csrf.
ANON_ALWAYS = True
+
+# This is an experimental feature still in the works.
+# When this is True you need gevent and greenlet installed.
+# See compiled.txt.
+USE_SOCKET_IO = False
@@ -13,16 +13,16 @@
from django.template import loader, RequestContext
from django.views.decorators.csrf import csrf_view_exempt
-from gevent import Greenlet
-from redis import Redis
-
from common.decorators import json_view, post_required
from common.stdlib import json
from jstestnet.work.models import Worker, WorkQueue, TestRun, TestRunQueue
from jstestnet.work import views as work_views
from .models import TestSuite, Token
from .forms import TestSuiteForm
+if settings.USE_SOCKET_IO:
+ from gevent import Greenlet
+ from redis import Redis
log = logging.getLogger()
@@ -2,8 +2,8 @@ MySQL-python==1.2.3c1
Jinja2==2.5.5
# for prototyping socket.io
-greenlet==0.3.4
-gevent==0.13.7
+#greenlet==0.3.4
+#gevent==0.13.7
# for bcrypt passwords
hmac==20101005

0 comments on commit aa48d39

Please sign in to comment.