Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
f51340b2
Commit
f51340b2
authored
13 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Changed ping results. Disabled wiki page creation.
parent
aeaa3450
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/views.py
+7
-1
7 additions, 1 deletion
gracedb/views.py
with
7 additions
and
1 deletion
gracedb/views.py
+
7
−
1
View file @
f51340b2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment