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
7c33537b
Commit
7c33537b
authored
Jun 03, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dogfood still has the codemirror + chrome bug; put in warning message
for now
parent
dc84a20f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/dogfood/check.py
+7
-2
No files found.
lib/dogfood/check.py
View file @
7c33537b
...
@@ -27,10 +27,15 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers):
...
@@ -27,10 +27,15 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers):
msg
+=
'<iframe src="
%
s/dogfood/filename
%
s" width="95
%%
" frameborder="1">No iframe support!</iframe>'
%
(
settings
.
MITX_ROOT_URL
,
pfn
)
msg
+=
'<iframe src="
%
s/dogfood/filename
%
s" width="95
%%
" frameborder="1">No iframe support!</iframe>'
%
(
settings
.
MITX_ROOT_URL
,
pfn
)
msg
+=
'<hr width="100
%
"/>'
msg
+=
'<hr width="100
%
"/>'
endmsg
=
"""<p><font size="-1" color="purple">Note: if the code text box disappears after clicking on "Check",
please click on "Show Answer" to make it refresh properly. This is a
bug with Chrome; it does not happen with Firefox. It is being fixed.
</font></p>"""
is_ok
=
True
is_ok
=
True
if
(
not
correct_answers
)
or
(
not
false_answers
):
if
(
not
correct_answers
)
or
(
not
false_answers
):
ret
=
{
'ok'
:
is_ok
,
ret
=
{
'ok'
:
is_ok
,
'msg'
:
msg
,
'msg'
:
msg
+
endmsg
,
}
}
return
ret
return
ret
...
@@ -49,7 +54,7 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers):
...
@@ -49,7 +54,7 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers):
msg
+=
"<p><pre>
%
s</pre></p>"
%
traceback
.
format_exc
()
.
replace
(
'<'
,
'<'
)
msg
+=
"<p><pre>
%
s</pre></p>"
%
traceback
.
format_exc
()
.
replace
(
'<'
,
'<'
)
ret
=
{
'ok'
:
is_ok
,
ret
=
{
'ok'
:
is_ok
,
'msg'
:
msg
,
'msg'
:
msg
+
endmsg
,
}
}
return
ret
return
ret
...
...
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