From f51340b2379d5c08a55ac7cec0f2e205152ec4c3 Mon Sep 17 00:00:00 2001
From: Brian Moe <bmoe@gravity.phys.uwm.edu>
Date: Thu, 20 Oct 2011 13:25:03 -0500
Subject: [PATCH] Changed ping results.  Disabled wiki page creation.

---
 gracedb/views.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gracedb/views.py b/gracedb/views.py
index 2386a5178..ae8987fc3 100644
--- a/gracedb/views.py
+++ b/gracedb/views.py
@@ -349,7 +349,8 @@ def log(request):
     return response
 
 def ping(request):
-    ack = "(%s) " % Site.objects.get_current()
+    #ack = "(%s) " % Site.objects.get_current()
+    ack = "(%s) " % request.META['SERVER_NAME']
     ack += request.POST.get('ack', None) or request.GET.get('ack','ACK')
 
     from templatetags.timeutil import utc
@@ -736,6 +737,11 @@ def get_file(graceid, filename="event.log"):
     return contents
 
 def createWikiPage(graceid):
+    # Do not create wiki pages these reasons
+    # (1) freaks out the wiki/filesystem to have too many files in one directory.
+    # (2) do not need them if they are empty. They'll be auto-created if ppl go to them and want them.
+    # (3) htdocs (where the wikipage goes) is mounted read-only.
+    return
     twikiroot = "/mnt/htdocs/uwmlsc/secure/twiki/data/Sandbox/"
     plainFile = """
 Initial Entry for %s
-- 
GitLab