Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
76b367e0
Commit
76b367e0
authored
Jan 30, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1388 from MITx/bug/dhm/mar13
Swallow event calls to squash 404 errors (and remove an unused var in
parents
c4f56620
756a0716
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
cms/djangoapps/contentstore/views.py
+8
-1
cms/urls.py
+2
-0
No files found.
cms/djangoapps/contentstore/views.py
View file @
76b367e0
...
@@ -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
(
request
):
'''
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
cms/urls.py
View file @
76b367e0
...
@@ -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'
)),
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment