[system] / trunk / webwork-modperl / conf / global.conf Repository:
ViewVC logotype

View of /trunk/webwork-modperl/conf/global.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 489 - (download) (annotate)
Wed Aug 21 15:27:07 2002 UTC (10 years, 10 months ago) by sh002i
File size: 5994 byte(s)
paper* files are getting their names changed (to protect the guilty?)
-sam

    1 ################################################################################
    2 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    3 # $Id: global.conf,v 1.24 2002-08-21 15:27:06 sh002i Exp $
    4 ################################################################################
    5 
    6 # This file is used to set up the default WeBWorK course environment for all
    7 # requests. Values may be overwritten by the course.conf for a specific course.
    8 # All package variables set in this file are added to the course environment.
    9 # If you wish to set a variable here but omit it from the course environment,
   10 # use the "my" keyword. The following variables are available to this file:
   11 #
   12 #         $webworkRoot    directory that contains the WeBWorK distribution
   13 #         $courseName     name of the course being used
   14 
   15 # this hash defines the locations of directories needed by WeBWorK
   16 %webworkDirs = (
   17   root    => "$webworkRoot",
   18   bin     => "$webworkRoot/bin",
   19   conf    => "$webworkRoot/conf",
   20   courses => "/ww/webwork/courses", #"$webworkRoot/courses", # ***
   21   lib     => "$webworkRoot/lib",
   22   tmp     => "$webworkRoot/tmp",
   23   macros  => "$webworkRoot/macros",
   24 );
   25 
   26 # this hash defines the locations of files needed by WeBWorK
   27 %webworkFiles = (
   28   environment => "$webworkDirs{conf}/global.conf",
   29   hardcopySnippets => {
   30     preamble       => "$webworkDirs{conf}/hardcopyPreamble.tex",
   31     setHeader      => "$webworkDirs{conf}/hardcopySetHeader.pg",
   32     problemDivider => "$webworkDirs{conf}/hardcopyProblemDivider.tex",
   33     setFooter      => "$webworkDirs{conf}/hardcopySetFooter.pg",
   34     setDivider     => "$webworkDirs{conf}/hardcopySetDivider.tex",
   35     postamble      => "$webworkDirs{conf}/hardcopyPostamble.tex",
   36   },
   37   screenSnippets => {
   38     setHeader => "$webworkDirs{conf}/screenSetHeader.pg",
   39   },
   40 );
   41 
   42 # this hash defines URLs needed by WeBWorK
   43 my $webworkURLRoot = "/modperl-sam";
   44 %webworkURLs = (
   45   root   => "$webworkURLRoot",
   46   htdocs => "/webwork_files",
   47   docs   => "/webworkDocs",
   48 );
   49 
   50 # this hash defines the default locations for course subdirectories
   51 my $courseRoot = "$webworkDirs{courses}/$courseName";
   52 %courseDirs = (
   53   root        => "$courseRoot",
   54   DATA        => "$courseRoot/DATA",
   55   auth_DATA   => "$courseRoot/DATA/.auth",
   56   html        => "$courseRoot/html",
   57   html_images => "$courseRoot/html/images",
   58   html_temp   => "$courseRoot/html/tmp",
   59   logs        => "$courseRoot/logs",
   60   scoring     => "$courseRoot/scoring",
   61   templates   => "$courseRoot/templates",
   62   macros      => "$courseRoot/templates/macros",
   63 );
   64 
   65 # this hash defines the default locations for course-specific files
   66 %courseFiles = (
   67   environment       => "$courseDirs{root}/course.conf",
   68 );
   69 
   70 # this hash defines default URLs
   71 my $courseURLRoot = "$webworkURLs{dynamicRoot}/$courseName";
   72 %courseURLs = (
   73   base      => "$courseURLRoot",
   74   html      => "$courseURLRoot",
   75   html_temp => "$courseURLRoot/tmp",
   76 );
   77 
   78 %dbInfo = (
   79   auth_type        => "GDBM",
   80   auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
   81   auth_perm_file   => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
   82   auth_keys_file   => "$courseDirs{auth_DATA}/keys",
   83   wwdb_type        => "GDBM",
   84   wwdb_file        => "$courseDirs{DATA}/$courseName\_webwork_DB",
   85   cldb_type        => "GDBM",
   86   cldb_file        => "$courseDirs{DATA}/$courseName\_classlist_DB",
   87   psvn_digits      => 5,
   88 );
   89 
   90 %templates = (
   91   system => "$webworkDirs{conf}/barebones.template",
   92 );
   93 
   94 # sessionKeyTimeout defines length of inactivity before a key expires (seconds)
   95 $sessionKeyTimeout = 60*30;
   96 
   97 # Practice users are users who's names start with $practiceUser
   98 # (you can comment this out to remove practice user support)
   99 $practiceUserPrefix = "practice";
  100 
  101 # There is a practice user who can be logged in multiple times.  He's
  102 # commented out by default, though, so you don't hurt yourself.  It is
  103 # kindof a backdoor to the practice user system, since he doesn't have a
  104 # password.  Come to think of it, why do we even have this?!
  105 #$debugPracticeUser = "practice666";
  106 
  107 # This lets you specify a minimum permission level needed to perform
  108 # certain actions.  In the current system, >=10 will allow a professor
  109 # to perform the action, >=5 will allow a TA to, and >=0 will allow a
  110 # student to perform an action (almost never what you want).
  111 %permissionLevels = (
  112   "become_student" => 10,
  113 );
  114 
  115 # PG translation stuff
  116 %pg = (
  117   options => {
  118     # default translation options:
  119     displayMode        => "images",
  120     showOldAnswers     => 1,
  121     showCorrectAnswers => 0,
  122     showHints          => 0,
  123     showSolutions      => 0,
  124     # default grader
  125     grader => "avg_problem_grader",
  126   },
  127   # modules lists module names and the packages each contains
  128   modules => [
  129     [qw(DynaLoader)],
  130     [qw(Exporter)],
  131     [qw(GD)],
  132 
  133     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  134     [qw(AnswerHash AnswerEvaluator)],
  135     [qw(WWPlot)], # required by Circle (and others)
  136     [qw(Circle)],
  137     [qw(Complex)],
  138     [qw(Complex1)],
  139     [qw(Distributions)],
  140     [qw(Fraction)],
  141     [qw(Fun)],
  142     [qw(Hermite)],
  143     [qw(Label)],
  144     [qw(List)],
  145     [qw(Match)],
  146     [qw(MatrixReal1)], # required by Matrix
  147     [qw(Matrix)],
  148     [qw(Multiple)],
  149     [qw(PGrandom)],
  150     [qw(Regression)],
  151     [qw(Select)],
  152     [qw(Units)],
  153     [qw(VectorField)],
  154   ],
  155   # defaults used by answer evaluators
  156   ansEvalDefaults => {
  157     functAbsTolDefault            => .001,
  158     functLLimitDefault            => .0000001,
  159     functMaxConstantOfIntegration => 1E8,
  160     functNumOfPoints              => 3,
  161     functRelPercentTolDefault     => .1,
  162     functULimitDefault            => .9999999,
  163     functVarDefault               => "x",
  164     functZeroLevelDefault         => 1E-14,
  165     functZeroLevelTolDefault      => 1E-12,
  166     numAbsTolDefault              => .001,
  167     numFormatDefault              => "",
  168     numRelPercentTolDefault       => .1,
  169     numZeroLevelDefault           => 1E-14,
  170     numZeroLevelTolDefault        => 1E-12,
  171   },
  172 );
  173 
  174 %externalPrograms = (
  175   tth => "/usr/local/bin/tth",
  176   math2img => "$webworkDirs{bin}/math2img",
  177   pdflatex => "$webworkDirs{bin}/pip_pdflatex",
  178 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9