[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

View of /trunk/webwork2/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1132 - (download) (annotate)
Wed Jun 11 20:40:56 2003 UTC (9 years, 11 months ago) by sh002i
File size: 10518 byte(s)
turned off PG warning catching in conf/global.conf.dist
-sam

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: global.conf.dist,v 1.31 2003-06-11 20:40:56 sh002i Exp $
    5 ################################################################################
    6 
    7 # This file is used to set up the default WeBWorK course environment for all
    8 # requests. Values may be overwritten by the course.conf for a specific course.
    9 # All package variables set in this file are added to the course environment.
   10 # If you wish to set a variable here but omit it from the course environment,
   11 # use the "my" keyword. The following variables are available to this file:
   12 #
   13 #         $webworkRoot    directory that contains the WeBWorK distribution
   14 #         $webworkURL     base URL handled by Apache::WeBWorK
   15 #         $pgRoot         directory that contains the PG distribution
   16 #         $courseName     name of the course being used
   17 
   18 ################################################################################
   19 # WeBWorK settings
   20 ################################################################################
   21 
   22 %webworkDirs = (
   23   root    => "$webworkRoot",
   24   bin     => "$webworkRoot/bin",
   25   conf    => "$webworkRoot/conf",
   26   courses => "$webworkRoot/courses",
   27   lib     => "$webworkRoot/lib",
   28   logs    => "$webworkRoot/logs",
   29   macros  => "$pgRoot/macros",
   30   tmp     => "$webworkRoot/tmp",
   31 );
   32 
   33 %webworkFiles = (
   34   environment        => "$webworkDirs{conf}/global.conf",
   35   hardcopySnippets   => {
   36     preamble       => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
   37     setHeader      => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
   38     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
   39     setFooter      => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
   40     setDivider     => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
   41     userDivider    => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
   42     postamble      => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
   43   },
   44   screenSnippets => {
   45     setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg",
   46   },
   47   logs => {
   48     timing         => "$webworkDirs{logs}/timing.log",
   49   },
   50 );
   51 
   52 %webworkURLs = (
   53   root    => "$webworkURLRoot",
   54   home    => "/webwork2_files/index.html",
   55   htdocs  => "/webwork2_files",
   56   docs    => "http://webhost.math.rochester.edu/webworkdocs/docs",
   57   oldProf => "/webwork-old/profLogin.pl",
   58 );
   59 
   60 ################################################################################
   61 # Default course-specific settings
   62 ################################################################################
   63 
   64 my $courseRoot = "$webworkDirs{courses}/$courseName";
   65 %courseDirs = (
   66   root        => "$courseRoot",
   67   DATA        => "$courseRoot/DATA",
   68   auth_DATA   => "$courseRoot/DATA/.auth",
   69   html        => "$courseRoot/html",
   70   html_images => "$courseRoot/html/images",
   71   html_temp   => "$courseRoot/html/tmp",
   72   logs        => "$courseRoot/logs",
   73   scoring     => "$courseRoot/scoring",
   74   templates   => "$courseRoot/templates",
   75   macros      => "$courseRoot/templates/macros",
   76 );
   77 
   78 %courseFiles = (
   79   environment => "$courseDirs{root}/course.conf",
   80   motd        => "$courseDirs{root}/motd.txt",
   81 );
   82 
   83 # quick hack to fix transaction logging. blah.
   84 $webworkFiles{logs}->{transaction}    = "$courseDirs{logs}/transaction.log";
   85 $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
   86 
   87 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
   88 %courseURLs = (
   89   root      => "$courseURLRoot",
   90   html      => "$courseURLRoot",
   91   html_temp => "$courseURLRoot/tmp",
   92 );
   93 
   94 ################################################################################
   95 # Other site-specific options
   96 ################################################################################
   97 
   98 %mail = (
   99   smtpServer => "mail.math.rochester.edu",
  100   smtpSender => "webwork\@math.rochester.edu",
  101   # allowedRecipients defines addresses that the PG system is allowed to
  102   # send mail to. this prevents subtle PG exploits. This should be set
  103   # in course.conf to the addresses of professors of each course. Sending
  104   # mail from the PG system (i.e. questionaires, essay questions) will
  105   # fail if this is not set somewhere (either here or in course.conf).
  106   #allowedRecipients => [
  107   # "yourname\@host.yourdomain.edu",
  108   #],
  109   # if defined, feedbackRecipients overrides the list of recipients for
  110   # feedback email. It's appropriate to set this in the course.conf for
  111   # specific courses, but probably not in global.conf. if not defined,
  112   # mail is sent to all professors and TAs for a given course
  113   #feedbackRecipients => [
  114   # "prof1\@host.yourdomain.edu",
  115   # "prof2\@host.yourdomain.edu",
  116   #],
  117   # feedbackVerbosity:
  118   #  0: send only the feedback comment and context link
  119   #  1: as in 0, plus user, set, problem, and PG data
  120   #  2: as in 1, plus the problem environment (debugging data)
  121   feedbackVerbosity => 1,
  122 );
  123 
  124 %externalPrograms = (
  125   mkdir    => "/bin/mkdir",
  126   tth      => "/usr/local/bin/tth",
  127   pdflatex => "/usr/local/bin/pdflatex",
  128   latex    => "/usr/local/bin/latex",
  129   dvipng   => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
  130   gif2eps  => "$webworkDirs{bin}/gif2eps",
  131   png2eps  => "$webworkDirs{bin}/png2eps",
  132   gif2png  => "$webworkDirs{bin}/gif2png",
  133 );
  134 
  135 ################################################################################
  136 # Frontend options
  137 ################################################################################
  138 
  139 %templates = (
  140   system => "$webworkDirs{conf}/templates/ur.template",
  141 );
  142 
  143 ################################################################################
  144 # Database options
  145 ################################################################################
  146 
  147 # Several database layouts are defined in separate environment files. Select the
  148 # one which should be used by all courses by default, and include it. This can
  149 # be overridden by including a difference environment file in the course.conf of
  150 # a particular course.
  151 
  152 # Include sql.conf to specify a database layout for use with an SQL server.
  153 #include "conf/sql.conf";
  154 
  155 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
  156 # databases. Use this layout if you wish to share courses between WeBWorK 1.x
  157 # and WeBWorK 2.
  158 include "conf/gdbm.conf";
  159 
  160 # Please read the documentation in the file that you chose to include, as there
  161 # are layout-specific options that must be configured.
  162 
  163 ################################################################################
  164 # Authorization system
  165 ################################################################################
  166 
  167 # This lets you specify a minimum permission level needed to perform certain
  168 # actions.  In the current system, >=10 will allow a professor to perform the
  169 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
  170 # action (almost never what you want).
  171 my $ta = 5;
  172 my $professor = 10;
  173 %permissionLevels = (
  174   become_student                 => $professor,
  175   access_instructor_tools        => $ta,
  176   create_and_delete_problem_sets => $professor,
  177   modify_problem_sets            => $professor,
  178   assign_problem_sets            => $professor,
  179 );
  180 
  181 ################################################################################
  182 # Session options
  183 ################################################################################
  184 
  185 # $sessionKeyTimeout defines seconds of inactivity before a key expires
  186 $sessionKeyTimeout = 60*30;
  187 
  188 # $sessionKeyLength defines the length (in characters) of the session key
  189 $sessionKeyLength = 40;
  190 
  191 # @sessionKeyChars lists the legal session key characters
  192 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
  193 
  194 # Practice users are users who's names start with $practiceUser
  195 # (you can comment this out to remove practice user support)
  196 $practiceUserPrefix = "practice";
  197 
  198 # There is a practice user who can be logged in multiple times.  He's
  199 # commented out by default, though, so you don't hurt yourself.  It is
  200 # kindof a backdoor to the practice user system, since he doesn't have a
  201 # password.  Come to think of it, why do we even have this?!
  202 #$debugPracticeUser = "practice666";
  203 
  204 ################################################################################
  205 # PG translation options
  206 ################################################################################
  207 
  208 %pg = (
  209   directories => {
  210     # directories used only by PG
  211     lib    => "$pgRoot/lib",
  212     macros => "$pgRoot/macros",
  213   }, # (not used yet)
  214   options => {
  215     # default translation options
  216     displayMode        => "images",
  217     showOldAnswers     => 1,
  218     showCorrectAnswers => 0,
  219     showHints          => 0,
  220     showSolutions      => 0,
  221     catchWarnings      => 0, # there's a global warning catcher now
  222     # default grader
  223     grader => "avg_problem_grader",
  224   },
  225   # this will be customized in the course.conf file
  226   specialPGEnvironmentVars => {
  227     PRINT_FILE_NAMES_FOR      =>    ['gage','apizer','voloshin','lr003k','professor'],
  228     CAPA_Tools                =>    "$courseDirs{macros}/CAPA_Tools/",
  229     CAPA_MCTools              =>    "$courseDirs{macros}/CAPA_MCTools/",
  230     CAPA_Graphics_URL         =>    "$courseDirs{html}/CAPA_Graphics/",
  231     CAPA_GraphicsDirectory    =>    "$courseDirs{html}CAPA_Graphics/",
  232   },
  233   # modules lists module names and the packages each contains
  234   modules => [
  235     [qw(DynaLoader)],
  236     [qw(Exporter)],
  237     [qw(GD)],
  238 
  239     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  240     [qw(AnswerHash AnswerEvaluator)],
  241     [qw(WWPlot)], # required by Circle (and others)
  242     [qw(Circle)],
  243     [qw(Complex)],
  244     [qw(Complex1)],
  245     [qw(Distributions)],
  246     [qw(Fraction)],
  247     [qw(Fun)],
  248     [qw(Hermite)],
  249     [qw(Label)],
  250     [qw(List)],
  251     [qw(Match)],
  252     [qw(MatrixReal1)], # required by Matrix
  253     [qw(Matrix)],
  254     [qw(Multiple)],
  255     [qw(PGrandom)],
  256     [qw(Regression)],
  257     [qw(Select)],
  258     [qw(Units)],
  259     [qw(VectorField)],
  260   ],
  261   # defaults used by answer evaluators
  262   ansEvalDefaults => {
  263     functAbsTolDefault            => .001,
  264     functLLimitDefault            => .0000001,
  265     functMaxConstantOfIntegration => 1E8,
  266     functNumOfPoints              => 3,
  267     functRelPercentTolDefault     => .1,
  268     functULimitDefault            => .9999999,
  269     functVarDefault               => "x",
  270     functZeroLevelDefault         => 1E-14,
  271     functZeroLevelTolDefault      => 1E-12,
  272     numAbsTolDefault              => .001,
  273     numFormatDefault              => "",
  274     numRelPercentTolDefault       => .1,
  275     numZeroLevelDefault           => 1E-14,
  276     numZeroLevelTolDefault        => 1E-12,
  277   },
  278 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9