Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Hsin-Yu Chien
edx-platform-release
Commits
37b08c57
Unverified
Commit
37b08c57
authored
5 years ago
by
Aarif
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21745 from edx/BOM-610
BOM-610
parents
53e6f7ce
736001e7
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/capa/capa/capa_problem.py
+3
-2
3 additions, 2 deletions
common/lib/capa/capa/capa_problem.py
with
3 additions
and
2 deletions
common/lib/capa/capa/capa_problem.py
+
3
−
2
View file @
37b08c57
...
...
@@ -22,6 +22,7 @@ from collections import OrderedDict
from
copy
import
deepcopy
from
datetime
import
datetime
from
xml.sax.saxutils
import
unescape
from
openedx.core.lib.edx_six
import
get_gettext
import
six
from
lxml
import
etree
...
...
@@ -645,7 +646,7 @@ class LoncapaProblem(object):
choice-level explanations shown to a student after submission.
Does nothing if there is no targeted-feedback attribute.
"""
_
=
self
.
capa_system
.
i18n
.
ugettext
_
=
get_gettext
(
self
.
capa_system
.
i18n
)
# Note that the modifications has been done, avoiding problems if called twice.
if
hasattr
(
self
,
'
has_targeted
'
):
return
...
...
@@ -761,7 +762,7 @@ class LoncapaProblem(object):
"""
includes
=
self
.
tree
.
findall
(
'
.//include
'
)
for
inc
in
includes
:
filename
=
inc
.
get
(
'
file
'
).
decode
(
'
utf-8
'
)
filename
=
inc
.
get
(
'
file
'
)
if
six
.
PY3
else
inc
.
get
(
'
file
'
).
decode
(
'
utf-8
'
)
if
filename
is
not
None
:
try
:
# open using LoncapaSystem OSFS filestore
...
...
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