Skip to content
Snippets Groups Projects
Commit 736148f2 authored by Calen Pennington's avatar Calen Pennington
Browse files

Adding clarifying comment about the contents of 'data'

parent 7ac8fecb
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment