Skip to content
Snippets Groups Projects
Commit 4783521e authored by Branson Stephens's avatar Branson Stephens
Browse files

branson cleaning up weird comments in api

parent ac35e98e
No related branches found
No related tags found
No related merge requests found
......@@ -372,10 +372,8 @@ class EventList(APIView):
count = int(count)
numRows = events.count()
# XXX Let's check. If the output format is ligolw, and
# there are more than 1000 events, we error out.
# Fail if the output format is ligolw, and there are more than 1000 events
if request.accepted_renderer.format == 'xml' and numRows > 1000:
# XXX Here again, I don't think this is going to render correctly.
d = {'error': 'Too many events.' }
return Response(d, status=status.HTTP_400_BAD_REQUEST)
......@@ -545,10 +543,6 @@ class EventDetail(APIView):
return response
return response
def put(self, request, graceid):
""" I am a doc. Do I not get put anywhere? """
try:
......@@ -819,7 +813,6 @@ class EventLogList(APIView):
if tagname:
n = logentry.N
# XXX This is not what these API views are really meant for, but...
tmp = EventLogTagDetail()
retval = tmp.put(request, graceid, n, tagname)
# XXX This seems like a bizarre way of getting an error message out.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment