--- trunk/webwork-modperl/conf/global.conf.dist 2004/07/16 00:59:14 2516 +++ trunk/webwork-modperl/conf/global.conf.dist 2004/11/03 22:00:10 2983 @@ -2,7 +2,7 @@ ################################################################################ # WeBWorK Online Homework Delivery System # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ -# $CVSHeader: webwork2/conf/global.conf.dist,v 1.92 2004/07/15 21:22:42 sh002i Exp $ +# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.111 2004/10/22 18:03:12 sh002i 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 @@ -27,7 +27,8 @@ # Seed variables ################################################################################ -# Set these variables to correspond to your configuration and preferences. +# Set these variables to correspond to your configuration and preferences. You +# will need to restart the webserver to reset the variables in this section # URL of WeBWorK handler. $webwork_url = "/webwork2"; @@ -51,7 +52,7 @@ $externalPrograms{mysql} = "/usr/local/bin/mysql"; $externalPrograms{latex} = "/usr/local/bin/latex"; -$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex"; +$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex --shell-escape"; # allows pdflatex to handle .eps files $externalPrograms{dvipng} = "/usr/local/bin/dvipng"; $externalPrograms{tth} = "/usr/local/bin/tth"; @@ -83,10 +84,10 @@ # email. It's appropriate to set this in the course.conf for specific courses, # but probably not in global.conf. if not defined, mail is sent to all # professors and TAs for a given course -$mail{feedbackRecipients} = [ - #'prof1@yourserver.yourdomain.edu', - #'prof2@yourserver.yourdomain.edu', -]; +#$mail{feedbackRecipients} = [ +# 'prof1@yourserver.yourdomain.edu', +# 'prof2@yourserver.yourdomain.edu', +#]; # feedbackVerbosity: # 0: send only the feedback comment and context link @@ -159,7 +160,7 @@ $webworkURLs{oldProf} = "/webwork1/profLogin.pl"; # URL of WeBWorK Bugzilla database. -$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/enter_bug.cgi?product=WeBWorK%20mod_perl"; +$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/"; # Location of jsMath script, used for the jsMath display mode. $webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js"; @@ -277,9 +278,18 @@ # $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; # # would add two buttons, one for the Rochester library and one for the ASU -# library, provided templates/rochester and templates/asu exists. +# library, provided templates/rochester and templates/asu exists either as +# subdirectories or links to other directories. # -$courseFiles{problibs} = {}; +$courseFiles{problibs} = { +# rochesterLibrary => "Rochester", +# asuLibrary => "Arizona State", +# dcdsLibrary => "Detroit CDS", +# dartmouthLibrary => "Dartmouth", +# indianaLibrary => "Indiana", +# osuLibrary => "Ohio State", +# capaLibrary => "CAPA", +}; ################################################################################ # Database options @@ -292,9 +302,9 @@ # Select the default database layout. This can be overridden in the course.conf # file of a particular course. If you choose "gdbm", WeBWorK will be able to # use courses from WeBWorK 1 without first adding course.conf files to them. -# However, the recommended database layout for new courses is "sql". This can -# be set when creating a course. -$dbLayoutName = "sql"; # or "gdbm"; +# However, the recommended database layout for new courses is "sql_single". This +# can be set when creating a course. +$dbLayoutName = "sql_single"; # or "gdbm" or "sql" # This sets the symbol "dbLayout" as an alias for the selected database layout. *dbLayout = $dbLayouts{$dbLayoutName}; @@ -329,6 +339,9 @@ # mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.) $webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log"; +# Logs courses created via the web-based Course Administration module. +$webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; + # The transaction log contains data from each recorded answer submission. This # is useful if the database becomes corrupted. $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; @@ -353,15 +366,34 @@ # additional values, add them here. $siteDefaults{status} = { A => "Audit", + a => "Audit", audit => "Audit", D => "Drop", + d => "Drop", drop => "Drop", withdraw => "Drop", C => "Enrolled", + c => "Enrolled", current => "Enrolled", enrolled => "Enrolled", }; +# Set the default timezone of courses on this server. To get a list of valid +# timezones, run: +# +# perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::all_names' +# +# To get a list of valid timezone "links" (deprecated names), run: +# +# perl -MDateTime::TimeZone -e 'print join "\n", DateTime::TimeZone::links' +# +# If left blank, the system timezone will be used. This is usually what you +# want. You might want to set this if your server is NOT in the same timezone as +# your school. If just a few courses are in a different timezone, set this in +# course.conf for the affected courses instead. +# +$siteDefaults{timezone} = ""; + ################################################################################ # Frontend options ################################################################################ @@ -386,6 +418,9 @@ %permissionLevels = ( report_bugs => $student, + submit_feedback => $student, + change_password => $student, + change_email_address => $student, view_multiple_sets => $ta, view_unopened_sets => $ta, @@ -396,12 +431,12 @@ access_instructor_tools => $ta, score_sets => $professor, send_mail => $professor, + receive_feedback => $ta, create_and_delete_problem_sets => $professor, assign_problem_sets => $professor, modify_problem_sets => $professor, modify_student_data => $professor, - modify_classlist_files => $professor, modify_set_def_files => $professor, modify_scoring_files => $professor, @@ -415,15 +450,12 @@ show_correct_answers_before_answer_date => $ta, show_solutions_before_answer_date => $ta, avoid_recording_answers => $ta, - check_answers_before_open_date => $ta, check_answers_after_open_date_with_attempts => $ta, check_answers_after_open_date_without_attempts => $student, check_answers_after_due_date => $student, check_answers_after_answer_date => $student, - record_answers_when_acting_as_student => $nobody, - # "record_answers_when_acting_as_student" takes precedence # over the following for professors acting as students: record_answers_before_open_date => $nobody, @@ -431,6 +463,13 @@ record_answers_after_open_date_without_attempts => $nobody, record_answers_after_due_date => $nobody, record_answers_after_answer_date => $nobody, + dont_log_past_answers => $professor, + + ##### Behavior of the Hardcopy Processor ##### + + download_hardcopy_multiuser => $ta, + download_hardcopy_multiset => $ta, + download_hardcopy_format_tex => $ta, ); ################################################################################ @@ -500,7 +539,7 @@ $pg{renderer} = "WeBWorK::PG::Local"; # The remote renderer connects to an XML-RPC PG rendering server. -#$pg{renderer} = "WeBWorK::PG::Remote"' +#$pg{renderer} = "WeBWorK::PG::Remote"; ##### Renderer-dependent options @@ -529,6 +568,7 @@ # GRANT ALL ON DvipngDepths.* TO webworkWrite; # # In the last statement, "webworkWrite" should match the user below. + # FIXME: this database can become a table in the 'webwork' database dvipng_depth_db => { dbsource => 'dbi:mysql:DvipngDepths', user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, @@ -536,6 +576,11 @@ }, }; +$pg{displayModeOptions}{jsMath} = { + reportMissingFonts => 1, # set to 0 to prevent the missing font message + missingFontMessage => undef, # set to an HTML string to use for the missing font message +}; + ##### Directories used by PG # The root of the PG directory tree (from pg_root in Apache config). @@ -589,6 +634,8 @@ [qw(Select)], [qw(Units)], [qw(VectorField)], + [qw(Parser Value)], + [qw(Apache::Log)], ]; ##### Answer evaluatior defaults