Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
0e334970
Commit
0e334970
authored
12 years ago
by
Piotr Mitros
Browse files
Options
Downloads
Patches
Plain Diff
Fix minor bugs, commenting out future code
parent
cad13b30
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
djangoapps/courseware/capa/inputtypes.py
+1
-1
1 addition, 1 deletion
djangoapps/courseware/capa/inputtypes.py
djangoapps/courseware/modules/capa_module.py
+4
-2
4 additions, 2 deletions
djangoapps/courseware/modules/capa_module.py
with
5 additions
and
3 deletions
djangoapps/courseware/capa/inputtypes.py
+
1
−
1
View file @
0e334970
...
...
@@ -152,7 +152,7 @@ def schematic(element, value, status, msg=''):
'
id
'
:
eid
,
'
value
'
:
value
,
'
initial_value
'
:
initial_value
,
'
state
'
:
stat
e
,
'
state
'
:
stat
us
,
'
width
'
:
width
,
'
height
'
:
height
,
'
parts
'
:
parts
,
...
...
This diff is collapsed.
Click to expand it.
djangoapps/courseware/modules/capa_module.py
+
4
−
2
View file @
0e334970
...
...
@@ -142,7 +142,8 @@ class Module(XModule):
dom2
=
etree
.
fromstring
(
xml
)
self
.
explanation
=
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@explain
'
),
default
=
"
closed
"
)
self
.
explanation
=
"
problems/
"
+
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@explain
'
),
default
=
"
closed
"
)
# TODO: Should be converted to: self.explanation=content_parser.item(dom2.xpath('/problem/@explain'), default="closed")
self
.
explain_available
=
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@explain_available
'
))
display_due_date_string
=
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@due
'
))
...
...
@@ -188,7 +189,8 @@ class Module(XModule):
if
state
!=
None
and
'
attempts
'
in
state
:
self
.
attempts
=
state
[
'
attempts
'
]
self
.
filename
=
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@filename
'
))
# "problems/"+content_parser.item(dom2.xpath('/problem/@filename'))+".xml"
# TODO: Should be: self.filename=content_parser.item(dom2.xpath('/problem/@filename'))
self
.
filename
=
"
problems/
"
+
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@filename
'
))
+
"
.xml
"
self
.
name
=
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@name
'
))
self
.
weight
=
content_parser
.
item
(
dom2
.
xpath
(
'
/problem/@weight
'
))
if
self
.
rerandomize
==
'
never
'
:
...
...
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