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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1519 - (download) (annotate)
Tue Sep 23 21:19:29 2003 UTC (9 years, 8 months ago) by sh002i
File size: 11752 byte(s)
added values necessary for supporting EquationCache.

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: global.conf.dist,v 1.41 2003-09-23 21:19:29 sh002i Exp $
    5 ################################################################################
    6 
    7 # This file is used to set up the default WeBWorK course environment for all
    8 # requests. Values may be overwritten by the course.conf for a specific course.
    9 # All package variables set in this file are added to the course environment.
   10 # If you wish to set a variable here but omit it from the course environment,
   11 # use the "my" keyword. The following variables are available to this file:
   12 #
   13 #         $webworkRoot    directory that contains the WeBWorK distribution
   14 #         $webworkURL     base URL handled by Apache::WeBWorK
   15 #         $pgRoot         directory that contains the PG distribution
   16 #         $courseName     name of the course being used
   17 
   18 ################################################################################
   19 # WeBWorK settings
   20 ################################################################################
   21 
   22 %webworkDirs = (
   23   root          => "$webworkRoot",
   24   DATA          => "$webworkRoot/DATA",
   25   bin           => "$webworkRoot/bin",
   26   conf          => "$webworkRoot/conf",
   27   courses       => "$webworkRoot/courses",
   28   htdocs        => "$webworkRoot/htdocs",
   29   htdocs_temp   => "$webworkRoot/htdocs/tmp",
   30   equationCache => "$webworkRoot/htdocs/tmp/equations",
   31   lib           => "$webworkRoot/lib",
   32   logs          => "$webworkRoot/logs",
   33   macros        => "$pgRoot/macros",
   34   tmp           => "$webworkRoot/tmp",
   35 );
   36 
   37 %webworkFiles = (
   38   environment        => "$webworkDirs{conf}/global.conf",
   39   hardcopySnippets   => {
   40     preamble       => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
   41     setHeader      => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg",
   42     problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
   43     setFooter      => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
   44     setDivider     => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
   45     userDivider    => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
   46     postamble      => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
   47   },
   48   screenSnippets => {
   49     setHeader => "$webworkDirs{conf}/snippets/setHeader.pg",
   50   },
   51   logs => {
   52     timing         => "$webworkDirs{logs}/timing.log",
   53   },
   54   equationCacheDB => "$webworkDirs{DATA}/equationcache",
   55 );
   56 
   57 %webworkURLs = (
   58   root          => "$webworkURLRoot",
   59   home          => "/webwork2_files/index.html",
   60   htdocs        => "/webwork2_files",
   61   htdocs_temp   => "/webwork2_files/tmp",
   62   equationCache => "/webwork2_files/tmp/equations",
   63   docs          => "http://webhost.math.rochester.edu/webworkdocs/docs",
   64   oldProf       => "/webwork-old/profLogin.pl",
   65 );
   66 
   67 ################################################################################
   68 # Default course-specific settings
   69 ################################################################################
   70 
   71 my $courseRoot = "$webworkDirs{courses}/$courseName";
   72 %courseDirs = (
   73   root        => "$courseRoot",
   74   DATA        => "$courseRoot/DATA",
   75   auth_DATA   => "$courseRoot/DATA/.auth",
   76   html        => "$courseRoot/html",
   77   html_images => "$courseRoot/html/images",
   78   html_temp   => "$courseRoot/html/tmp",
   79   logs        => "$courseRoot/logs",
   80   scoring     => "$courseRoot/scoring",
   81   templates   => "$courseRoot/templates",
   82   macros      => "$courseRoot/templates/macros",
   83   email       => "$courseRoot/templates/email",
   84 );
   85 
   86 %courseFiles = (
   87   environment => "$courseDirs{root}/course.conf",
   88   motd        => "$courseDirs{root}/motd.txt",
   89   logs => {
   90     answer_log  => "$courseDirs{logs}/answer_log",
   91   },
   92   course_info => "$courseDirs{root}/course_info.txt",
   93   login_info  => "$courseDirs{root}/login_info.txt",
   94 );
   95 
   96 # quick hack to fix transaction logging. blah.
   97 $webworkFiles{logs}->{transaction}    = "$courseDirs{logs}/transaction.log";
   98 $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
   99 
  100 my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName";
  101 %courseURLs = (
  102   root      => "$courseURLRoot",
  103   html      => "$courseURLRoot",
  104   html_temp => "$courseURLRoot/tmp",
  105 );
  106 
  107 ################################################################################
  108 # Other site-specific options
  109 ################################################################################
  110 
  111 %mail = (
  112   smtpServer => "mail.math.rochester.edu",
  113   smtpSender => "webwork\@math.rochester.edu",
  114   # allowedRecipients defines addresses that the PG system is allowed to
  115   # send mail to. this prevents subtle PG exploits. This should be set
  116   # in course.conf to the addresses of professors of each course. Sending
  117   # mail from the PG system (i.e. questionaires, essay questions) will
  118   # fail if this is not set somewhere (either here or in course.conf).
  119   #allowedRecipients => [
  120   # "yourname\@host.yourdomain.edu",
  121   #],
  122   # if defined, feedbackRecipients overrides the list of recipients for
  123   # feedback email. It's appropriate to set this in the course.conf for
  124   # specific courses, but probably not in global.conf. if not defined,
  125   # mail is sent to all professors and TAs for a given course
  126   #feedbackRecipients => [
  127   # "prof1\@host.yourdomain.edu",
  128   # "prof2\@host.yourdomain.edu",
  129   #],
  130   # feedbackVerbosity:
  131   #  0: send only the feedback comment and context link
  132   #  1: as in 0, plus user, set, problem, and PG data
  133   #  2: as in 1, plus the problem environment (debugging data)
  134   feedbackVerbosity      => 1,
  135   editor_window_rows     => 15,
  136   editor_window_columns  => 100,
  137 );
  138 
  139 %externalPrograms = (
  140   mkdir    => "/bin/mkdir",
  141   tth      => "/usr/local/bin/tth",
  142   pdflatex => "/usr/local/bin/pdflatex",
  143   latex    => "/usr/local/bin/latex",
  144   #dvipng   => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
  145   dvipng   => "/usr/local/bin/dvipng",
  146   gif2eps  => "$webworkDirs{bin}/gif2eps",
  147   png2eps  => "$webworkDirs{bin}/png2eps",
  148   gif2png  => "$webworkDirs{bin}/gif2png",
  149 );
  150 
  151 ################################################################################
  152 # Frontend options
  153 ################################################################################
  154 
  155 %templates = (
  156   system => "$webworkDirs{conf}/templates/ur.template",
  157 );
  158 
  159 ################################################################################
  160 # Database options
  161 ################################################################################
  162 
  163 # Several database layouts are defined in separate environment files. Select the
  164 # one which should be used by all courses by default, and include it. This can
  165 # be overridden by including a difference environment file in the course.conf of
  166 # a particular course.
  167 
  168 # Include sql.conf to specify a database layout for use with an SQL server.
  169 #include "conf/sql.conf";
  170 
  171 # Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
  172 # databases. Use this layout if you wish to share courses between WeBWorK 1.x
  173 # and WeBWorK 2.
  174 include "conf/gdbm.conf";
  175 
  176 # Please read the documentation in the file that you chose to include, as there
  177 # are layout-specific options that must be configured.
  178 
  179 ################################################################################
  180 # Authorization system
  181 ################################################################################
  182 
  183 # This lets you specify a minimum permission level needed to perform certain
  184 # actions.  In the current system, >=10 will allow a professor to perform the
  185 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an
  186 # action (almost never what you want).
  187 my $ta = 5;
  188 my $professor = 10;
  189 %permissionLevels = (
  190   become_student                 => $professor,
  191   access_instructor_tools        => $ta,
  192   create_and_delete_problem_sets => $professor,
  193   modify_problem_sets            => $professor,
  194   assign_problem_sets            => $professor,
  195   modify_student_data            => $professor,
  196   score_sets                     => $professor,
  197   send_mail            => $professor,
  198 );
  199 
  200 ################################################################################
  201 # Session options
  202 ################################################################################
  203 
  204 # $sessionKeyTimeout defines seconds of inactivity before a key expires
  205 $sessionKeyTimeout = 60*30;
  206 
  207 # $sessionKeyLength defines the length (in characters) of the session key
  208 $sessionKeyLength = 40;
  209 
  210 # @sessionKeyChars lists the legal session key characters
  211 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*');
  212 
  213 # Practice users are users who's names start with $practiceUser
  214 # (you can comment this out to remove practice user support)
  215 $practiceUserPrefix = "practice";
  216 
  217 # There is a practice user who can be logged in multiple times.  He's
  218 # commented out by default, though, so you don't hurt yourself.  It is
  219 # kindof a backdoor to the practice user system, since he doesn't have a
  220 # password.  Come to think of it, why do we even have this?!
  221 #$debugPracticeUser = "practice666";
  222 
  223 ################################################################################
  224 # PG translation options
  225 ################################################################################
  226 
  227 %pg = (
  228   # options for various renderers
  229   renderers => {
  230     "WeBWorK::PG::Remote" => {
  231       uri => "http://localhost:8089/RPC2"
  232     }
  233   },
  234   # currently selected renderer
  235   renderer => "WeBWorK::PG::Local",
  236   # directories used by PG
  237   # options for various renderers
  238   renderers => {
  239     "WeBWorK::PG::Remote" => {
  240       uri => "http://localhost:8089/RPC2"
  241     }
  242   },
  243   # currently selected renderer
  244   renderer => "WeBWorK::PG::Local",
  245   # directories used by PG
  246   directories => {
  247     # directories used only by PG
  248     lib    => "$pgRoot/lib",
  249     macros => "$pgRoot/macros",
  250   },
  251   options => {
  252     # default translation options
  253     displayMode        => "images",
  254     showOldAnswers     => 1,
  255     showCorrectAnswers => 0,
  256     showHints          => 0,
  257     showSolutions      => 0,
  258     catchWarnings      => 0, # there's a global warning catcher now
  259     # default grader
  260     grader => "avg_problem_grader",
  261   },
  262   # this will be customized in the course.conf file
  263   specialPGEnvironmentVars => {
  264     PRINT_FILE_NAMES_FOR   => [ qw(gage apizer voloshin lr003k professor) ],
  265     CAPA_Tools             => "$courseDirs{macros}/CAPA_Tools/",
  266     CAPA_MCTools           => "$courseDirs{macros}/CAPA_MCTools/",
  267     CAPA_Graphics_URL      => "$courseDirs{html}/CAPA_Graphics/",
  268     CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/",
  269   },
  270   # modules lists module names and the packages each contains
  271   modules => [
  272     [qw(DynaLoader)],
  273     [qw(Exporter)],
  274     [qw(GD)],
  275 
  276     [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
  277     [qw(AnswerHash AnswerEvaluator)],
  278     [qw(WWPlot)], # required by Circle (and others)
  279     [qw(Circle)],
  280     [qw(Complex)],
  281     [qw(Complex1)],
  282     [qw(Distributions)],
  283     [qw(Fraction)],
  284     [qw(Fun)],
  285     [qw(Hermite)],
  286     [qw(Label)],
  287     [qw(List)],
  288     [qw(Match)],
  289     [qw(MatrixReal1)], # required by Matrix
  290     [qw(Matrix)],
  291     [qw(Multiple)],
  292     [qw(PGrandom)],
  293     [qw(Regression)],
  294     [qw(Select)],
  295     [qw(Units)],
  296     [qw(VectorField)],
  297   ],
  298   # defaults used by answer evaluators
  299   ansEvalDefaults => {
  300     functAbsTolDefault            => .001,
  301     functLLimitDefault            => .0000001,
  302     functMaxConstantOfIntegration => 1E8,
  303     functNumOfPoints              => 3,
  304     functRelPercentTolDefault     => .1,
  305     functULimitDefault            => .9999999,
  306     functVarDefault               => "x",
  307     functZeroLevelDefault         => 1E-14,
  308     functZeroLevelTolDefault      => 1E-12,
  309     numAbsTolDefault              => .001,
  310     numFormatDefault              => "",
  311     numRelPercentTolDefault       => .1,
  312     numZeroLevelDefault           => 1E-14,
  313     numZeroLevelTolDefault        => 1E-12,
  314   },
  315 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9