Parent Directory
|
Revision Log
added PG/TeX snippets and corresponding lines in global.conf added a new template -- barebones.template -sam
1 ################################################################################ 2 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 3 # $Id: global.conf,v 1.23 2002-08-20 01:04:25 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 bin => "$webworkRoot/bin", 19 conf => "$webworkRoot/conf", 20 courses => "/ww/webwork/courses", #"$webworkRoot/courses", 21 lib => "$webworkRoot/lib", 22 tmp => "$webworkRoot/tmp", 23 macros => "$webworkRoot/macros", 24 ); 25 26 # this hash defines the locations of files needed by WeBWorK 27 %webworkFiles = ( 28 environment => "$webworkDirs{conf}/global.conf", 29 # default TeX/PG snippets 30 screenSetHeader => "$webworkDirs{conf}/screenSetHeader.pg", 31 screenProblemPreamble => "$webworkDirs{conf}/screenProblemPreamble.pg", 32 screenProblemPostamble => "$webworkDirs{conf}/screenProblemPostamble.pg", 33 paperSetPreamble => "$webworkDirs{conf}/paperSetPreamble.tex", 34 paperSetHeader => "$webworkDirs{conf}/paperSetHeader.pg", 35 paperSetPostamble => "$webworkDirs{conf}/paperSetPostamble.tex", 36 ); 37 38 # this hash defines URLs needed by WeBWorK 39 my $webworkURLRoot = "/modperl-sam"; 40 %webworkURLs = ( 41 root => "$webworkURLRoot", 42 htdocs => "/webwork_files", 43 docs => "/webworkDocs", 44 ); 45 46 # this hash defines the default locations for course subdirectories 47 my $courseRoot = "$webworkDirs{courses}/$courseName"; 48 %courseDirs = ( 49 root => "$courseRoot", 50 DATA => "$courseRoot/DATA", 51 auth_DATA => "$courseRoot/DATA/.auth", 52 html => "$courseRoot/html", 53 html_images => "$courseRoot/html/images", 54 html_temp => "$courseRoot/html/tmp", 55 logs => "$courseRoot/logs", 56 scoring => "$courseRoot/scoring", 57 templates => "$courseRoot/templates", 58 macros => "$courseRoot/templates/macros", 59 ); 60 61 # this hash defines the default locations for course-specific files 62 %courseFiles = ( 63 environment => "$courseDirs{root}/course.conf", 64 ); 65 66 # this hash defines default URLs 67 my $courseURLRoot = "$webworkURLs{dynamicRoot}/$courseName"; 68 %courseURLs = ( 69 base => "$courseURLRoot", 70 html => "$courseURLRoot", 71 html_temp => "$courseURLRoot/tmp", 72 ); 73 74 %dbInfo = ( 75 auth_type => "GDBM", 76 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB", 77 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB", 78 auth_keys_file => "$courseDirs{auth_DATA}/keys", 79 wwdb_type => "GDBM", 80 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB", 81 cldb_type => "GDBM", 82 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB", 83 psvn_digits => 5, 84 ); 85 86 %templates = ( 87 system => "$webworkDirs{conf}/barebones.template", 88 ); 89 90 # sessionKeyTimeout defines length of inactivity before a key expires (seconds) 91 $sessionKeyTimeout = 60*30; 92 93 # Practice users are users who's names start with $practiceUser 94 # (you can comment this out to remove practice user support) 95 $practiceUserPrefix = "practice"; 96 97 # There is a practice user who can be logged in multiple times. He's 98 # commented out by default, though, so you don't hurt yourself. It is 99 # kindof a backdoor to the practice user system, since he doesn't have a 100 # password. Come to think of it, why do we even have this?! 101 #$debugPracticeUser = "practice666"; 102 103 # This lets you specify a minimum permission level needed to perform 104 # certain actions. In the current system, >=10 will allow a professor 105 # to perform the action, >=5 will allow a TA to, and >=0 will allow a 106 # student to perform an action (almost never what you want). 107 %permissionLevels = ( 108 "become_student" => 10, 109 ); 110 111 # PG translation stuff 112 %pg = ( 113 options => { 114 # default translation options: 115 displayMode => "images", 116 showOldAnswers => 1, 117 showCorrectAnswers => 0, 118 showHints => 0, 119 showSolutions => 0, 120 # default grader 121 grader => "avg_problem_grader", 122 }, 123 # modules lists module names and the packages each contains 124 modules => [ 125 [qw(DynaLoader)], 126 [qw(Exporter)], 127 [qw(GD)], 128 129 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 130 [qw(AnswerHash AnswerEvaluator)], 131 [qw(WWPlot)], # required by Circle (and others) 132 [qw(Circle)], 133 [qw(Complex)], 134 [qw(Complex1)], 135 [qw(Distributions)], 136 [qw(Fraction)], 137 [qw(Fun)], 138 [qw(Hermite)], 139 [qw(Label)], 140 [qw(List)], 141 [qw(Match)], 142 [qw(MatrixReal1)], # required by Matrix 143 [qw(Matrix)], 144 [qw(Multiple)], 145 [qw(PGrandom)], 146 [qw(Regression)], 147 [qw(Select)], 148 [qw(Units)], 149 [qw(VectorField)], 150 ], 151 # defaults used by answer evaluators 152 ansEvalDefaults => { 153 functAbsTolDefault => .001, 154 functLLimitDefault => .0000001, 155 functMaxConstantOfIntegration => 1E8, 156 functNumOfPoints => 3, 157 functRelPercentTolDefault => .1, 158 functULimitDefault => .9999999, 159 functVarDefault => "x", 160 functZeroLevelDefault => 1E-14, 161 functZeroLevelTolDefault => 1E-12, 162 numAbsTolDefault => .001, 163 numFormatDefault => "", 164 numRelPercentTolDefault => .1, 165 numZeroLevelDefault => 1E-14, 166 numZeroLevelTolDefault => 1E-12, 167 }, 168 ); 169 170 %externalPrograms = ( 171 tth => "/usr/local/bin/tth", 172 math2img => "$webworkDirs{bin}/math2img", 173 );
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |