Set Default Weight of Common Problem on Open edX
By default, problem weight of Blank Common Problem component (including multiple choice components, checkboxes, etc.) has not been set so that the problem weight is based on the number of problems. But this configuration can be override, for example want to set it 100 as default. Follow the steps below:
-
Go to Open edX server console.
-
Open and edit file
/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/capa_base.py
. -
Find the following codes snippet:
... weight = Float( display_name=_("Problem Weight"), help=_("Defines the number of points each problem is worth. " "If the value is not set, each response field in the problem is worth one point."), values={"min": 0, "step": .1}, scope=Scope.settings ) ...
-
Then update the code, add
default=100,
. See the following codes snippet:... weight = Float( display_name=_("Problem Weight"), help=_("Defines the number of points each problem is worth. " "If the value is not set, each response field in the problem is worth one point."), values={"min": 0, "step": .1}, default=100, scope=Scope.settings ) ...
-
Restart LMS and CMS services.