[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 1446 - (download) (annotate)
Mon Aug 4 08:05:50 2003 UTC (9 years, 9 months ago) by malsyned
File size: 11243 byte(s)
Added the score_sets permission

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

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9