[system] / branches / rel-2-4-dev / webwork-modperl / conf / global.conf.dist Repository:
ViewVC logotype

View of /branches/rel-2-4-dev/webwork-modperl/conf/global.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1468 - (download) (annotate)
Sat Aug 16 01:30:46 2003 UTC (9 years, 9 months ago) by gage
Original Path: trunk/webwork-modperl/conf/global.conf.dist
File size: 11344 byte(s)
Added course_info whose material will appear
on the right side of the problem sets page

and login_info whose material will appear
on the right side of the login page.
--Mike

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9