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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 438 - (download) (annotate)
Thu Jul 25 19:49:46 2002 UTC (10 years, 10 months ago) by sh002i
File size: 5492 byte(s)
*** empty log message ***

    1 ################################################################################
    2 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    3 # $Id: global.conf,v 1.21 2002-07-25 19:49:46 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 => "$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 );
   30 
   31 # this hash defines URLs needed by WeBWorK
   32 my $webworkURLRoot = "/webwork_files";
   33 %webworkURLs = (
   34   base    => "$webworkURLRoot",
   35   logo    => "$webworkURLRoot/images/webwork_logo.gif",
   36   courses => "/ww/courses", #"$webworkURLRoot/courses",
   37   docs    => "/webworkDocs",
   38 );
   39 
   40 # this hash defines the default locations for course subdirectories
   41 my $courseRoot = "$webworkDirs{courses}/$courseName";
   42 %courseDirs = (
   43   root        => "$courseRoot",
   44   DATA        => "$courseRoot/DATA",
   45   auth_DATA   => "$courseRoot/DATA/.auth",
   46   html        => "$courseRoot/html",
   47   html_images => "$courseRoot/html/images",
   48   html_temp   => "$courseRoot/html/tmp",
   49   logs        => "$courseRoot/logs",
   50   scoring     => "$courseRoot/scoring",
   51   templates   => "$courseRoot/templates",
   52   macros      => "$courseRoot/templates/macros",
   53 );
   54 
   55 # this hash defines the default locations for course files
   56 %courseFiles = (
   57   environment => "$courseDirs{root}/course.conf",
   58 );
   59 
   60 # this hash defines default URLs
   61 my $courseURLRoot = "$webworkURLs{courses}/$courseName";
   62 %courseURLs = (
   63   base      => "$courseURLRoot",
   64   html      => "$courseURLRoot",
   65   html_temp => "$courseURLRoot/tmp",
   66 );
   67 
   68 %dbInfo = (
   69   auth_type        => "GDBM",
   70   auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
   71   auth_perm_file   => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
   72   auth_keys_file   => "$courseDirs{auth_DATA}/keys",
   73   wwdb_type        => "GDBM",
   74   wwdb_file        => "$courseDirs{DATA}/$courseName\_webwork_DB",
   75   cldb_type        => "GDBM",
   76   cldb_file        => "$courseDirs{DATA}/$courseName\_classlist_DB",
   77   psvn_digits      => 5,
   78 );
   79 
   80 %templates = (
   81   system => "$webworkDirs{conf}/system.template",
   82 );
   83 
   84 # sessionKeyTimeout defines length of inactivity before a key expires (seconds)
   85 $sessionKeyTimeout = 60*30;
   86 
   87 # Practice users are users who's names start with $practiceUser
   88 # (you can comment this out to remove practice user support)
   89 $practiceUserPrefix = "practice";
   90 
   91 # There is a practice user who can be logged in multiple times.  He's
   92 # commented out by default, though, so you don't hurt yourself.  It is
   93 # kindof a backdoor to the practice user system, since he doesn't have a
   94 # password.  Come to think of it, why do we even have this?!
   95 #$debugPracticeUser = "practice666";
   96 
   97 # This lets you specify a minimum permission level needed to perform
   98 # certain actions.  In the current system, >=10 will allow a professor
   99 # to perform the action, >=5 will allow a TA to, and >=0 will allow a
  100 # student to perform an action (almost never what you want).
  101 %permissionLevels = (
  102   "become_student" => 10,
  103 );
  104 
  105 # PG translation stuff
  106 %pg = (
  107   options => {
  108     # default translation options:
  109     displayMode        => "formattedText",
  110     showOldAnswers     => 1,
  111     showCorrectAnswers => 0,
  112     showHints          => 1,
  113     showSolutions      => 0,
  114     # default grader
  115     grader => "avg_problem_grader",
  116   },
  117   # modules lists module names and the packages each contains
  118   modules => [
  119     [qw(DynaLoader)],
  120     [qw(Exporter)],
  121     [qw(GD)],
  122 
  123     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  124     [qw(AnswerHash AnswerEvaluator)],
  125     [qw(WWPlot)], # required by Circle (and others)
  126     [qw(Circle)],
  127     [qw(Complex)],
  128     [qw(Complex1)],
  129     [qw(Distributions)],
  130     [qw(Fraction)],
  131     [qw(Fun)],
  132     [qw(Hermite)],
  133     [qw(Label)],
  134     [qw(List)],
  135     [qw(Match)],
  136     [qw(MatrixReal1)], # required by Matrix
  137     [qw(Matrix)],
  138     [qw(Multiple)],
  139     [qw(PGrandom)],
  140     [qw(Regression)],
  141     [qw(Select)],
  142     [qw(Units)],
  143     [qw(VectorField)],
  144   ],
  145   # defaults used by answer evaluators
  146   ansEvalDefaults => {
  147     functAbsTolDefault            => .001,
  148     functLLimitDefault            => .0000001,
  149     functMaxConstantOfIntegration => 1E8,
  150     functNumOfPoints              => 3,
  151     functRelPercentTolDefault     => .1,
  152     functULimitDefault            => .9999999,
  153     functVarDefault               => "x",
  154     functZeroLevelDefault         => 1E-14,
  155     functZeroLevelTolDefault      => 1E-12,
  156     numAbsTolDefault              => .001,
  157     numFormatDefault              => "",
  158     numRelPercentTolDefault       => .1,
  159     numZeroLevelDefault           => 1E-14,
  160     numZeroLevelTolDefault        => 1E-12,
  161   },
  162 );
  163 
  164 %externalPrograms = (
  165   tth => "/usr/local/bin/tth",
  166   math2img => "$webworkDirs{bin}/math2img",
  167 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9