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
dd34bada
Commit
dd34bada
authored
Mar 05, 2015
by
Martyn James
Committed by
marjev
Mar 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylinty minty
parent
2117d168
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
common/lib/xmodule/xmodule/modulestore/courseware_index.py
+3
-2
common/lib/xmodule/xmodule/tests/__init__.py
+1
-0
No files found.
common/lib/xmodule/xmodule/modulestore/courseware_index.py
View file @
dd34bada
...
@@ -181,7 +181,7 @@ class CoursewareSearchIndexer(object):
...
@@ -181,7 +181,7 @@ class CoursewareSearchIndexer(object):
try
:
try
:
if
settings
.
FEATURES
.
get
(
'SEGMENT_IO_LMS'
)
and
hasattr
(
settings
,
'SEGMENT_IO_LMS_KEY'
):
if
settings
.
FEATURES
.
get
(
'SEGMENT_IO_LMS'
)
and
hasattr
(
settings
,
'SEGMENT_IO_LMS_KEY'
):
#Google Analytics - log index content request
#
Google Analytics - log index content request
import
analytics
import
analytics
analytics
.
track
(
analytics
.
track
(
...
@@ -198,5 +198,6 @@ class CoursewareSearchIndexer(object):
...
@@ -198,5 +198,6 @@ class CoursewareSearchIndexer(object):
# an operation to fail because of an analytics event, so we will capture these
# an operation to fail because of an analytics event, so we will capture these
# errors in the logs.
# errors in the logs.
log
.
exception
(
log
.
exception
(
u'Unable to emit {0} event for content indexing.'
.
format
(
event_name
)
u'Unable to emit
%
s event for content indexing.'
,
event_name
,
)
)
common/lib/xmodule/xmodule/tests/__init__.py
View file @
dd34bada
...
@@ -51,6 +51,7 @@ open_ended_grading_interface = {
...
@@ -51,6 +51,7 @@ open_ended_grading_interface = {
'grading_controller'
:
'grading_controller'
,
'grading_controller'
:
'grading_controller'
,
}
}
class
TestModuleSystem
(
ModuleSystem
):
# pylint: disable=abstract-method
class
TestModuleSystem
(
ModuleSystem
):
# pylint: disable=abstract-method
"""
"""
ModuleSystem for testing
ModuleSystem for testing
...
...
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