[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 469 - (download) (annotate)
Fri Aug 16 20:43:38 2002 UTC (10 years, 9 months ago) by sh002i
File size: 5433 byte(s)
pretty much implemented the whole thing.

yeah.
-sam

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9