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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.349  
changed lines
  Added in v.469

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9