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
9e988633
Commit
9e988633
authored
Apr 24, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refer to inherited field.
parent
e874de12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
common/lib/xmodule/xmodule/capa_module.py
+1
-0
common/lib/xmodule/xmodule/html_module.py
+2
-0
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
9e988633
...
@@ -96,6 +96,7 @@ class CapaFields(object):
...
@@ -96,6 +96,7 @@ class CapaFields(object):
input_state
=
Object
(
help
=
"Dictionary for maintaining the state of inputtypes"
,
scope
=
Scope
.
user_state
)
input_state
=
Object
(
help
=
"Dictionary for maintaining the state of inputtypes"
,
scope
=
Scope
.
user_state
)
student_answers
=
Object
(
help
=
"Dictionary with the current student responses"
,
scope
=
Scope
.
user_state
)
student_answers
=
Object
(
help
=
"Dictionary with the current student responses"
,
scope
=
Scope
.
user_state
)
done
=
Boolean
(
help
=
"Whether the student has answered the problem"
,
scope
=
Scope
.
user_state
)
done
=
Boolean
(
help
=
"Whether the student has answered the problem"
,
scope
=
Scope
.
user_state
)
# display_name is used by the LMS on the sequential ribbon (displayed as a tooltip)
display_name
=
XModule
.
display_name
display_name
=
XModule
.
display_name
seed
=
StringyInteger
(
help
=
"Random seed for this student"
,
scope
=
Scope
.
user_state
)
seed
=
StringyInteger
(
help
=
"Random seed for this student"
,
scope
=
Scope
.
user_state
)
weight
=
StringyFloat
(
help
=
"How much to weight this problem by"
,
scope
=
Scope
.
settings
)
weight
=
StringyFloat
(
help
=
"How much to weight this problem by"
,
scope
=
Scope
.
settings
)
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
9e988633
...
@@ -19,6 +19,8 @@ log = logging.getLogger("mitx.courseware")
...
@@ -19,6 +19,8 @@ log = logging.getLogger("mitx.courseware")
class
HtmlFields
(
object
):
class
HtmlFields
(
object
):
data
=
String
(
help
=
"Html contents to display for this module"
,
scope
=
Scope
.
content
)
data
=
String
(
help
=
"Html contents to display for this module"
,
scope
=
Scope
.
content
)
# Used by the LMS on the sequential ribbon (displayed as a tooltip)
display_name
=
XModule
.
display_name
class
HtmlModule
(
HtmlFields
,
XModule
):
class
HtmlModule
(
HtmlFields
,
XModule
):
...
...
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