Revert "ping server every 10 minutes"
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 8 Jun 2010 10:21:36 +0000 (12:21 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 8 Jun 2010 10:21:36 +0000 (12:21 +0200)
This reverts commit 404bfe407798a8a83fa02dc1742a315400b7c00b.

apps/wiki/urls.py
apps/wiki/views.py
redakcja/static/js/wiki/wikiapi.js

index e4e0deb..bfc799f 100644 (file)
@@ -26,6 +26,4 @@ urlpatterns = patterns('wiki.views',
 
     url(r'^(?P<name>[^/]+)$',
         'document_detail', name="wiki_details"),
-    
-    url(r'^ping/$', 'ping', name='ping'),
 )
index c5fd80e..46f0665 100644 (file)
@@ -256,7 +256,3 @@ def document_publish(request, name):
         return JSONResponse({"result": api.publish_book(document)})
     except wlapi.APICallException, e:
         return JSONServerError({"message": str(e)})
-
-
-def ping(request):
-    return http.HttpResponse('pong')
index 13435ea..26732bd 100644 (file)
@@ -44,9 +44,6 @@
 
                if (vname == "ajax_publish")
                        return base_path + "/" + arguments[1] + "/publish";
-               
-               if (vname == 'ping')
-                   return base_path + '/ping/'
 
                console.log("Couldn't reverse match:", vname);
                return "/404.html";
        };
 
        $.wikiapi.WikiDocument = WikiDocument;
-       
-       
-       var ping = function () {
-        $.ajax({
-            url : reverse('ping'),
-                       timeout: 2000,
-            complete : function () {
-                setTimeout(function () {
-                    ping();
-                }, 600000);
-            }
-        });
-    };
-       
-    ping();
-
 })(jQuery);