You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(58) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(53) |
Feb
(56) |
Mar
|
Apr
|
May
(30) |
Jun
(78) |
Jul
(121) |
Aug
(155) |
Sep
(77) |
Oct
(61) |
Nov
(45) |
Dec
(94) |
2006 |
Jan
(116) |
Feb
(33) |
Mar
(11) |
Apr
(23) |
May
(60) |
Jun
(89) |
Jul
(130) |
Aug
(109) |
Sep
(124) |
Oct
(63) |
Nov
(82) |
Dec
(45) |
2007 |
Jan
(31) |
Feb
(35) |
Mar
(123) |
Apr
(36) |
May
(18) |
Jun
(134) |
Jul
(133) |
Aug
(241) |
Sep
(126) |
Oct
(31) |
Nov
(15) |
Dec
(5) |
2008 |
Jan
(11) |
Feb
(6) |
Mar
(16) |
Apr
(29) |
May
(43) |
Jun
(149) |
Jul
(27) |
Aug
(29) |
Sep
(37) |
Oct
(20) |
Nov
(4) |
Dec
(6) |
2009 |
Jan
(34) |
Feb
(30) |
Mar
(16) |
Apr
(6) |
May
(1) |
Jun
(32) |
Jul
(22) |
Aug
(7) |
Sep
(18) |
Oct
(50) |
Nov
(22) |
Dec
(8) |
2010 |
Jan
(17) |
Feb
(15) |
Mar
(10) |
Apr
(9) |
May
(67) |
Jun
(30) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
From: Mike G. v. a. <we...@ma...> - 2008-08-21 18:04:35
|
Update of /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/lang/en_utf8 In directory devel.webwork.rochester.edu:/tmp/cvs-serv20203/en_utf8 Log Message: Directory /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/lang/en_utf8 added to the repository |
From: Mike G. v. a. <we...@ma...> - 2008-08-21 18:03:46
|
Log Message: ----------- Replacing config.html with settings.php to conform with new module standards Added Files: ----------- wwmoodle/wwassignment4/moodle/mod/wwassignment: settings.php Removed Files: ------------- wwmoodle/wwassignment4/moodle/mod/wwassignment: config.html Revision Data ------------- --- wwassignment4/moodle/mod/wwassignment/config.html +++ /dev/null @@ -1,56 +0,0 @@ -<?php -// $Id: config.html,v 1.1 2008/05/22 14:36:24 gage Exp $ - - if( empty($CFG->wwassignment_webworkurl) ) { - $CFG->wwassignment_webworkurl = "HOSTNAME/webwork2"; - } - if( empty($CFG->wwassignment_iframewidth) ) { - $CFG->wwassignment_iframewidth = "95%"; - } - if( empty($CFG->wwassignment_iframeheight) ) { - $CFG->wwassignment_iframeheight = "500px"; - } - if( empty($CFG->wwassignment_rpc_wsdl) ) { - $CFG->wwassignment_rpc_wsdl = "HOSTNAME/webwork2_wsdl"; - } - if( empty($CFG->wwassignment_rpc_key) ) { - $CFG->wwassignment_rpc_key = ""; - } -?> -<form method="post" action="module.php" name="form"> - <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>"> - <table cellpadding="9" cellspacing="0"> - <tr valign='top'> - <td align="right"><label for='wwassignment_webworkurl'><b>wwassignment_webworkurl:</b></label></td> - <td><input type='text' name='wwassignment_webworkurl' id='wwassignment_webworkurl' value="<?php p($CFG->wwassignment_webworkurl); ?>" size="30" /></td> - <td><?php print_string('webwork_url', 'wwassignment'); ?></td> - </tr> - - <tr valign='top'> - <td align='right'><label for='wwassignment_iframewidth'><b>wwassignment_iframewidth:</b></label></td> - <td><input type='text' name='wwassignment_iframewidth' id='wwassignment_iframewidth' value="<?php p($CFG->wwassignment_iframewidth); ?>" size="30" /></td> - <td><?php print_string('iframe_width', 'wwassignment'); ?></td> - </tr> - <tr valign='top'> - <td align='right'><label for='wwassignment_iframeheight'><b>wwassignment_iframeheight:</b></label></td> - <td><input type='text' name='wwassignment_iframeheight' id='wwassignment_iframeheight' value="<?php p($CFG->wwassignment_iframeheight); ?>" size="30" /></td> - - <td><?php print_string('iframe_height', 'wwassignment'); ?></td> - </tr> - <tr valign='top'> - <td align='right'><label for='wwassignment_rpc_wsdl'><b>wwassignment_rpc_wsdl:</b></label></td> - <td><input type='text' name='wwassignment_rpc_wsdl' id='wwassignment_rpc_wsdl' value="<?php p($CFG->wwassignment_rpc_wsdl); ?>" size="30" /></td> - <td><?php print_string('rpc_wsdl', 'wwassignment'); ?></td> - </tr> - <tr valign='top'> - - <td align='right'><label for='wwassignment_rpc_key'><b>wwassignment_rpc_key:</b></label></td> - <td><input type='text' name='wwassignment_rpc_key' id='wwassignment_rpc_key' value="<?php p($CFG->wwassignment_rpc_key); ?>" size="30" /></td> - <td><?php print_string('rpc_key', 'wwassignment'); ?></td> - </tr> - <tr> - <td colspan="3" align="center"><input type="submit" value="<?php print_string("savechanges") ?>" /></td> - </tr> - </table> - -</form> --- /dev/null +++ wwassignment4/moodle/mod/wwassignment/settings.php @@ -0,0 +1,49 @@ +<?php //$Id: settings.php,v 1.1 2008/08/21 17:59:52 gage Exp $ + + +require_once($CFG->dirroot.'/mod/wwassignment/lib.php'); + + + +$settings->add(new admin_setting_configtext('wwassignment_webworkurl', + get_string('webwork_url','wwassignment'), + get_string('webwork_url_desc','wwassignment'), + $CFG->wwassignment_webworkurl, + PARAM_RAW, //param type -- default is PARAM_RAW + 50 // size of blank -- default is 30 + +)); + +$settings->add(new admin_setting_configtext('wwassignment_rpc_wsdl', + get_string('rpc_wsdl','wwassignment'), + get_string('rpc_wsdl_desc','wwassignment'), + $CFG->wwassignment_rpc_wsdl, + PARAM_RAW, //param type -- default is PARAM_RAW + 50 // size of blank -- default is 30 +)); +$settings->add(new admin_setting_configtext('wwassignment_rpc_key', + get_string('rpc_key','wwassignment'), + get_string('rpc_key_desc','wwassignment'), + $CFG->wwassignment_rpc_key, + PARAM_RAW, //param type -- default is PARAM_RAW + 50 // size of blank -- default is 30 +)); + +$settings->add(new admin_setting_configtext('wwassignment_iframewidth', + get_string('iframe_width','wwassignment'), + get_string('iframe_width_desc','wwassignment'), + $CFG->wwassignment_iframewidth, + PARAM_RAW, //param type -- default is PARAM_RAW + 30 // size of blank -- default is 30 +)); +$settings->add(new admin_setting_configtext('wwassignment_iframeheight', + get_string('iframe_height','wwassignment'), + get_string('iframe_height_desc','wwassignment'), + $CFG->wwassignment_iframeheight, + PARAM_RAW, //param type -- default is PARAM_RAW + 30 // size of blank -- default is 30 +)); + + + +?> |
From: Mike G. v. a. <we...@ma...> - 2008-08-21 17:59:43
|
Log Message: ----------- replacing the file config.html by settings.php in accordance with new standards for modules Modified Files: -------------- wwmoodle/wwassignment4/moodle/mod/wwassignment: locallib.php Removed Files: ------------- wwmoodle/wwassignment4/moodle/mod/wwassignment: test.php Revision Data ------------- --- wwassignment4/moodle/mod/wwassignment/test.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - require_once("/Library/WebServer/Documents/moodle//config.php"); -error_log("begin test"); - -global $COURSE; -$COURSE->id=7; -require_once("lib.php"); -require_once("locallib.php"); -error_log("test update_grades for assignment44 and user 41 mabernat"); -$wwassignment = get_record('wwassignment','id',44); //get a sample assignment id=44 -$wwassignment->cmidnumber =1; //How would we usually get this? -wwassignment_update_grades($wwassignment, 0); // -error_log("end test update_grades"); -// error_log("test ww_get_user_grades course 44 user 41"); -// $wwassignment = get_record('wwassignment','id',44); //get a sample assignment id=44 -// $userid =0; //user mabernat 41 user gage 2 user richman 20 -// wwassignment_get_user_grades($wwassignment,$userid); -// error_log("end test ww_get_user_grades"); -error_log("test completed"); - - -?> \ No newline at end of file Index: locallib.php =================================================================== RCS file: /webwork/cvs/system/wwmoodle/wwassignment4/moodle/mod/wwassignment/locallib.php,v retrieving revision 1.2 retrieving revision 1.3 diff -Lwwassignment4/moodle/mod/wwassignment/locallib.php -Lwwassignment4/moodle/mod/wwassignment/locallib.php -u -r1.2 -r1.3 --- wwassignment4/moodle/mod/wwassignment/locallib.php +++ wwassignment4/moodle/mod/wwassignment/locallib.php @@ -302,6 +302,8 @@ $this->client = new soap_client($CFG->wwassignment_rpc_wsdl,'wsdl'); $err = $this->client->getError(); if ($err) { + error_log($err); + error_log($CFG->wwassignment_rpc_wsdl); print_error('construction_error','wwassignment'); } $this->defaultparams = array(); |
From: Mike G. v. a. <we...@ma...> - 2008-08-19 03:22:04
|
Log Message: ----------- Added a link to the PGLabs. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: PGProblemEditor.pm Revision Data ------------- Index: PGProblemEditor.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm,v retrieving revision 1.90.4.1.2.2 retrieving revision 1.90.4.1.2.3 diff -Llib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm -Llib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm -u -r1.90.4.1.2.2 -r1.90.4.1.2.3 --- lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm +++ lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm @@ -568,10 +568,14 @@ CGI::a({-href=>'http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/PGmacrosByFile',-target=>"manpage_window"}, ' macro list ', )," | ", - CGI::a({-href=>'http://webwork.maa.org/wiki/Category:Authors',-target=>"manpage_window"}, + CGI::a({-href=>'http://webwork.maa.org/wiki/Category:Authors',-target=>"wiki_window"}, ' authoring info & help ', )," | ", - CGI::a({-href=>'http://devel.webwork.rochester.edu/doc/cvs/pg_HEAD/',-target=>"manpage_window"}, + CGI::a({-href=>'http://hosted2.webwork.rochester.edu/webwork2/wikiExamples/MathObjectsLabs2/2/?login_practice_user=true',-target=>"lab_window", + }, + ' testing lab ' + )," | ", + CGI::a({-href=>'http://devel.webwork.rochester.edu/doc/cvs/pg_HEAD/',-target=>"doc_window"}, ' pod docs ', )," | ", CGI::a({-href=>$BUGZILLA,-target=>"bugs_window"}, |
From: Mike G. v. a. <we...@ma...> - 2008-08-18 14:55:52
|
Log Message: ----------- added link to the webwork.maa.org author page Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: PGProblemEditor.pm Revision Data ------------- Index: PGProblemEditor.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm,v retrieving revision 1.90.4.1.2.1 retrieving revision 1.90.4.1.2.2 diff -Llib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm -Llib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm -u -r1.90.4.1.2.1 -r1.90.4.1.2.2 --- lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm +++ lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm @@ -568,6 +568,9 @@ CGI::a({-href=>'http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/PGmacrosByFile',-target=>"manpage_window"}, ' macro list ', )," | ", + CGI::a({-href=>'http://webwork.maa.org/wiki/Category:Authors',-target=>"manpage_window"}, + ' authoring info & help ', + )," | ", CGI::a({-href=>'http://devel.webwork.rochester.edu/doc/cvs/pg_HEAD/',-target=>"manpage_window"}, ' pod docs ', )," | ", |
From: dpvc v. a. <we...@ma...> - 2008-08-15 12:56:32
|
Log Message: ----------- Fixed some typos and updated a couple of examples. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/doc/parser/docs: UsingParser.pod Revision Data ------------- Index: UsingParser.pod =================================================================== RCS file: /webwork/cvs/system/webwork2/doc/parser/docs/UsingParser.pod,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -Ldoc/parser/docs/UsingParser.pod -Ldoc/parser/docs/UsingParser.pod -u -r1.1.2.1 -r1.1.2.2 --- doc/parser/docs/UsingParser.pod +++ doc/parser/docs/UsingParser.pod @@ -49,7 +49,9 @@ variable by another formula, if you wish. To make this easier, substitute will apply Formula() to any string values automatically. E.g., + Formula("x-1")->substitute(x=>"y") + returns "y-1" as a formula. =item $f->string @@ -353,7 +355,7 @@ and can change, remove or list the constants via methods like those used for variables above. The command - $M = $constant->constants->get('M'); + $M = $context->constants->get('M'); will return the value of the consant M. (See the pg/lib/Value/Context/Data.pm file for more information on the methods @@ -362,16 +364,23 @@ To add new predefined words (like 'NONE' and 'DNE'), use something like - $constant->strings->add(TRUE=>{},FALSE=>{}); + $context->strings->add(TRUE=>{},FALSE=>{}); + +Strings are case-insensitive, unless you say otherwise. To mark a +string as being case-senstive, use + + $context->strings->add(TRUE => {caseSensitive=>1}); -Note that strings are case-sensitive, so you might want to add +You may want to privide several forms for the same word; to do so, +make the additional words into aliases: - $constant->strings->add( - true => {alias=>'TRUE'}, - false => {alias=>'FALSE'}, + $context->strings->add( + T => {alias=>'TRUE'}, + F => {alias=>'FALSE'}, ); -so that either "TRUE" or "true" will be interpreted as TRUE. +so that either "TRUE" or "T" will be interpreted as TRUE, and +similarly for "FALSE" and "F"; There are a number of values stored in the context that control things like the tolerance used when comparing numbers, and so on. You |
From: Sam H. v. a. <we...@ma...> - 2008-08-12 16:49:02
|
Log Message: ----------- backport (sh002i): allow commas in directory names :P Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: FileManager.pm Revision Data ------------- Index: FileManager.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm,v retrieving revision 1.26.2.4 retrieving revision 1.26.2.4.2.1 diff -Llib/WeBWorK/ContentGenerator/Instructor/FileManager.pm -Llib/WeBWorK/ContentGenerator/Instructor/FileManager.pm -u -r1.26.2.4 -r1.26.2.4.2.1 --- lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm +++ lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm @@ -1068,7 +1068,7 @@ my $original = $pwd; $pwd =~ s!(^|/)\.!$1_!g; # don't enter hidden directories $pwd =~ s!^/!!; # remove leading / - $pwd =~ s![^-_./A-Z0-9~ ]!_!gi; # no illegal characters + $pwd =~ s![^-_./A-Z0-9~, ]!_!gi; # no illegal characters return if $renameError && $original ne $pwd; $pwd = '.' if $pwd eq ''; |
From: Sam H. v. a. <we...@ma...> - 2008-08-12 16:47:00
|
Log Message: ----------- allow commas in directory names :P Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: FileManager.pm Revision Data ------------- Index: FileManager.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -Llib/WeBWorK/ContentGenerator/Instructor/FileManager.pm -Llib/WeBWorK/ContentGenerator/Instructor/FileManager.pm -u -r1.30 -r1.31 --- lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm +++ lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm @@ -1068,7 +1068,7 @@ my $original = $pwd; $pwd =~ s!(^|/)\.!$1_!g; # don't enter hidden directories $pwd =~ s!^/!!; # remove leading / - $pwd =~ s![^-_./A-Z0-9~ ]!_!gi; # no illegal characters + $pwd =~ s![^-_./A-Z0-9~, ]!_!gi; # no illegal characters return if $renameError && $original ne $pwd; $pwd = '.' if $pwd eq ''; |
From: dpvc v. a. <we...@ma...> - 2008-08-11 14:21:39
|
Log Message: ----------- Fixed typos in comments. Modified Files: -------------- pg/macros: parserAutoStrings.pl Revision Data ------------- Index: parserAutoStrings.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/parserAutoStrings.pl,v retrieving revision 1.4 retrieving revision 1.5 diff -Lmacros/parserAutoStrings.pl -Lmacros/parserAutoStrings.pl -u -r1.4 -r1.5 --- macros/parserAutoStrings.pl +++ macros/parserAutoStrings.pl @@ -16,7 +16,7 @@ =head1 NAME -parserAutoStrings.pl - Force String() to accpet any string. +parserAutoStrings.pl - Force String() to accept any string. =head1 DESCRIPTION @@ -24,15 +24,16 @@ legal value. (It will add the string to the context if it isn't already defined.) -To acocmplish this, put the lines +To accomplish this, put the lines loadMacros("parserAutoStrings.pl"); AutoStrings(); -(You can also pass AutoStrings a context pointer if you wish to -alter context other than the current one.) +at the beginning of your problem file. (You can also pass AutoStrings +a context pointer if you wish to alter context other than the current +one.) -There is also a routine to help making strings easier to predefine. +There is also a routine to help make strings easier to predefine. For example: loadMacros("parserAutoStrings.pl"); |
From: Mike G. v. a. <we...@ma...> - 2008-08-07 19:12:41
|
Log Message: ----------- changed browse_library to browse_npl_library to prevent confusion with the NPL directory Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator/Instructor: SetMaker.pm Revision Data ------------- Index: SetMaker.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm,v retrieving revision 1.77.2.4.2.1 retrieving revision 1.77.2.4.2.2 diff -Llib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm -Llib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm -u -r1.77.2.4.2.1 -r1.77.2.4.2.2 --- lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm +++ lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm @@ -733,7 +733,7 @@ my $library_selected = $self->{current_library_set}; my $set_selected = $r->param('local_sets'); my (@dis1, @dis2, @dis3, @dis4) = (); - @dis1 = (-disabled=>1) if($browse_which eq 'browse_library'); + @dis1 = (-disabled=>1) if($browse_which eq 'browse_npl_library'); @dis2 = (-disabled=>1) if($browse_which eq 'browse_local'); @dis3 = (-disabled=>1) if($browse_which eq 'browse_mysets'); @dis4 = (-disabled=>1) if($browse_which eq 'browse_setdefs'); @@ -786,7 +786,7 @@ print CGI::Tr(CGI::td({-class=>"InfoPanel", -align=>"center"}, "Browse ", - CGI::submit(-name=>"browse_library", -value=>"National Problem Library", -style=>$these_widths, @dis1), + CGI::submit(-name=>"browse_npl_library", -value=>"National Problem Library", -style=>$these_widths, @dis1), CGI::submit(-name=>"browse_local", -value=>"Local Problems", -style=>$these_widths, @dis2), CGI::submit(-name=>"browse_mysets", -value=>"From This Course", -style=>$these_widths, @dis3), CGI::submit(-name=>"browse_setdefs", -value=>"Set Definition Files", -style=>$these_widths, @dis4), @@ -800,7 +800,7 @@ $self->browse_local_panel($library_selected); } elsif ($browse_which eq 'browse_mysets') { $self->browse_mysets_panel($library_selected, $list_of_local_sets); - } elsif ($browse_which eq 'browse_library') { + } elsif ($browse_which eq 'browse_npl_library') { $self->browse_library_panel(); } elsif ($browse_which eq 'browse_setdefs') { $self->browse_setdef_panel($library_selected); @@ -849,7 +849,7 @@ $problem_output .= $pg->{flags}->{comment} if($pg->{flags}->{comment}); - #if($self->{r}->param('browse_which') ne 'browse_library') { + #if($self->{r}->param('browse_which') ne 'browse_npl_library') { my $problem_seed = $self->{'problem_seed'} || 1234; my $edit_link = CGI::a({href=>$self->systemLink( $urlpath->newFromModule("WeBWorK::ContentGenerator::Instructor::PGProblemEditor", @@ -981,7 +981,7 @@ ############# Default of which problem selector to display - my $browse_which = $r->param('browse_which') || 'browse_library'; + my $browse_which = $r->param('browse_which') || 'browse_npl_library'; @@ -996,7 +996,7 @@ ########### Start the logic through if elsif elsif ... debug("browse_lib", $r->param("$browse_lib")); - debug("browse_library", $r->param("browse_library")); + debug("browse_npl_library", $r->param("browse_npl_library")); debug("browse_mysets", $r->param("browse_mysets")); debug("browse_setdefs", $r->param("browse_setdefs")); ##### Asked to browse certain problems @@ -1004,8 +1004,8 @@ $browse_which = $browse_lib; $self->{current_library_set} = ""; $use_previous_problems = 0; @pg_files = (); ## clear old problems - } elsif ($r->param('browse_library')) { - $browse_which = 'browse_library'; + } elsif ($r->param('browse_npl_library')) { + $browse_which = 'browse_npl_library'; $self->{current_library_set} = ""; $use_previous_problems = 0; @pg_files = (); ## clear old problems } elsif ($r->param('browse_local')) { |
From: Mike G. v. a. <we...@ma...> - 2008-08-07 19:10:49
|
Log Message: ----------- Make htmlURL available within set Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK: PG.pm Revision Data ------------- Index: PG.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/PG.pm,v retrieving revision 1.72.2.1.2.1 retrieving revision 1.72.2.1.2.2 diff -Llib/WeBWorK/PG.pm -Llib/WeBWorK/PG.pm -u -r1.72.2.1.2.1 -r1.72.2.1.2.2 --- lib/WeBWorK/PG.pm +++ lib/WeBWorK/PG.pm @@ -151,6 +151,8 @@ $envir{macrosPath} = $ce->{pg}->{directories}{macrosPath}; $envir{appletPath} = $ce->{pg}->{directories}{appletPath}; $envir{pgDirectories} = $ce->{pg}->{directories}; + $envir{webworkHtmlDirectory} = $ce->{webworkDirs}->{htdocs}."/"; + $envir{webworkHtmlURL} = $ce->{webworkURLs}->{htdocs}."/"; $envir{htmlDirectory} = $ce->{courseDirs}->{html}."/"; $envir{htmlURL} = $ce->{courseURLs}->{html}."/"; $envir{templateDirectory} = $ce->{courseDirs}->{templates}."/"; |
From: Arnie P. v. a. <we...@ma...> - 2008-08-07 00:51:42
|
Log Message: ----------- Back ported change of dvipng parameter -bgTransparent to -bgtransparent Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK: Constants.pm Revision Data ------------- Index: Constants.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/Constants.pm,v retrieving revision 1.52.4.3.2.2 retrieving revision 1.52.4.3.2.3 diff -Llib/WeBWorK/Constants.pm -Llib/WeBWorK/Constants.pm -u -r1.52.4.3.2.2 -r1.52.4.3.2.3 --- lib/WeBWorK/Constants.pm +++ lib/WeBWorK/Constants.pm @@ -88,7 +88,7 @@ # but does not give transparent backgrounds. It does not work for version 1.2. It has not # been tested with other versions. # -$WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgTransparent -D120 -q -depth"; +$WeBWorK::PG::ImageGenerator::DvipngArgs = "-bgtransparent -D120 -q -depth"; # If true, don't delete temporary files # |
From: Arnie P. v. a. <we...@ma...> - 2008-08-06 19:39:43
|
Log Message: ----------- Backporting Gavin's bug fix to rel-2-4-patches Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator: Hardcopy.pm Revision Data ------------- Index: Hardcopy.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm,v retrieving revision 1.94.2.2.2.1 retrieving revision 1.94.2.2.2.2 diff -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -u -r1.94.2.2.2.1 -r1.94.2.2.2.2 --- lib/WeBWorK/ContentGenerator/Hardcopy.pm +++ lib/WeBWorK/ContentGenerator/Hardcopy.pm @@ -227,7 +227,8 @@ } $canShowScore{"$uid!$sid"} = - ( ! defined( $userSet->hide_score ) ) || + ( ! defined( $userSet->hide_score ) || + $userSet->hide_score eq '' ) || ( $userSet ->hide_score eq 'N' || ( $userSet->hide_score eq 'BeforeAnswerDate' && time >= $userSet->answer_date ) ); |
From: Gavin L. v. a. <we...@ma...> - 2008-08-06 16:22:30
|
Log Message: ----------- Hardcopy.pm: bugfix to deal with empty values coming in for a set's hide_score parameter. Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator: Hardcopy.pm Revision Data ------------- Index: Hardcopy.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm,v retrieving revision 1.97 retrieving revision 1.98 diff -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -u -r1.97 -r1.98 --- lib/WeBWorK/ContentGenerator/Hardcopy.pm +++ lib/WeBWorK/ContentGenerator/Hardcopy.pm @@ -227,7 +227,8 @@ } $canShowScore{"$uid!$sid"} = - ( ! defined( $userSet->hide_score ) ) || + ( ! defined( $userSet->hide_score ) || + $userSet->hide_score eq '' ) || ( $userSet ->hide_score eq 'N' || ( $userSet->hide_score eq 'BeforeAnswerDate' && time >= $userSet->answer_date ) ); |
From: Mike G. v. a. <we...@ma...> - 2008-08-06 15:54:21
|
Log Message: ----------- Insert commented out section describing how to enable the show-source.cgi script. This enables you to place a button illustrating the source code in any problem provided that show-source.cgi has been copied into the course/html directory for that course. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/conf: webwork.apache2-config.dist Revision Data ------------- Index: webwork.apache2-config.dist =================================================================== RCS file: /webwork/cvs/system/webwork2/conf/webwork.apache2-config.dist,v retrieving revision 1.6.2.3 retrieving revision 1.6.2.3.2.1 diff -Lconf/webwork.apache2-config.dist -Lconf/webwork.apache2-config.dist -u -r1.6.2.3 -r1.6.2.3.2.1 --- conf/webwork.apache2-config.dist +++ conf/webwork.apache2-config.dist @@ -27,6 +27,18 @@ # FollowSymlinksOption from working when specified # in a <Perl> section. See below for workaround. + +# Uncomment the ScriptAliasMatch to allow access to show-source.cgi +# This allows the "show source" button to work for demonstration "courses" +# See for example Davide Cervone's Knoxville lectures on math objects +# It requires that a show-source.cgi script be customized and placed in +# the myCourse/html directory of the course +# The "show source" button is most useful for webwork "courses" used to train new authors +# It is not desirable to expose the code of regular homework questions to students + +# ScriptAliasMatch /webwork2_course_files/([^/]*)/show-source.cgi/(.*) /opt/webwork/courses/$1/html/show-source.cgi/$2 + + PerlModule mod_perl2 <Perl> |
From: Mike G. v. a. <we...@ma...> - 2008-08-06 15:52:02
|
Log Message: ----------- Indicate how to install Chromatic.pm module when using the graph problems developed at Northern Arizona University Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/conf: global.conf.dist Revision Data ------------- Index: global.conf.dist =================================================================== RCS file: /webwork/cvs/system/webwork2/conf/global.conf.dist,v retrieving revision 1.189.2.7.2.8 retrieving revision 1.189.2.7.2.9 diff -Lconf/global.conf.dist -Lconf/global.conf.dist -u -r1.189.2.7.2.8 -r1.189.2.7.2.9 --- conf/global.conf.dist +++ conf/global.conf.dist @@ -921,8 +921,9 @@ [qw(Parser Value)], [qw(Parser::Legacy)], # [qw(SaveFile)], -# [qw(Chromatic)], - [qw(Applet FlashApplet)], +# [qw(Chromatic)], # for Northern Arizona graph problems +# # -- follow instructions at libraries/nau_problib/lib/README to install + [qw(Applet FlashApplet JavaApplet)], ]; ##### Answer evaluatior defaults |
From: Arnie P. v. a. <we...@ma...> - 2008-07-30 16:04:22
|
Log Message: ----------- Removed MIME::Parser from list of modules --- it's not used Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/bin: check_modules.pl Revision Data ------------- Index: check_modules.pl =================================================================== RCS file: /webwork/cvs/system/webwork2/bin/check_modules.pl,v retrieving revision 1.12.2.4 retrieving revision 1.12.2.4.2.1 diff -Lbin/check_modules.pl -Lbin/check_modules.pl -u -r1.12.2.4 -r1.12.2.4.2.1 --- bin/check_modules.pl +++ bin/check_modules.pl @@ -65,7 +65,6 @@ Iterator Iterator::Util Mail::Sender - MIME::Parser MIME::Base64 Net::IP Net::LDAPS |
From: Arnie P. v. a. <we...@ma...> - 2008-07-30 16:00:24
|
Log Message: ----------- Removed MIME::Parser from list of modules --- it's not used Modified Files: -------------- webwork2/bin: check_modules.pl Revision Data ------------- Index: check_modules.pl =================================================================== RCS file: /webwork/cvs/system/webwork2/bin/check_modules.pl,v retrieving revision 1.16 retrieving revision 1.17 diff -Lbin/check_modules.pl -Lbin/check_modules.pl -u -r1.16 -r1.17 --- bin/check_modules.pl +++ bin/check_modules.pl @@ -65,7 +65,6 @@ Iterator Iterator::Util Mail::Sender - MIME::Parser MIME::Base64 Net::IP Net::LDAPS |
From: Arnie P. v. a. <we...@ma...> - 2008-07-30 14:57:36
|
Log Message: ----------- Port rel-2-4-patches changes to Head Modified Files: -------------- pg/macros: PGbasicmacros.pl Revision Data ------------- Index: PGbasicmacros.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/PGbasicmacros.pl,v retrieving revision 1.53 retrieving revision 1.54 diff -Lmacros/PGbasicmacros.pl -Lmacros/PGbasicmacros.pl -u -r1.53 -r1.54 --- macros/PGbasicmacros.pl +++ macros/PGbasicmacros.pl @@ -1234,8 +1234,8 @@ # Alternate definition of BR which is slightly more flexible and gives more white space in printed output # which looks better but kills more trees. sub BR { MODES( TeX => '\\leavevmode\\\\\\relax ', Latex2HTML => '\\begin{rawhtml}<BR>\\end{rawhtml}', HTML => '<BR>'); }; -sub LQ { MODES( TeX => "``", Latex2HTML => '"', HTML => '"' ); }; -sub RQ { MODES( TeX => "''", Latex2HTML => '"', HTML => '"' ); }; +sub LQ { MODES( TeX => "\\lq\\lq{}", Latex2HTML => '"', HTML => '"' ); }; +sub RQ { MODES( TeX => "\\rq\\rq{}", Latex2HTML => '"', HTML => '"' ); }; sub BM { MODES(TeX => '\\(', Latex2HTML => '\\(', HTML => ''); }; # begin math mode sub EM { MODES(TeX => '\\)', Latex2HTML => '\\)', HTML => ''); }; # end math mode sub BDM { MODES(TeX => '\\[', Latex2HTML => '\\[', HTML => '<P ALIGN=CENTER>'); }; #begin displayMath mode |
From: Arnie P. v. a. <we...@ma...> - 2008-07-30 14:47:40
|
Log Message: ----------- Port rel-2-4-patches changes to Head Modified Files: -------------- webwork2/courses.dist/modelCourse/templates/setOrientation: parserOrientation.pl prob06.pg prob10.pg Revision Data ------------- Index: prob06.pg =================================================================== RCS file: /webwork/cvs/system/webwork2/courses.dist/modelCourse/templates/setOrientation/prob06.pg,v retrieving revision 1.1 retrieving revision 1.2 diff -Lcourses.dist/modelCourse/templates/setOrientation/prob06.pg -Lcourses.dist/modelCourse/templates/setOrientation/prob06.pg -u -r1.1 -r1.2 --- courses.dist/modelCourse/templates/setOrientation/prob06.pg +++ courses.dist/modelCourse/templates/setOrientation/prob06.pg @@ -30,7 +30,7 @@ $PAR END_TEXT -$BRACES = HTML('{}','\char`\{\char`\}'); +$BRACES = HTML('{}','\char123\char125'); BEGIN_TEXT Index: prob10.pg =================================================================== RCS file: /webwork/cvs/system/webwork2/courses.dist/modelCourse/templates/setOrientation/prob10.pg,v retrieving revision 1.1 retrieving revision 1.2 diff -Lcourses.dist/modelCourse/templates/setOrientation/prob10.pg -Lcourses.dist/modelCourse/templates/setOrientation/prob10.pg -u -r1.1 -r1.2 --- courses.dist/modelCourse/templates/setOrientation/prob10.pg +++ courses.dist/modelCourse/templates/setOrientation/prob10.pg @@ -46,8 +46,8 @@ $P = non_zero_point3D(); -$LANGLE = HTML('<',"\char`\<"); -$RANGLE = HTML('>',"\char`\>"); +$LANGLE = HTML('<',"\char60 "); +$RANGLE = HTML('>',"\char62 "); Context()->flags->set(ijk=>1); Context()->texStrings; Index: parserOrientation.pl =================================================================== RCS file: /webwork/cvs/system/webwork2/courses.dist/modelCourse/templates/setOrientation/parserOrientation.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -Lcourses.dist/modelCourse/templates/setOrientation/parserOrientation.pl -Lcourses.dist/modelCourse/templates/setOrientation/parserOrientation.pl -u -r1.1 -r1.2 --- courses.dist/modelCourse/templates/setOrientation/parserOrientation.pl +++ courses.dist/modelCourse/templates/setOrientation/parserOrientation.pl @@ -13,7 +13,7 @@ # Special use of CARET to have it work in non-math mode # $CARET = MODES( - TeX => '\hbox{\texttt{\char`\^}}', + TeX => '\hbox{\texttt{\char94}}', Latex2HTML => '^', HTML => '^' ); |
From: Mike G. v. a. <we...@ma...> - 2008-07-25 17:41:28
|
Log Message: ----------- PGbasicmacros: I've used "\lq\lq{}" instead of "``" in $LQ to prevent conflict with the ``....`` construct. I also changed $RQ to "\rq\rq{}" for consistency. In unionMacros.pl I removed the redefinition of $LQ and $RQ in parserOrientation.pl I changed the definition of ^ to use \char94 instead of \char`\^ In prob6.pg I changed \char`\{ to \char123 and also \char`\} to \char125 In prob10.pg I changed \char`\< to \char60 (and > to \char62) The pdf file works now for setOrientation. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/courses.dist/modelCourse/templates/setOrientation: parserOrientation.pl prob06.pg prob10.pg Revision Data ------------- Index: prob06.pg =================================================================== RCS file: /webwork/cvs/system/webwork2/courses.dist/modelCourse/templates/setOrientation/prob06.pg,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -Lcourses.dist/modelCourse/templates/setOrientation/prob06.pg -Lcourses.dist/modelCourse/templates/setOrientation/prob06.pg -u -r1.1.2.1 -r1.1.2.2 --- courses.dist/modelCourse/templates/setOrientation/prob06.pg +++ courses.dist/modelCourse/templates/setOrientation/prob06.pg @@ -30,7 +30,7 @@ $PAR END_TEXT -$BRACES = HTML('{}','\char`\{\char`\}'); +$BRACES = HTML('{}','\char123\char125'); BEGIN_TEXT Index: prob10.pg =================================================================== RCS file: /webwork/cvs/system/webwork2/courses.dist/modelCourse/templates/setOrientation/prob10.pg,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -Lcourses.dist/modelCourse/templates/setOrientation/prob10.pg -Lcourses.dist/modelCourse/templates/setOrientation/prob10.pg -u -r1.1.2.1 -r1.1.2.2 --- courses.dist/modelCourse/templates/setOrientation/prob10.pg +++ courses.dist/modelCourse/templates/setOrientation/prob10.pg @@ -46,8 +46,8 @@ $P = non_zero_point3D(); -$LANGLE = HTML('<',"\char`\<"); -$RANGLE = HTML('>',"\char`\>"); +$LANGLE = HTML('<',"\char60 "); +$RANGLE = HTML('>',"\char62 "); Context()->flags->set(ijk=>1); Context()->texStrings; Index: parserOrientation.pl =================================================================== RCS file: /webwork/cvs/system/webwork2/courses.dist/modelCourse/templates/setOrientation/parserOrientation.pl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -Lcourses.dist/modelCourse/templates/setOrientation/parserOrientation.pl -Lcourses.dist/modelCourse/templates/setOrientation/parserOrientation.pl -u -r1.1.2.1 -r1.1.2.2 --- courses.dist/modelCourse/templates/setOrientation/parserOrientation.pl +++ courses.dist/modelCourse/templates/setOrientation/parserOrientation.pl @@ -13,7 +13,7 @@ # Special use of CARET to have it work in non-math mode # $CARET = MODES( - TeX => '\hbox{\texttt{\char`\^}}', + TeX => '\hbox{\texttt{\char94}}', Latex2HTML => '^', HTML => '^' ); |
From: Mike G. v. a. <we...@ma...> - 2008-07-25 16:15:06
|
Log Message: ----------- Changed $LQ so that it contains "\lq\lq{}" instead of "``". This removes a conflict with the `` .... `` command. Tags: ---- rel-2-4-patches Modified Files: -------------- pg/macros: PGbasicmacros.pl Revision Data ------------- Index: PGbasicmacros.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/PGbasicmacros.pl,v retrieving revision 1.47.2.2.2.3 retrieving revision 1.47.2.2.2.4 diff -Lmacros/PGbasicmacros.pl -Lmacros/PGbasicmacros.pl -u -r1.47.2.2.2.3 -r1.47.2.2.2.4 --- macros/PGbasicmacros.pl +++ macros/PGbasicmacros.pl @@ -1234,8 +1234,8 @@ # Alternate definition of BR which is slightly more flexible and gives more white space in printed output # which looks better but kills more trees. sub BR { MODES( TeX => '\\leavevmode\\\\\\relax ', Latex2HTML => '\\begin{rawhtml}<BR>\\end{rawhtml}', HTML => '<BR>'); }; -sub LQ { MODES( TeX => "``", Latex2HTML => '"', HTML => '"' ); }; -sub RQ { MODES( TeX => "''", Latex2HTML => '"', HTML => '"' ); }; +sub LQ { MODES( TeX => "\\lq\\lq{}", Latex2HTML => '"', HTML => '"' ); }; +sub RQ { MODES( TeX => "\\rq\\rq{}", Latex2HTML => '"', HTML => '"' ); }; sub BM { MODES(TeX => '\\(', Latex2HTML => '\\(', HTML => ''); }; # begin math mode sub EM { MODES(TeX => '\\)', Latex2HTML => '\\)', HTML => ''); }; # end math mode sub BDM { MODES(TeX => '\\[', Latex2HTML => '\\[', HTML => '<P ALIGN=CENTER>'); }; #begin displayMath mode |
From: Mike G. v. a. <we...@ma...> - 2008-07-24 15:06:00
|
Log Message: ----------- adds support for allowing professors to see paths to file names Modified Files: -------------- webwork2/conf: global.conf.dist Revision Data ------------- Index: global.conf.dist =================================================================== RCS file: /webwork/cvs/system/webwork2/conf/global.conf.dist,v retrieving revision 1.210 retrieving revision 1.211 diff -Lconf/global.conf.dist -Lconf/global.conf.dist -u -r1.210 -r1.211 --- conf/global.conf.dist +++ conf/global.conf.dist @@ -686,6 +686,7 @@ check_answers_after_due_date => "guest", check_answers_after_answer_date => "guest", create_new_set_version_when_acting_as_student => undef, + print_path_to_problem => "professor", # see "Special" PG environment variables record_set_version_answers_when_acting_as_student => undef, record_answers_when_acting_as_student => undef, # "record_answers_when_acting_as_student" takes precedence @@ -852,7 +853,10 @@ ##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.) # Users for whom to print the file name of the PG file being processed. -$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; +$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ]; + # ie file paths are printed for 'gage' +$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_PERMISSION_LEVEL} = $userRoles{ $permissionLevels{print_path_to_problem} }; + # (file paths are also printed for anyone with this permission or higher) # Locations of CAPA resources. (Only necessary if you need to use converted CAPA # problems.) @@ -917,7 +921,7 @@ [qw(Parser Value)], [qw(Parser::Legacy)], # [qw(SaveFile)], - [qw(Chromatic)], +# [qw(Chromatic)], [qw(Applet FlashApplet)], ]; |
From: Mike G. v. a. <we...@ma...> - 2008-07-24 13:49:38
|
Log Message: ----------- Changed "die" to "warn" when restoring tables. This gives a bit more room to workaround problems with updating the tables for old courses. Once we have a foolproof way of updating old courses we might move this back to a die message. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/DB/Schema/NewSQL: Std.pm Revision Data ------------- Index: Std.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm,v retrieving revision 1.10.2.2.2.2 retrieving revision 1.10.2.2.2.3 diff -Llib/WeBWorK/DB/Schema/NewSQL/Std.pm -Llib/WeBWorK/DB/Schema/NewSQL/Std.pm -u -r1.10.2.2.2.2 -r1.10.2.2.2.3 --- lib/WeBWorK/DB/Schema/NewSQL/Std.pm +++ lib/WeBWorK/DB/Schema/NewSQL/Std.pm @@ -250,7 +250,7 @@ my $exit = $? >> 8; my $signal = $? & 127; my $core = $? & 128; - die "Failed to restore table '".$self->sql_table_name."' with command '$restore_cmd' (exit=$exit signal=$signal core=$core): $restore_out\n"; + warn "Failed to restore table '".$self->sql_table_name."' with command '$restore_cmd' (exit=$exit signal=$signal core=$core): $restore_out\n"; } return 1; |
From: Mike G. v. a. <we...@ma...> - 2008-07-24 13:46:04
|
Log Message: ----------- Fixed minor bug that complains if the problem-maxattempts field is not numeric. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator: ProblemSet.pm Revision Data ------------- Index: ProblemSet.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/ProblemSet.pm,v retrieving revision 1.88.2.1.2.1 retrieving revision 1.88.2.1.2.2 diff -Llib/WeBWorK/ContentGenerator/ProblemSet.pm -Llib/WeBWorK/ContentGenerator/ProblemSet.pm -u -r1.88.2.1.2.1 -r1.88.2.1.2.2 --- lib/WeBWorK/ContentGenerator/ProblemSet.pm +++ lib/WeBWorK/ContentGenerator/ProblemSet.pm @@ -385,7 +385,7 @@ my $interactive = CGI::a({-href=>$interactiveURL}, "Problem $problemID"); my $attempts = $problem->num_correct + $problem->num_incorrect; - my $remaining = $problem->max_attempts < 0 + my $remaining = (($problem->max_attempts||-1) < 0) #a blank yields 'infinite' because it evaluates as false with out giving warnings about comparing non-numbers ? "unlimited" : $problem->max_attempts - $attempts; my $rawStatus = $problem->status || 0; |