devilry_gradingsystem — The devilry grading system plugin architecture

How we configure the grading system on an assignment

1 - Select a grading system plugin.

User selects one of the plugins in the devilry.devilry_gradingsystem.pluginregistry.gradingsystempluginregistry.

2 - Configure the grading system plugin

User configures the grading system using the view pointed to by devilry.devilry_gradingsystem.pluginregistry.GradingSystemPluginInterface.get_configuration_url().

Note

This step is skipped unless the plugin has set requires_configuration to True

3 - Configure the maximum number of points possible

User sets the maximum number of points possible.

Note

Plugins can opt out of this step by setting sets_max_points_automatically to True

4 - Choose how students are graded

The user selects one of the possible values for devilry.apps.core.models.Assignment.points_to_grade_mapper):
  • Passed failed

  • Raw points

  • Custom table

5 - Configure the points to grade mapping table (only if custom-table)

If the user selected custom-table, they need to setup that table.

6 - Configure required points to pass

The user selects the number of points required to pass the assignment (devilry.apps.core.models.Assignment.passing_grade_min_points). How they do this depends on the points_to_grade_mapper:

  • If raw-points or passed-failed: Select a number of points between 0 and max_points, including both ends.

  • If custom table: Select a grade from the table.

Note

Plugins can opt out of this step by setting sets_passing_grade_min_points_automatically)

Creating a Plugin

A grading system plugin must implement the devilry.devilry_gradingsystem.pluginregistry.GradingSystemPluginInterface, and it must register the implemented class with devilry.devilry_gradingsystem.pluginregistry.gradingsystempluginregistry.

Please refer to one of the simple grading system plugins, such as devilry_gradingsystemplugin_points, for a starting point for implementing your own plugin.

API