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 Coughlin
GraceDB Server
Commits
aa8f741d
Commit
aa8f741d
authored
12 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
removed more markdown deps.
parent
1a0d4723
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
+0
-25
0 additions, 25 deletions
gracedb/views.py
with
0 additions
and
25 deletions
gracedb/views.py
+
0
−
25
View file @
aa8f741d
...
...
@@ -16,7 +16,6 @@ from alert import issueAlert, issueAlertForLabel, issueAlertForUpdate
from
translator
import
handle_uploaded_data
import
urllib
import
markdown
import
os
import
re
...
...
@@ -438,30 +437,6 @@ def logentry(request, graceid, num=None):
return
HttpResponse
(
json
.
dumps
(
rv
),
content_type
=
"
application/json
"
)
def
markdownlogentry
(
request
,
graceid
,
num
=
None
):
try
:
event
=
Event
.
getByGraceid
(
graceid
)
except
Event
.
DoesNotExist
:
raise
Http404
if
request
.
method
==
"
POST
"
:
# create a log entry
# XXX num can be None or 'preview'
comment
=
request
.
POST
.
get
(
'
comment
'
)
or
request
.
GET
.
get
(
'
comment
'
)
elog
=
EventLog
(
event
=
event
,
issuer
=
request
.
ligouser
)
elog
.
comment
=
comment
elog
.
save
()
# XXX janky. optimize this.
elogIndex
=
list
(
event
.
eventlog_set
.
order_by
(
'
created
'
).
all
()).
index
(
elog
)
return
HttpResponse
(
reverse
(
logentry
,
args
=
[
event
.
graceid
(),
elogIndex
]))
else
:
try
:
text
=
event
.
eventlog_set
.
order_by
(
'
created
'
).
all
()[
int
(
num
)].
comment
text
=
markdown
.
markdown
(
text
)
return
HttpResponse
(
text
)
except
Exception
,
e
:
raise
Http404
def
log
(
request
):
message
=
request
.
POST
.
get
(
'
message
'
)
graceid
=
request
.
POST
.
get
(
'
graceid
'
)
...
...
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