[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 419 - (download) (annotate)
Wed Jul 3 22:33:55 2002 UTC (10 years, 10 months ago) by sh002i
File size: 5600 byte(s)
moved pg/displayMode and pg/grader into pg/options
-sam

    1 ################################################################################
    2 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    3 # $Id: global.conf,v 1.17 2002-07-03 22:33:55 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   options => {
  107     displayMode => "formattedText",
  108     grader      => "avg_problem_grader",
  109   },
  110   # modules lists module names and the packages each contains
  111   modules => {
  112     DynaLoader => [qw(DynaLoader)],
  113     Exporter   => [qw(Exporter)],
  114     GD         => [qw(GD)],
  115 
  116     AlgParser     => [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  117     AnswerHash    => [qw(AnswerHash AnswerEvaluator)],
  118     Circle        => [qw(Circle)],
  119     Complex       => [qw(Complex)],
  120     Complex1      => [qw(Complex1)],
  121     Distributions => [qw(Distributions)],
  122     Fraction      => [qw(Fraction)],
  123     Fun           => [qw(Fun)],
  124     Hermite       => [qw(Hermite)],
  125     Label         => [qw(Label)],
  126     List          => [qw(List)],
  127     Match         => [qw(Match)],
  128     Matrix        => [qw(Matrix)],
  129     MatrixReal1   => [qw(MatrixReal1)],
  130     Multiple      => [qw(Multiple)],
  131     PGrandom      => [qw(PGrandom)],
  132     Regression    => [qw(Regression)],
  133     Select        => [qw(Select)],
  134     Units         => [qw(Units)],
  135     VectorField   => [qw(VectorField)],
  136     WWPlot        => [qw(WWPlot)],
  137   },
  138   # defaults used by answer evaluators
  139   ansEvalDefaults => {
  140     functAbsTolDefault            => .001,
  141     functLLimitDefault            => .0000001,
  142     functMaxConstantOfIntegration => 1E8,
  143     functNumOfPoints              => 3,
  144     functRelPercentTolDefault     => .1,
  145     functULimitDefault            => .9999999,
  146     functVarDefault               => "x",
  147     functZeroLevelDefault         => 1E-14,
  148     functZeroLevelTolDefault      => 1E-12,
  149     numAbsTolDefault              => .001,
  150     numFormatDefault              => "",
  151     numRelPercentTolDefault       => .1,
  152     numZeroLevelDefault           => 1E-14,
  153     numZeroLevelTolDefault        => 1E-12,
  154   },
  155 );
  156 
  157 %externalPrograms = (
  158   tth => "/usr/local/bin/tth",
  159 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9