--- trunk/webwork2/conf/global.conf.dist 2004/02/12 14:33:07 1793 +++ trunk/webwork2/conf/global.conf.dist 2004/06/25 23:56:56 2413 @@ -2,7 +2,7 @@ ################################################################################ # WeBWorK Online Homework Delivery System # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ -# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.48 2004/02/12 04:25:47 sh002i Exp $ +# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.78 2004/06/25 16:29:20 jj Exp $ # # This program is free software; you can redistribute it and/or modify it under # the terms of either: (a) the GNU General Public License as published by the @@ -22,7 +22,7 @@ # use the "my" keyword. The following variables are available to this file: # # $webworkRoot directory that contains the WeBWorK distribution -# $webworkURL base URL handled by Apache::WeBWorK +# $webworkURLRoot base URL handled by Apache::WeBWorK # $pgRoot directory that contains the PG distribution # $courseName name of the course being used @@ -40,6 +40,7 @@ htdocs => "$webworkRoot/htdocs", htdocs_temp => "$webworkRoot/htdocs/tmp", equationCache => "$webworkRoot/htdocs/tmp/equations", + local_help => "$webworkRoot/htdocs/helpFiles", lib => "$webworkRoot/lib", logs => "$webworkRoot/logs", macros => "$pgRoot/macros", @@ -50,7 +51,7 @@ environment => "$webworkDirs{conf}/global.conf", hardcopySnippets => { preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", - setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", + setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg", problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", @@ -58,11 +59,12 @@ postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", }, screenSnippets => { - setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", + setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg", }, logs => { timing => "$webworkDirs{logs}/timing.log", }, + # Set this to "" if you don't want to use the equation cache file equationCacheDB => "$webworkDirs{DATA}/equationcache", ); @@ -73,7 +75,11 @@ htdocs_temp => "/webwork2_files/tmp", equationCache => "/webwork2_files/tmp/equations", docs => "http://webhost.math.rochester.edu/webworkdocs/docs", - oldProf => "/webwork-old/profLogin.pl", + local_help => "/webwork2_files/helpFiles", + oldProf => "/webwork1/profLogin.pl", + bugReporter => "http://bugs.webwork.rochester.edu/enter_bug.cgi?product=WeBWorK%20mod_perl", + jsMath => "/webwork2_files/jsMath/jsMath.js", + asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js", ); ################################################################################ @@ -109,7 +115,7 @@ $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; -my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; +my $courseURLRoot = "/webwork2_course_files/$courseName"; %courseURLs = ( root => "$courseURLRoot", html => "$courseURLRoot", @@ -123,14 +129,17 @@ %mail = ( smtpServer => "mail.math.rochester.edu", smtpSender => "webwork\@math.rochester.edu", + # allowedRecipients defines addresses that the PG system is allowed to # send mail to. this prevents subtle PG exploits. This should be set # in course.conf to the addresses of professors of each course. Sending # mail from the PG system (i.e. questionaires, essay questions) will # fail if this is not set somewhere (either here or in course.conf). #allowedRecipients => [ - # 'yourname@host.yourdomain.edu', + # 'prof1@host.yourdomain.edu', + # 'prof2@host.yourdomain.edu', #], + # if defined, feedbackRecipients overrides the list of recipients for # feedback email. It's appropriate to set this in the course.conf for # specific courses, but probably not in global.conf. if not defined, @@ -139,13 +148,18 @@ # 'prof1@host.yourdomain.edu', # 'prof2@host.yourdomain.edu', #], + # feedbackVerbosity: # 0: send only the feedback comment and context link # 1: as in 0, plus user, set, problem, and PG data # 2: as in 1, plus the problem environment (debugging data) - feedbackVerbosity => 1, - editor_window_rows => 15, - editor_window_columns => 100, + feedbackVerbosity => 1, + + # defines the size of the Mail Merge editor window + # FIXME: should this be here? it's UI, not mail + # FIXME: replace this with the auto-size method that TWiki uses + editor_window_rows => 15, + editor_window_columns => 100, ); %externalPrograms = ( @@ -157,6 +171,20 @@ gif2eps => "$webworkDirs{bin}/gif2eps", png2eps => "$webworkDirs{bin}/png2eps", gif2png => "$webworkDirs{bin}/gif2png", + mysql => "/usr/local/bin/mysql", +); + +%siteDefaults = ( + status => { + audit => "Audit", + A => "Audit", + drop => "Drop", + D => "Drop", + withdraw => "Drop", + current => "Enrolled", + C => "Enrolled", + enrolled => "Enrolled", + }, ); ################################################################################ @@ -177,8 +205,21 @@ # Select the default database layout. This can be overridden in the course.conf # file of a particular course. -#*dbLayout = $dbLayouts{sql}; -*dbLayout = $dbLayouts{gdbm}; +#$dbLayoutName = "sql"; +$dbLayoutName = "gdbm"; + +*dbLayout = $dbLayouts{$dbLayoutName}; + +################################################################################ +# Problem library options +################################################################################ + +%problemLibrary = ( + root => "", # set to the top of the problem library, if its installed + sourceSQL => "ProblemLibrary", + userSQL => "webworkRead", + passwordSQL => "", +); ################################################################################ # Authorization system @@ -188,9 +229,15 @@ # actions. In the current system, >=10 will allow a professor to perform the # action, >=5 will allow a TA to, and >=0 will allow a student to perform an # action (almost never what you want). +my $student = 0; my $ta = 5; my $professor = 10; %permissionLevels = ( + report_bugs => $student, + view_multiple_sets => $ta, + view_unopened_sets => $ta, + view_unpublished_sets => $ta, + view_answers => $ta, become_student => $professor, access_instructor_tools => $ta, create_and_delete_problem_sets => $professor, @@ -198,9 +245,12 @@ assign_problem_sets => $professor, modify_student_data => $professor, score_sets => $professor, - send_mail => $professor, + send_mail => $professor, modify_classlist_files => $professor, modify_set_def_files => $professor, + modify_scoring_files => $professor, + create_and_delete_courses => $professor, + fix_course_databases => $professor, ); ################################################################################ @@ -231,10 +281,37 @@ ################################################################################ %pg = ( + # available display modes + displayModes => [ qw(plainText formattedText images jsMath asciimath) ], + # pg options + options => { + # default translation options + displayMode => "images", + showOldAnswers => 1, + showCorrectAnswers => 0, + showHints => 0, + showSolutions => 0, + catchWarnings => 0, # there's a global warning catcher now + # default grader + grader => "avg_problem_grader", + }, # options for various renderers renderers => { "WeBWorK::PG::Remote" => { proxy => "http://localhost:21000/RenderD" + }, + + # next can be baseline, absmiddle, or mysql + dvipng_align => 'baseline', + + # if we choose mysql, we need information on connecting + # to the database. Whatever you use here, you have to + # create the database and grant read/write priveleges to + # the user listed here + dvipng_depth_db => { + dbsource => 'dbi:mysql:DvipngDepths', + user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, + passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, } }, # currently selected renderer @@ -243,27 +320,18 @@ # directories used by PG directories => { # directories used only by PG + root => "$pgRoot", lib => "$pgRoot/lib", macros => "$pgRoot/macros", }, - options => { - # default translation options - displayMode => "images", - showOldAnswers => 1, - showCorrectAnswers => 0, - showHints => 0, - showSolutions => 0, - catchWarnings => 0, # there's a global warning catcher now - # default grader - grader => "avg_problem_grader", - }, - # this will be customized in the course.conf file + # this can be customized in the course.conf file specialPGEnvironmentVars => { PRINT_FILE_NAMES_FOR => [ qw(professor) ], CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", - CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", - CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", + CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", + CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", + onTheFlyImageSize => 400, }, # modules lists module names and the packages each contains modules => [ @@ -309,5 +377,7 @@ numRelPercentTolDefault => .1, numZeroLevelDefault => 1E-14, numZeroLevelTolDefault => 1E-12, + useBaseTenLog => 0, + defaultDisplayMatrixStyle => "[s]", }, );