Commit 85faab1d by Don Mitchell

Swallow event calls to squash 404 errors (and remove an unused var in

another function)
parent 91b3a220
...@@ -1379,7 +1379,6 @@ def import_course(request, org, course, name): ...@@ -1379,7 +1379,6 @@ def import_course(request, org, course, name):
@login_required @login_required
def generate_export_course(request, org, course, name): def generate_export_course(request, org, course, name):
location = ['i4x', org, course, 'course', name] location = ['i4x', org, course, 'course', name]
course_module = modulestore().get_item(location)
# check that logged in user has permissions to this item # check that logged in user has permissions to this item
if not has_access(request.user, location): if not has_access(request.user, location):
raise PermissionDenied() raise PermissionDenied()
...@@ -1426,3 +1425,10 @@ def export_course(request, org, course, name): ...@@ -1426,3 +1425,10 @@ def export_course(request, org, course, name):
'active_tab': 'export', 'active_tab': 'export',
'successful_import_redirect_url' : '' 'successful_import_redirect_url' : ''
}) })
def event(requet):
'''
A noop to swallow the analytics call so that cms methods don't spook and poor developers looking at
console logs don't get distracted :-)
'''
return HttpResponse(True)
\ No newline at end of file
...@@ -68,6 +68,8 @@ urlpatterns = ('', ...@@ -68,6 +68,8 @@ urlpatterns = ('',
# temporary landing page for edge # temporary landing page for edge
url(r'^edge$', 'contentstore.views.edge', name='edge'), url(r'^edge$', 'contentstore.views.edge', name='edge'),
# noop to squelch ajax errors
url(r'^event$', 'contentstore.views.event', name='event'),
url(r'^heartbeat$', include('heartbeat.urls')), url(r'^heartbeat$', include('heartbeat.urls')),
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment