[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 415 - (download) (annotate)
Wed Jun 26 13:33:59 2002 UTC (10 years, 10 months ago) by sh002i
File size: 5542 byte(s)
stuff i've been working on.
-sam

    1 ################################################################################
    2 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    3 # $Id: global.conf,v 1.15 2002-06-26 13:33:56 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   conf    => "$webworkRoot/conf",
   19   courses => "$webworkRoot/courses",
   20   lib     => "$webworkRoot/lib",
   21   tmp     => "$webworkRoot/tmp",
   22   macros  => "$webworkRoot/courseScripts",
   23 );
   24 
   25 # this hash defines the locations of files needed by WeBWorK
   26 %webworkFiles = (
   27   environment => "$webworkDirs{conf}/global.conf",
   28 );
   29 
   30 # this hash defines URLs needed by WeBWorK
   31 my $webworkURLRoot = "/webwork_files";
   32 %webworkURLs = (
   33   base    => "$webworkURLRoot",
   34   logo    => "$webworkURLRoot/images/webwork_logo.gif",
   35   courses => "$webworkURLRoot/courses",
   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{courses}/$courseName";
   61 %courseURLs = (
   62   base      => "$courseURLRoot",
   63   html      => "$courseURLRoot/html",
   64   html_temp => "$courseURLRoot/html/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}/system.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   grader => "avg_problem_grader",
  107   # modules lists module names and the packages each contains
  108   modules => {
  109     DynaLoader => [qw(DynaLoader)],
  110     Exporter   => [qw(Exporter)],
  111     GD         => [qw(GD)],
  112 
  113     AlgParser     => [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  114     AnswerHash    => [qw(AnswerHash AnswerEvaluator)],
  115     Circle        => [qw(Circle)],
  116     Complex       => [qw(Complex)],
  117     Complex1      => [qw(Complex1)],
  118     Distributions => [qw(Distributions)],
  119     Fraction      => [qw(Fraction)],
  120     Fun           => [qw(Fun)],
  121     Hermite       => [qw(Hermite)],
  122     Label         => [qw(Label)],
  123     List          => [qw(List)],
  124     Match         => [qw(Match)],
  125     Matrix        => [qw(Matrix)],
  126     MatrixReal1   => [qw(MatrixReal1)],
  127     Multiple      => [qw(Multiple)],
  128     PGrandom      => [qw(PGrandom)],
  129     Regression    => [qw(Regression)],
  130     Select        => [qw(Select)],
  131     Units         => [qw(Units)],
  132     VectorField   => [qw(VectorField)],
  133     WWPlot        => [qw(WWPlot)],
  134   },
  135   # defaults used by answer evaluators
  136   ansEvalDefaults => {
  137     functAbsTolDefault            => .001,
  138     functLLimitDefault            => .0000001,
  139     functMaxConstantOfIntegration => 1E8,
  140     functNumOfPoints              => 3,
  141     functRelPercentTolDefault     => .1,
  142     functULimitDefault            => .9999999,
  143     functVarDefault               => "x",
  144     functZeroLevelDefault         => 1E-14,
  145     functZeroLevelTolDefault      => 1E-12,
  146     numAbsTolDefault              => .001,
  147     numFormatDefault              => "",
  148     numRelPercentTolDefault       => .1,
  149     numZeroLevelDefault           => 1E-14,
  150     numZeroLevelTolDefault        => 1E-12,
  151   },
  152 );
  153 
  154 %externalPrograms = (
  155   tth => "/usr/local/bin/tth",
  156 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9