Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
736148f2
Commit
736148f2
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Adding clarifying comment about the contents of 'data'
parent
7ac8fecb
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/x_module.py
+4
-1
4 additions, 1 deletion
common/lib/xmodule/x_module.py
with
4 additions
and
1 deletion
common/lib/xmodule/x_module.py
+
4
−
1
View file @
736148f2
...
@@ -75,7 +75,10 @@ class XModule(object):
...
@@ -75,7 +75,10 @@ class XModule(object):
system: An I4xSystem allowing access to external resources
system: An I4xSystem allowing access to external resources
location: Something Location-like that identifies this xmodule
location: Something Location-like that identifies this xmodule
definition: A dictionary containing
'
data
'
and
'
children
'
. Both are optional
definition: A dictionary containing
'
data
'
and
'
children
'
. Both are optional
'
data
'
: is JSON-like (string, dictionary, list, bool, or None, optionally nested)
'
data
'
: is JSON-like (string, dictionary, list, bool, or None, optionally nested).
This defines all of the data necessary for a problem to display that is intrinsic to the problem.
It should not include any data that would vary between two courses using the same problem
(due dates, grading policy, randomization, etc.)
'
children
'
: is a list of Location-like values for child modules that this module depends on
'
children
'
: is a list of Location-like values for child modules that this module depends on
instance_state: A string of serialized json that contains the state of this module for
instance_state: A string of serialized json that contains the state of this module for
current student accessing the system, or None if no state has been saved
current student accessing the system, or None if no state has been saved
...
...
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