A follow-up. Seeing a dearth of response to my previous post, I
concluded that there was no such script out there, so I've written one.
For those who are interested, the important parts of this are the
- A course-lister. I considered using the
CourseManagement utilities to do this, but in that all that's really
doing is listing the course directories in the
WeBWorKHome/courses, I decided to generate my own listing instead (by, of course, just listing the course directories).
- A course-adder.
This is just a loop that goes through an input list of courses and
instructors building a WeBWorK course roster file for each, and then
addcourse to create the courses.
- A assignment-adder.
This prompts for a template course that has a set of template files for
the assignments that we want to create, and a course number. All of my
classes are named with the course number, so it's then easy to generate
a list of all of the courses in the system to which to add the
assignments. To actually do the assignment, I created a faked
Request object which allows me to build an
ProblemSetList object and use the
importSetsFromDef method to build the sets.
I need to add a course delete-and-archiver part of this, which I think
should also just use the existing course management utilities.
FYI, in case anyone else was interested,
<| Post or View Comments |>