Commits

u...@Udis-MacBook-Pro.local  committed 35a944f

temporarily removed googleappsauth

  • Participants
  • Parent commits b1b50b4

Comments (0)

Files changed (2)

     'django.contrib.contenttypes',
     'invitation',
     'registration',
-    'googleappsauth',
+#    'googleappsauth',
     'django.contrib.auth',
     'django.contrib.sessions',
     'djangotoolbox',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'privatebeta.middleware.PrivateBetaMiddleware',
-    'googleappsauth.middleware.GoogleAuthMiddleware',
+#    'googleappsauth.middleware.GoogleAuthMiddleware',
     'common.middleware.TokenMiddleWare',
     )
 
 
 # marketplace configuration
 LOGIN_REDIRECT_URL = '/'
-GOOGLE_APPS_DOMAIN ='cloudlockplus.com'  #'ekkli-maps.appspot.com'
+#GOOGLE_APPS_DOMAIN ='cloudlockplus.com'  #'ekkli-maps.appspot.com'
 GOOGLE_APPS_CONSUMER_KEY = '253718231002.apps.googleusercontent.com'
 GOOGLE_APPS_CONSUMER_SECRET = 'O6ULPOvumXvZtYkHJ-V8S5LR'
 # domain where your application is running
 GOOGLE_OPENID_REALM = 'http://ekkli-maps.appspot.com/'
-GOOGLE_OPENID_ENDPOINT = 'https://www.google.com/a/%s/o8/ud?be=o8' % GOOGLE_APPS_DOMAIN
+#GOOGLE_OPENID_ENDPOINT = 'https://www.google.com/a/%s/o8/ud?be=o8' % GOOGLE_APPS_DOMAIN
 AUTH_PROTECTED_AREAS = ['/']

File templates/map.html

 <script type="text/javascript" src="/_ah/channel/jsapi"></script>
 {% if user.is_authenticated %}
     <script>
-        var channel = new goog.appengine.Channel('{{ token }}');
+        var channel = new goog.appengine.Channel('{{ request.token }}');
 
         var socket = channel.open();
         onOpened = function() {
         socket.onopen = onOpened;
 
         onError = function(error) {
-            alert('error'+error);
+            console.log(error);
         };
         socket.onerror = onError;
         onClose = function() {