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

Annotation of /trunk/webwork-modperl/conf/global.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 474 - (view) (download)

1 : sh002i 341 ################################################################################
2 :     # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
3 : sh002i 474 # $Id: global.conf,v 1.23 2002-08-20 01:04:25 sh002i Exp $
4 : sh002i 341 ################################################################################
5 : malsyned 283
6 : sh002i 314 # 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 : sh002i 311
15 : sh002i 314 # this hash defines the locations of directories needed by WeBWorK
16 :     %webworkDirs = (
17 : sh002i 412 root => "$webworkRoot",
18 : sh002i 433 bin => "$webworkRoot/bin",
19 : sh002i 412 conf => "$webworkRoot/conf",
20 : sh002i 469 courses => "/ww/webwork/courses", #"$webworkRoot/courses",
21 : sh002i 412 lib => "$webworkRoot/lib",
22 :     tmp => "$webworkRoot/tmp",
23 : sh002i 424 macros => "$webworkRoot/macros",
24 : sh002i 314 );
25 : sh002i 311
26 : sh002i 341 # this hash defines the locations of files needed by WeBWorK
27 : sh002i 314 %webworkFiles = (
28 :     environment => "$webworkDirs{conf}/global.conf",
29 : sh002i 474 # 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 : malsyned 283 );
37 : sh002i 314
38 : sh002i 412 # this hash defines URLs needed by WeBWorK
39 : sh002i 469 my $webworkURLRoot = "/modperl-sam";
40 : sh002i 412 %webworkURLs = (
41 : sh002i 469 root => "$webworkURLRoot",
42 :     htdocs => "/webwork_files",
43 :     docs => "/webworkDocs",
44 : sh002i 412 );
45 :    
46 : sh002i 314 # this hash defines the default locations for course subdirectories
47 : sh002i 412 my $courseRoot = "$webworkDirs{courses}/$courseName";
48 : sh002i 314 %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 : sh002i 412 macros => "$courseRoot/templates/macros",
59 : sh002i 314 );
60 :    
61 : sh002i 474 # this hash defines the default locations for course-specific files
62 : sh002i 314 %courseFiles = (
63 : sh002i 474 environment => "$courseDirs{root}/course.conf",
64 : sh002i 314 );
65 :    
66 : sh002i 412 # this hash defines default URLs
67 : sh002i 469 my $courseURLRoot = "$webworkURLs{dynamicRoot}/$courseName";
68 : sh002i 412 %courseURLs = (
69 :     base => "$courseURLRoot",
70 : sh002i 433 html => "$courseURLRoot",
71 :     html_temp => "$courseURLRoot/tmp",
72 : sh002i 412 );
73 :    
74 : sh002i 314 %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 : sh002i 352 wwdb_type => "GDBM",
80 : sh002i 314 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
81 :     cldb_type => "GDBM",
82 :     cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
83 : sh002i 378 psvn_digits => 5,
84 : sh002i 314 );
85 :    
86 : malsyned 349 %templates = (
87 : sh002i 474 system => "$webworkDirs{conf}/barebones.template",
88 : malsyned 349 );
89 :    
90 : sh002i 341 # sessionKeyTimeout defines length of inactivity before a key expires (seconds)
91 : sh002i 352 $sessionKeyTimeout = 60*30;
92 : malsyned 344
93 :     # Practice users are users who's names start with $practiceUser
94 : malsyned 348 # (you can comment this out to remove practice user support)
95 : malsyned 344 $practiceUserPrefix = "practice";
96 : malsyned 347
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 : malsyned 390
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 : sh002i 412
111 :     # PG translation stuff
112 :     %pg = (
113 : sh002i 419 options => {
114 : sh002i 424 # default translation options:
115 : sh002i 474 displayMode => "images",
116 : sh002i 431 showOldAnswers => 1,
117 : sh002i 424 showCorrectAnswers => 0,
118 : sh002i 474 showHints => 0,
119 : sh002i 424 showSolutions => 0,
120 :     # default grader
121 :     grader => "avg_problem_grader",
122 : sh002i 419 },
123 : sh002i 412 # modules lists module names and the packages each contains
124 : sh002i 424 modules => [
125 :     [qw(DynaLoader)],
126 :     [qw(Exporter)],
127 :     [qw(GD)],
128 : sh002i 412
129 : sh002i 424 [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 : sh002i 415 # defaults used by answer evaluators
152 : sh002i 412 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 : sh002i 433 math2img => "$webworkDirs{bin}/math2img",
173 : sh002i 412 );

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9