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
e7d44a26
Commit
e7d44a26
authored
Jul 02, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove explain attribute in favor of solution stanza as exemplified in edx4edx
parent
1d90b686
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
common/lib/xmodule/xmodule/capa_module.py
+0
-16
lms/templates/problem.html
+0
-3
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
e7d44a26
...
...
@@ -78,11 +78,6 @@ class CapaModule(XModule):
dom2
=
etree
.
fromstring
(
definition
[
'data'
])
self
.
explanation
=
"problems/"
+
only_one
(
dom2
.
xpath
(
'/problem/@explain'
),
default
=
"closed"
)
# TODO: Should be converted to: self.explanation=only_one(dom2.xpath('/problem/@explain'), default="closed")
self
.
explain_available
=
only_one
(
dom2
.
xpath
(
'/problem/@explain_available'
))
display_due_date_string
=
self
.
metadata
.
get
(
'due'
,
None
)
if
display_due_date_string
is
not
None
:
self
.
display_due_date
=
dateutil
.
parser
.
parse
(
display_due_date_string
)
...
...
@@ -244,16 +239,6 @@ class CapaModule(XModule):
if
self
.
max_attempts
is
None
and
self
.
rerandomize
!=
"always"
:
save_button
=
False
# Check if explanation is available, and if so, give a link
explain
=
""
if
self
.
lcp
.
done
and
self
.
explain_available
==
'attempted'
:
explain
=
self
.
explanation
if
self
.
closed
()
and
self
.
explain_available
==
'closed'
:
explain
=
self
.
explanation
if
len
(
explain
)
==
0
:
explain
=
False
context
=
{
'problem'
:
content
,
'id'
:
self
.
id
,
'check_button'
:
check_button
,
...
...
@@ -263,7 +248,6 @@ class CapaModule(XModule):
'ajax_url'
:
self
.
system
.
ajax_url
,
'attempts_used'
:
self
.
attempts
,
'attempts_allowed'
:
self
.
max_attempts
,
'explain'
:
explain
,
'progress'
:
self
.
get_progress
(),
}
...
...
lms/templates/problem.html
View file @
e7d44a26
...
...
@@ -30,9 +30,6 @@
% if answer_available:
<input
class=
"show"
type=
"button"
value=
"Show Answer"
>
% endif
% if explain :
<a
href=
"/courseware/6.002_Spring_2012/${ explain }"
class=
"new-page"
>
Explanation
</a>
% endif
% if attempts_allowed :
<section
class=
"submission_feedback"
>
You have used ${ attempts_used } of ${ attempts_allowed } submissions
...
...
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