Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The XBlock python API is documented at http://edx.readthedocs.io/projects/xblock/en/latest/xblock.html

...

These are all attributes/methods that you can override/implement on an XBlock:

allows_rescore(self):

Boolean value: Can this problem be rescored? Default: True

author_view(self, context):

...

Used in GradesTransformer among other places.

graded

Used in `GradesTransformer` among other places. TBD: What does this do?

has_submitted_answer(self):

Returns True if the problem has been answered by the runtime user.

explicit_graded

Used in `GradesTransformer` among other places. TBD: What does this do?

def get_progress(self):

Return a `progress.Progress` object that represents how far the student has gone in this module. Must be implemented to get correct progress tracking behavior in nesting modules like sequence and vertical.

...

  • add_aside
  • bind_for_student
  • get_asides
  • get_child_descriptors
  • get_content_titles
  • get_explicitly_set_fields_by_scope 
  • get_required_module_descriptors
  • graded - used for subsections only, to indicate whether they are graded or not.
  • explicit_graded
  • system
  • xblock_kvs


Open edX JavaScript XBlock Complete API

...