WeBWorK Main Forum

Defaults for problem value and #number of attempts

Defaults for problem value and #number of attempts

by Hans Johnston -
Number of replies: 2
Hi,

Is there a way, for a given course, to change the defaults
of a problem value (currently 1) and/or number of
attempts (currently unlimited)?

I understand that a course can be customized to some extent
by modifying the course.conf file in the course's subdirectory
to override the setting in global.conf. But I find no line
in global.conf that I can see that pertains to these settings.

Thanks in advance!

Hans
In reply to Hans Johnston

Re: Defaults for problem value and #number of attempts

by Gavin LaRose -
Hi Hans,

I think the short answer to your question is "no." In the absence of a specified number of attempts and problem value I think the defaults are unlimited and one, respectively, and I don't know of any way to change that.

If you build your sets by importing set definition files, of course, you can set the values in the set definition file and not have to update things through the WeBWorK GUI.

Gavin
In reply to Hans Johnston

Re: Defaults for problem value and #number of attempts

by Arnold Pizer -
Hi Hans,

This is a belated response to your question. The ability to do this has now been added to the head version (not the patched version). It will be added to the patched version for the next major release. If you want to use this now you have to update 3 files.

In .../webwork/webwork2/conf
run
mv global.conf.dist global.conf.dist.save
cvs update -A global.conf.dist
diff global.conf.dist global.conf.dist.save

and then copy the new stuff (near the end of the file) to your global.conf file.

In .../webwork/webwork2/lib/WeBWorK/ContentGenerator
run
cvs update -A Instructor.pm

In .../webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor
run
cvs update -A ProblemSetList.pm

Then restart apache and you should be all set.

Arnie