My current draft of PGcourse.pl
#### PGcourse.pl
sub _PGcourse_init {} ; #### Don't reload this file.
loadMacros( "problemRandomize.pl" , "source.pl" ) ;
ProblemRandomize( when => "Always", onlyAfterDue => 0, style => "Button" ) ;
1;
####
to be used with a demo course for instructors will provide two extra items on each problem page:
1) a button "Get a new version of this problem",
2) a button "Show Problem Source".
For (2), in addition to loading "source.pl", it appears necessary and sufficient (?) to
a] uncomment the "ScriptAliasMatch ..." line in webwork2/conf/webwork-apache2-config
b] have protection 555 for webwork2/htdocs/show-source.cgi
c] copy webwork2/htdocs/show-source.cgi to {course}/html with 555 protection
I've done some experiments (attached) with conditional execution [as suggested by Davide in http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2278#p4409]. My objective would be to allow observer status for colleagues of an active class (without granting them professor status).
Although the plain 4-line version works with a 2009 version of $WW, my next posting reports difficulties with an upgraded version of $WW.
WeBWorK Problems
PGcourse.pl, Show Problem Source, problemRandomize
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day