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
f45dc949
Commit
f45dc949
authored
May 29, 2014
by
jmclaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JavascriptResponse i18n. [BLD-737]
parent
eceb8318
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
common/lib/capa/capa/responsetypes.py
+3
-1
No files found.
common/lib/capa/capa/responsetypes.py
View file @
f45dc949
...
...
@@ -543,7 +543,9 @@ class JavascriptResponse(LoncapaResponse):
# Node.js code is un-sandboxed. If the LoncapaSystem says we aren't
# allowed to run unsafe code, then stop now.
if
not
self
.
capa_system
.
can_execute_unsafe_code
():
raise
LoncapaProblemError
(
"Execution of unsafe Javascript code is not allowed."
)
_
=
self
.
capa_system
.
i18n
.
ugettext
msg
=
_
(
"Execution of unsafe Javascript code is not allowed."
)
raise
LoncapaProblemError
(
msg
)
subprocess_args
=
[
"node"
]
subprocess_args
.
extend
(
args
)
...
...
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