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

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

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

Revision 1663 Revision 2216
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK Online Homework Delivery System 3# WeBWorK Online Homework Delivery System
4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader$ 5# $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.70 2004/05/24 18:25:07 sh002i Exp $
6# 6#
7# This program is free software; you can redistribute it and/or modify it under 7# This program is free software; you can redistribute it and/or modify it under
8# the terms of either: (a) the GNU General Public License as published by the 8# the terms of either: (a) the GNU General Public License as published by the
9# Free Software Foundation; either version 2, or (at your option) any later 9# Free Software Foundation; either version 2, or (at your option) any later
10# version, or (b) the "Artistic License" which comes with this package. 10# version, or (b) the "Artistic License" which comes with this package.
48 48
49%webworkFiles = ( 49%webworkFiles = (
50 environment => "$webworkDirs{conf}/global.conf", 50 environment => "$webworkDirs{conf}/global.conf",
51 hardcopySnippets => { 51 hardcopySnippets => {
52 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", 52 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex",
53 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", 53 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # hardcopySetHeader.pg",
54 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", 54 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex",
55 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", 55 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg",
56 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", 56 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex",
57 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", 57 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex",
58 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", 58 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex",
59 }, 59 },
60 screenSnippets => { 60 screenSnippets => {
61 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", 61 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", # screenSetHeader.pg",
62 }, 62 },
63 logs => { 63 logs => {
64 timing => "$webworkDirs{logs}/timing.log", 64 timing => "$webworkDirs{logs}/timing.log",
65 }, 65 },
66 equationCacheDB => "$webworkDirs{DATA}/equationcache", 66 equationCacheDB => "$webworkDirs{DATA}/equationcache",
71 home => "/webwork2_files/index.html", 71 home => "/webwork2_files/index.html",
72 htdocs => "/webwork2_files", 72 htdocs => "/webwork2_files",
73 htdocs_temp => "/webwork2_files/tmp", 73 htdocs_temp => "/webwork2_files/tmp",
74 equationCache => "/webwork2_files/tmp/equations", 74 equationCache => "/webwork2_files/tmp/equations",
75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 75 docs => "http://webhost.math.rochester.edu/webworkdocs/docs",
76 local_help => "/webwork2_files/helpFiles",
76 oldProf => "/webwork-old/profLogin.pl", 77 oldProf => "/webwork1/profLogin.pl",
78 jsMath => "/webwork2_files/jsMath/jsMath.js",
79 asciimath => "/webwork2_files/ASCIIMathML/ASCIIMathML.js",
77); 80);
78 81
79################################################################################ 82################################################################################
80# Default course-specific settings 83# Default course-specific settings
81################################################################################ 84################################################################################
95 email => "$courseRoot/templates/email", 98 email => "$courseRoot/templates/email",
96); 99);
97 100
98%courseFiles = ( 101%courseFiles = (
99 environment => "$courseDirs{root}/course.conf", 102 environment => "$courseDirs{root}/course.conf",
100 motd => "$courseDirs{root}/motd.txt", 103 motd => "$courseDirs{templates}/motd.txt",
101 logs => { 104 logs => {
102 answer_log => "$courseDirs{logs}/answer_log", 105 answer_log => "$courseDirs{logs}/answer_log",
103 }, 106 },
104 course_info => "$courseDirs{root}/course_info.txt", 107 course_info => "course_info.txt", # path relative to templates directory
105 login_info => "$courseDirs{root}/login_info.txt", 108 login_info => "login_info.txt", # path relative to templates directory
106); 109);
107 110
108# quick hack to fix transaction logging. blah. 111# quick hack to fix transaction logging. blah.
109$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 112$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log";
110$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 113$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
111 114
112my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 115my $courseURLRoot = "/webwork2_course_files/$courseName";
113%courseURLs = ( 116%courseURLs = (
114 root => "$courseURLRoot", 117 root => "$courseURLRoot",
115 html => "$courseURLRoot", 118 html => "$courseURLRoot",
116 html_temp => "$courseURLRoot/tmp", 119 html_temp => "$courseURLRoot/tmp",
117); 120);
121################################################################################ 124################################################################################
122 125
123%mail = ( 126%mail = (
124 smtpServer => "mail.math.rochester.edu", 127 smtpServer => "mail.math.rochester.edu",
125 smtpSender => "webwork\@math.rochester.edu", 128 smtpSender => "webwork\@math.rochester.edu",
129
126 # allowedRecipients defines addresses that the PG system is allowed to 130 # allowedRecipients defines addresses that the PG system is allowed to
127 # send mail to. this prevents subtle PG exploits. This should be set 131 # send mail to. this prevents subtle PG exploits. This should be set
128 # in course.conf to the addresses of professors of each course. Sending 132 # in course.conf to the addresses of professors of each course. Sending
129 # mail from the PG system (i.e. questionaires, essay questions) will 133 # mail from the PG system (i.e. questionaires, essay questions) will
130 # fail if this is not set somewhere (either here or in course.conf). 134 # fail if this is not set somewhere (either here or in course.conf).
131 #allowedRecipients => [ 135 #allowedRecipients => [
132 # "yourname\@host.yourdomain.edu", 136 # 'prof1@host.yourdomain.edu',
137 # 'prof2@host.yourdomain.edu',
133 #], 138 #],
139
134 # if defined, feedbackRecipients overrides the list of recipients for 140 # if defined, feedbackRecipients overrides the list of recipients for
135 # feedback email. It's appropriate to set this in the course.conf for 141 # feedback email. It's appropriate to set this in the course.conf for
136 # specific courses, but probably not in global.conf. if not defined, 142 # specific courses, but probably not in global.conf. if not defined,
137 # mail is sent to all professors and TAs for a given course 143 # mail is sent to all professors and TAs for a given course
138 #feedbackRecipients => [ 144 #feedbackRecipients => [
139 # "prof1\@host.yourdomain.edu", 145 # 'prof1@host.yourdomain.edu',
140 # "prof2\@host.yourdomain.edu", 146 # 'prof2@host.yourdomain.edu',
141 #], 147 #],
148
142 # feedbackVerbosity: 149 # feedbackVerbosity:
143 # 0: send only the feedback comment and context link 150 # 0: send only the feedback comment and context link
144 # 1: as in 0, plus user, set, problem, and PG data 151 # 1: as in 0, plus user, set, problem, and PG data
145 # 2: as in 1, plus the problem environment (debugging data) 152 # 2: as in 1, plus the problem environment (debugging data)
146 feedbackVerbosity => 1, 153 feedbackVerbosity => 1,
154
155 # defines the size of the Mail Merge editor window
156 # FIXME: should this be here? it's UI, not mail
157 # FIXME: replace this with the auto-size method that TWiki uses
147 editor_window_rows => 15, 158 editor_window_rows => 15,
148 editor_window_columns => 100, 159 editor_window_columns => 100,
149); 160);
150 161
151%externalPrograms = ( 162%externalPrograms = (
152 mkdir => "/bin/mkdir", 163 mkdir => "/bin/mkdir",
153 tth => "/usr/local/bin/tth", 164 tth => "/usr/local/bin/tth",
154 pdflatex => "/usr/local/bin/pdflatex", 165 pdflatex => "/usr/local/bin/pdflatex",
155 latex => "/usr/local/bin/latex", 166 latex => "/usr/local/bin/latex",
156 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent",
157 dvipng => "/usr/local/bin/dvipng", 167 dvipng => "/usr/local/bin/dvipng",
158 gif2eps => "$webworkDirs{bin}/gif2eps", 168 gif2eps => "$webworkDirs{bin}/gif2eps",
159 png2eps => "$webworkDirs{bin}/png2eps", 169 png2eps => "$webworkDirs{bin}/png2eps",
160 gif2png => "$webworkDirs{bin}/gif2png", 170 gif2png => "$webworkDirs{bin}/gif2png",
171 mysql => "/usr/local/bin/mysql",
172);
173
174%siteDefaults = (
175 status => {
176 audit => "Audit",
177 A => "Audit",
178 drop => "Drop",
179 D => "Drop",
180 withdraw => "Drop",
181 current => "Enrolled",
182 C => "Enrolled",
183 enrolled => "Enrolled",
184 },
161); 185);
162 186
163################################################################################ 187################################################################################
164# Frontend options 188# Frontend options
165################################################################################ 189################################################################################
170 194
171################################################################################ 195################################################################################
172# Database options 196# Database options
173################################################################################ 197################################################################################
174 198
175# Several database layouts are defined in separate environment files. Select the 199# Several database are defined in the file conf/database.conf and stored in the
176# one which should be used by all courses by default, and include it. This can 200# hash %dbLayouts.
177# be overridden by including a difference environment file in the course.conf of
178# a particular course.
179
180# Include sql.conf to specify a database layout for use with an SQL server.
181#include "conf/sql.conf";
182
183# Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
184# databases. Use this layout if you wish to share courses between WeBWorK 1.x
185# and WeBWorK 2.
186include "conf/gdbm.conf"; 201include "conf/database.conf";
187 202
188# Please read the documentation in the file that you chose to include, as there 203# Select the default database layout. This can be overridden in the course.conf
189# are layout-specific options that must be configured. 204# file of a particular course.
205#$dbLayoutName = "sql";
206$dbLayoutName = "gdbm";
207
208*dbLayout = $dbLayouts{$dbLayoutName};
209
210################################################################################
211# Problem library options
212################################################################################
213
214%problemLibrary = (
215 root => "", # set to the top of the problem library, if its installed
216 sourceSQL => "ProblemLibrary",
217 userSQL => "webworkRead",
218 passwordSQL => "",
219);
190 220
191################################################################################ 221################################################################################
192# Authorization system 222# Authorization system
193################################################################################ 223################################################################################
194 224
207 modify_student_data => $professor, 237 modify_student_data => $professor,
208 score_sets => $professor, 238 score_sets => $professor,
209 send_mail => $professor, 239 send_mail => $professor,
210 modify_classlist_files => $professor, 240 modify_classlist_files => $professor,
211 modify_set_def_files => $professor, 241 modify_set_def_files => $professor,
242 modify_scoring_files => $professor,
243 create_and_delete_courses => $professor,
212); 244);
213 245
214################################################################################ 246################################################################################
215# Session options 247# Session options
216################################################################################ 248################################################################################
237################################################################################ 269################################################################################
238# PG translation options 270# PG translation options
239################################################################################ 271################################################################################
240 272
241%pg = ( 273%pg = (
242 # options for various renderers 274 # available display modes
243 renderers => { 275 displayModes => [ qw(plainText formattedText images jsMath asciimath) ],
244 "WeBWorK::PG::Remote" => { 276 # pg options
245 proxy => "http://localhost:21000/RenderD"
246 }
247 },
248 # currently selected renderer
249 renderer => "WeBWorK::PG::Local",
250 #renderer => "WeBWorK::PG::Remote",
251 # directories used by PG
252 directories => {
253 # directories used only by PG
254 lib => "$pgRoot/lib",
255 macros => "$pgRoot/macros",
256 },
257 options => { 277 options => {
258 # default translation options 278 # default translation options
259 displayMode => "images", 279 displayMode => "images",
260 showOldAnswers => 1, 280 showOldAnswers => 1,
261 showCorrectAnswers => 0, 281 showCorrectAnswers => 0,
263 showSolutions => 0, 283 showSolutions => 0,
264 catchWarnings => 0, # there's a global warning catcher now 284 catchWarnings => 0, # there's a global warning catcher now
265 # default grader 285 # default grader
266 grader => "avg_problem_grader", 286 grader => "avg_problem_grader",
267 }, 287 },
288 # options for various renderers
289 renderers => {
290 "WeBWorK::PG::Remote" => {
291 proxy => "http://localhost:21000/RenderD"
292 }
293 },
294 # currently selected renderer
295 renderer => "WeBWorK::PG::Local",
296 #renderer => "WeBWorK::PG::Remote",
297 # directories used by PG
298 directories => {
299 # directories used only by PG
300 root => "$pgRoot",
301 lib => "$pgRoot/lib",
302 macros => "$pgRoot/macros",
303 },
268 # this will be customized in the course.conf file 304 # this can be customized in the course.conf file
269 specialPGEnvironmentVars => { 305 specialPGEnvironmentVars => {
270 PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ], 306 PRINT_FILE_NAMES_FOR => [ qw(professor) ],
271 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 307 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/",
272 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 308 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/",
273 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 309 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/",
274 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 310 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/",
311 onTheFlyImageSize => 400,
275 }, 312 },
276 # modules lists module names and the packages each contains 313 # modules lists module names and the packages each contains
277 modules => [ 314 modules => [
278 [qw(DynaLoader)], 315 [qw(DynaLoader)],
279 [qw(Exporter)], 316 [qw(Exporter)],
315 numAbsTolDefault => .001, 352 numAbsTolDefault => .001,
316 numFormatDefault => "", 353 numFormatDefault => "",
317 numRelPercentTolDefault => .1, 354 numRelPercentTolDefault => .1,
318 numZeroLevelDefault => 1E-14, 355 numZeroLevelDefault => 1E-14,
319 numZeroLevelTolDefault => 1E-12, 356 numZeroLevelTolDefault => 1E-12,
357 useBaseTenLog => 0,
358 defaultDisplayMatrixStyle => "[s]",
320 }, 359 },
321); 360);

Legend:
Removed from v.1663  
changed lines
  Added in v.2216

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9