[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 1154 Revision 2502
1#!perl 1#!perl
2################################################################################ 2################################################################################
3# WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester 3# WeBWorK Online Homework Delivery System
4# $Id: global.conf.dist,v 1.32 2003-06-13 02:30:44 sh002i Exp $ 4# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
5# $CVSHeader: webwork2/conf/global.conf.dist,v 1.88 2004/07/12 02:30:21 sh002i Exp $
6#
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
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.
11#
12# This program is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
15# Artistic License for more details.
5################################################################################ 16################################################################################
6 17
7# This file is used to set up the default WeBWorK course environment for all 18# 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. 19# 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. 20# 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, 21# 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: 22# use the "my" keyword. The following variables are set in the WeBWorK Apache
12# 23# configuration file (webwork.apache-config) and available for use here:
13# $webworkRoot directory that contains the WeBWorK distribution 24#
14# $webworkURL base URL handled by Apache::WeBWorK 25# $webwork_url The base URL handled by Apache::WeBWorK.
15# $pgRoot directory that contains the PG distribution 26# $webwork_dir The path to the base webwork2 directory.
16# $courseName name of the course being used 27# $pg_dir The path to the base pg directory.
28#
29# $webwork_htdocs_url The base URL of the WeBWorK htdocs directory.
30# $webwork_htdocs_dir The path to the WeBWorK htdocs directory.
31#
32# $webwork_courses_url The base URL of the WeBWorK courses directory.
33# $webwork_courses_dir The path to the WeBWorK courses directory.
34#
35# In addition, the $courseName variable holds the name of the current course.
17 36
18################################################################################ 37################################################################################
19# WeBWorK settings 38# System-wide locations (directories and URLs)
20################################################################################ 39################################################################################
21 40
22%webworkDirs = ( 41# The root directory, set by webwork_root variable in Apache configuration.
23 root => "$webworkRoot", 42$webworkDirs{root} = "$webwork_dir";
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 43
33%webworkFiles = ( 44# Location of system-wide data files.
34 environment => "$webworkDirs{conf}/global.conf", 45$webworkDirs{DATA} = "$webworkDirs{root}/DATA";
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/screenSetHeader.pg",
46 },
47 logs => {
48 timing => "$webworkDirs{logs}/timing.log",
49 },
50);
51 46
52%webworkURLs = ( 47# Used for temporary storage of uploaded files.
53 root => "$webworkURLRoot", 48$webworkDirs{uploadCache} = "$webworkDirs{DATA}/uploads";
54 home => "/webwork2_files/index.html", 49
55 htdocs => "/webwork2_files", 50# Location of utility programs.
51$webworkDirs{bin} = "$webworkDirs{root}/bin";
52
53# Location of configuration files, templates, snippets, etc.
54$webworkDirs{conf} = "$webworkDirs{root}/conf";
55
56# Location of course directories.
57$webworkDirs{courses} = "$webwork_courses_dir" || "$webworkDirs{root}/courses";
58
59# Contains log files.
60$webworkDirs{logs} = "$webworkDirs{root}/logs";
61
62# Contains non-web-accessible temporary files, such as TeX working directories.
63$webworkDirs{tmp} = "$webworkDirs{root}/tmp";
64
65##### The following locations are web-accessible.
66
67# The root URL (usually /webwork2), set by <Location> in Apache configuration.
68$webworkURLs{root} = "$webwork_url";
69
70# Location of system-wide web-accessible files, such as equation images, and
71# help files.
72$webworkDirs{htdocs} = "$webwork_htdocs_dir" || "$webworkDirs{root}/htdocs";
73$webworkURLs{htdocs} = "$webwork_htdocs_url";
74
75# Location of web-accessible temporary files, such as equation images.
76$webworkDirs{htdocs_temp} = "$webworkDirs{htdocs}/tmp";
77$webworkURLs{htdocs_temp} = "$webworkURLs{htdocs}/tmp";
78
79# Location of cached equation images.
80$webworkDirs{equationCache} = "$webworkDirs{htdocs_temp}/equations";
81$webworkURLs{equationCache} = "$webworkURLs{htdocs_temp}/equations";
82
83# Contains context-sensitive help files.
84$webworkDirs{local_help} = "$webworkDirs{htdocs}/helpFiles";
85$webworkURLs{local_help} = "$webworkURLs{htdocs}/helpFiles";
86
87# URL of general WeBWorK documentation.
56 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 88$webworkURLs{docs} = "http://webhost.math.rochester.edu/webworkdocs/docs";
57 oldProf => "/webwork-old/profLogin.pl",
58);
59 89
60################################################################################ 90# URL of WeBWorK 1.x profLogin.pl script, for access to old professor pages.
61# Default course-specific settings 91# Note that both systems must share a single "courses" directory for this to be
62################################################################################ 92# useful. Leave this blank to disable
93$webworkURLs{oldProf} = "/webwork1/profLogin.pl";
63 94
95# URL of WeBWorK Bugzilla database.
96$webworkURLs{bugReporter} = "http://bugs.webwork.rochester.edu/enter_bug.cgi?product=WeBWorK%20mod_perl";
97
98# Location of jsMath script, used for the jsMath display mode.
99$webworkURLs{jsMath} = "$webworkURLs{htdocs}/jsMath/jsMath.js";
100
101# Location of ASCIIMathML script, used for the asciimath display mode.
102$webworkURLs{asciimath} = "$webworkURLs{htdocs}/ASCIIMathML/ASCIIMathML.js";
103
104################################################################################
105# Defaults for course-specific locations (directories and URLs)
106################################################################################
107
108# The root directory of the current course. (The ID of the current course is
109# available in $courseName.)
64my $courseRoot = "$webworkDirs{courses}/$courseName"; 110$courseDirs{root} = "$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);
77 111
78%courseFiles = ( 112# Location of course-specific data files, such as WW1 (GDBM) database files.
113$courseDirs{DATA} = "$courseDirs{root}/DATA";
114
115# Location of authentication data files when using a WW1 (GDBM) database.
116$courseDirs{auth_DATA} = "$courseDirs{DATA}/.auth";
117
118# Location of course HTML files, passed to PG.
119$courseDirs{html} = "$courseDirs{root}/html";
120$courseURLs{html} = "$webwork_courses_url/$courseName";
121
122# Location of course image files, passed to PG.
123$courseDirs{html_images} = "$courseDirs{html}/images";
124
125# Location of web-accessible, course-specific temporary files, like static and
126# dynamically-generated PG graphics.
127$courseDirs{html_temp} = "$courseDirs{html}/tmp";
128$courseURLs{html_temp} = "$courseURLs{html}/tmp";
129
130# Location of course-specific logs, like the transaction log.
131$courseDirs{logs} = "$courseDirs{root}/logs";
132
133# Location of scoring files.
134$courseDirs{scoring} = "$courseDirs{root}/scoring";
135
136# Location of PG templates and set definition files.
137$courseDirs{templates} = "$courseDirs{root}/templates";
138
139# Location of course-specific macro files.
140$courseDirs{macros} = "$courseDirs{templates}/macros";
141
142# Location of mail-merge templates.
143$courseDirs{email} = "$courseDirs{templates}/email";
144
145################################################################################
146# System-wide files
147################################################################################
148
149# Location of this file.
150$webworkFiles{environment} = "$webworkDirs{conf}/global.conf";
151
152# Flat-file database used to protect against MD5 hash collisions. TeX equations
153# are hashed to determine the name of the image file. There is a tiny chance of
154# a collision between two TeX strings. This file allows for that. However, this
155# is slow, so most people chose not to worry about it. Set this to "" if you
156# don't want to use the equation cache file.
157$webworkFiles{equationCacheDB} = ""; # "$webworkDirs{DATA}/equationcache";
158
159##### Hardcopy snippets are used in constructing a TeX file for hardcopy output.
160##### They should contain TeX code unless otherwise noted.
161
162# The preamble is the first thing in the TeX file.
163$webworkFiles{hardcopySnippets}{preamble} = "$webworkDirs{conf}/snippets/hardcopyPreamble.tex";
164
165# The setHeader preceeds each set. It is a PG file.
166$webworkFiles{hardcopySnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # hardcopySetHeader.pg",
167
168# The problem divider goes between problems.
169$webworkFiles{hardcopySnippets}{problemDivider} = "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex";
170
171# The set footer goes after each set. Is is a PG file.
172$webworkFiles{hardcopySnippets}{setFooter} = "$webworkDirs{conf}/snippets/hardcopySetFooter.pg";
173
174# The set divider goes between sets (in multiset output).
175$webworkFiles{hardcopySnippets}{setDivider} = "$webworkDirs{conf}/snippets/hardcopySetDivider.tex";
176
177# The user divider does between users (in multiuser output).
178$webworkFiles{hardcopySnippets}{userDivider} = "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex";
179
180# The postabmle is the last thing in the TeX file.
181$webworkFiles{hardcopySnippets}{postamble} = "$webworkDirs{conf}/snippets/hardcopyPostamble.tex";
182
183##### Screen snippets are used when displaying problem sets on the screen.
184
185# The set header is displayed on the problem set page. It is a PG file.
186$webworkFiles{screenSnippets}{setHeader} = "$webworkDirs{conf}/snippets/setHeader.pg"; # screenSetHeader.pg"
187
188################################################################################
189# Course-specific files
190################################################################################
191
192# The course configuration file.
79 environment => "$courseDirs{root}/course.conf", 193$courseFiles{environment} = "$courseDirs{root}/course.conf";
80 motd => "$courseDirs{root}/motd.txt",
81);
82 194
83# quick hack to fix transaction logging. blah. 195# File contents are displayed after login, on the problem sets page. Path given
196# here is relative to the templates directory.
197$courseFiles{course_info} = "course_info.txt";
198
199# File contents are displayed on the login page. Path given here is relative to
200# the templates directory.
201$courseFiles{login_info} = "login_info.txt";
202
203# Additional library buttons can be added to the Library Browser (SetMaker.pm)
204# by adding the libraries you want to the following line. For each key=>value
205# in the list, if a directory (or link to a directory) with name 'key' appears
206# in the templates directory, then a button with name 'value' will be placed at
207# the top of the problem browser. (No button will appear if there is no
208# directory or link with the given name in the templates directory.) For
209# example,
210#
211# $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"};
212#
213# would add two buttons, one for the Rochester library and one for the ASU
214# library, provided templates/rochester and templates/asu exists.
215#
216$courseFiles{problibs} = {};
217
218################################################################################
219# Logs
220################################################################################
221
222# FIXME: take logs out of %webworkFiles/%courseFiles and give them their own
223# top-level hash.
224
225# Logs data about how long it takes to process problems. (Do not confuse this
226# with the /other/ timing log which can be set by WeBWorK::Timing and is used
227# for benchmarking system performance in general. At some point, this timing
228# mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.)
229$webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log";
230
231# The transaction log contains data from each recorded answer submission. This
232# is useful if the database becomes corrupted.
84$webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 233$webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log";
85$webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log";
86 234
87my $courseURLRoot = "$webworkURLs{htdocs}/courses/$courseName"; 235# The answer log stores a history of all users' submitted answers.
88%courseURLs = ( 236$courseFiles{logs}{answer_log} = "$courseDirs{logs}/answer_log";
89 root => "$courseURLRoot",
90 html => "$courseURLRoot",
91 html_temp => "$courseURLRoot/tmp",
92);
93 237
94################################################################################ 238################################################################################
95# Other site-specific options 239# Mail settings
96################################################################################ 240################################################################################
97 241
98%mail = ( 242# Mail sent by the PG system and the mail merge and feedback modules will be
99 smtpServer => "mail.math.rochester.edu", 243# sent via this SMTP server.
100 smtpSender => "webwork\@math.rochester.edu", 244$mail{smtpServer} = 'mail.yourschool.edu';
245
246# When connecting to the above server, WeBWorK will send this address in the
247# MAIL FROM command. This has nothing to do with the "From" address on the mail
248# message. It can really be anything, but some mail servers require it contain
249# a valid mail domain, or at least be well-formed.
250$mail{smtpSender} = 'webwork@yourserver.yourschool.edu';
251
101 # allowedRecipients defines addresses that the PG system is allowed to 252# AllowedRecipients defines addresses that the PG system is allowed to send mail
102 # send mail to. this prevents subtle PG exploits. This should be set 253# to. this prevents subtle PG exploits. This should be set in course.conf to the
103 # in course.conf to the addresses of professors of each course. Sending 254# addresses of professors of each course. Sending mail from the PG system (i.e.
104 # mail from the PG system (i.e. questionaires, essay questions) will 255# questionaires, essay questions) will fail if this is not set somewhere (either
105 # fail if this is not set somewhere (either here or in course.conf). 256# here or in course.conf).
106 #allowedRecipients => [ 257$mail{allowedRecipients} = [
107 # "yourname\@host.yourdomain.edu", 258 #'prof1@yourserver.yourdomain.edu',
108 #], 259 #'prof2@yourserver.yourdomain.edu',
260];
261
109 # if defined, feedbackRecipients overrides the list of recipients for 262# If defined, feedbackRecipients overrides the list of recipients for feedback
110 # feedback email. It's appropriate to set this in the course.conf for 263# email. It's appropriate to set this in the course.conf for specific courses,
111 # specific courses, but probably not in global.conf. if not defined, 264# but probably not in global.conf. if not defined, mail is sent to all
112 # mail is sent to all professors and TAs for a given course 265# professors and TAs for a given course
113 #feedbackRecipients => [ 266$mail{feedbackRecipients} = [
114 # "prof1\@host.yourdomain.edu", 267 #'prof1@yourserver.yourdomain.edu',
115 # "prof2\@host.yourdomain.edu", 268 #'prof2@yourserver.yourdomain.edu',
116 #], 269];
270
117 # feedbackVerbosity: 271# feedbackVerbosity:
118 # 0: send only the feedback comment and context link 272# 0: send only the feedback comment and context link
119 # 1: as in 0, plus user, set, problem, and PG data 273# 1: as in 0, plus user, set, problem, and PG data
120 # 2: as in 1, plus the problem environment (debugging data) 274# 2: as in 1, plus the problem environment (debugging data)
121 feedbackVerbosity => 1, 275$mail{feedbackVerbosity} = 1;
122); 276
277# Defines the size of the Mail Merge editor window
278# FIXME: should this be here? it's UI, not mail
279# FIXME: replace this with the auto-size method that TWiki uses
280$mail{editor_window_rows} = 15;
281$mail{editor_window_columns} = 100;
123 282
124%externalPrograms = ( 283################################################################################
125 mkdir => "/bin/mkdir", 284# Paths to external programs
126 tth => "/usr/local/bin/tth", 285################################################################################
286
287$externalPrograms{mkdir} = "/bin/mkdir";
288$externalPrograms{mysql} = "/usr/local/bin/mysql";
289
290$externalPrograms{latex} = "/usr/local/bin/latex";
127 pdflatex => "/usr/local/bin/pdflatex", 291$externalPrograms{pdflatex} = "/usr/local/bin/pdflatex";
128 latex => "/usr/local/bin/latex", 292$externalPrograms{dvipng} = "/usr/local/bin/dvipng";
129 #dvipng => "/usr/local/bin/dvipng -mode ljfivemp -D600 -Q6 -x1000.5 -bgTransparent", 293$externalPrograms{tth} = "/usr/local/bin/tth";
130 dvipng => "/usr/local/bin/dvipng", 294
295# These image conversion utilities are included in the WeBWorK distribution.
131 gif2eps => "$webworkDirs{bin}/gif2eps", 296$externalPrograms{gif2eps} = "$webworkDirs{bin}/gif2eps";
132 png2eps => "$webworkDirs{bin}/png2eps", 297$externalPrograms{png2eps} = "$webworkDirs{bin}/png2eps";
133 gif2png => "$webworkDirs{bin}/gif2png", 298$externalPrograms{gif2png} = "$webworkDirs{bin}/gif2png";
134); 299
300################################################################################
301# Site defaults (FIXME: what other things could be "site defaults"?)
302################################################################################
303
304# Status strings -- lists valid status values and their names. If your site uses
305# additional values, add them here.
306$siteDefaults{status} = {
307 A => "Audit",
308 audit => "Audit",
309 D => "Drop",
310 drop => "Drop",
311 withdraw => "Drop",
312 C => "Enrolled",
313 current => "Enrolled",
314 enrolled => "Enrolled",
315};
135 316
136################################################################################ 317################################################################################
137# Frontend options 318# Frontend options
138################################################################################ 319################################################################################
139 320
143 324
144################################################################################ 325################################################################################
145# Database options 326# Database options
146################################################################################ 327################################################################################
147 328
148# Several database layouts are defined in separate environment files. Select the 329# Several database are defined in the file conf/database.conf and stored in the
149# one which should be used by all courses by default, and include it. This can 330# hash %dbLayouts.
150# be overridden by including a difference environment file in the course.conf of
151# a particular course.
152
153# Include sql.conf to specify a database layout for use with an SQL server.
154#include "conf/sql.conf";
155
156# Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
157# databases. Use this layout if you wish to share courses between WeBWorK 1.x
158# and WeBWorK 2.
159include "conf/gdbm.conf"; 331include "conf/database.conf";
160 332
161# Please read the documentation in the file that you chose to include, as there 333# Select the default database layout. This can be overridden in the course.conf
162# are layout-specific options that must be configured. 334# file of a particular course. If you choose "gdbm", WeBWorK will be able to
335# use courses from WeBWorK 1 without first adding course.conf files to them.
336# However, the recommended database layout for new courses is "sql". This can
337# be set when creating a course.
338$dbLayoutName = "sql"; # or "gdbm";
339
340# This sets the symbol "dbLayout" as an alias for the selected database layout.
341*dbLayout = $dbLayouts{$dbLayoutName};
342
343################################################################################
344# Problem library options
345################################################################################
346
347# The directory containing the problem library files. Set to "" if no problem
348# library is installed.
349$problemLibrary{root} = "";
350
351# The name of the SQL database containing problem metadata
352$problemLibrary{sourceSQL} = "ProblemLibrary";
353
354# The user name to use when connecting to the problem library database
355$problemLibrary{userSQL} = "webworkRead";
356
357# The password to use when connecting to the problem library database
358$problemLibrary{passwordSQL} = "";
163 359
164################################################################################ 360################################################################################
165# Authorization system 361# Authorization system
166################################################################################ 362################################################################################
167 363
168# This lets you specify a minimum permission level needed to perform certain 364# This lets you specify a minimum permission level needed to perform certain
169# actions. In the current system, >=10 will allow a professor to perform the 365# actions. In the current system, >=10 will allow a professor to perform the
170# action, >=5 will allow a TA to, and >=0 will allow a student to perform an 366# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
171# action (almost never what you want). 367# action (almost never what you want).
368
369my $student = 0;
172my $ta = 5; 370my $ta = 5;
173my $professor = 10; 371my $professor = 10;
372
174%permissionLevels = ( 373%permissionLevels = (
374 report_bugs => $student,
375 view_multiple_sets => $ta,
376 view_unopened_sets => $ta,
377 view_unpublished_sets => $ta,
378 view_answers => $ta,
175 become_student => $professor, 379 become_student => $professor,
176 access_instructor_tools => $ta, 380 access_instructor_tools => $ta,
177 create_and_delete_problem_sets => $professor, 381 create_and_delete_problem_sets => $professor,
178 modify_problem_sets => $professor, 382 modify_problem_sets => $professor,
179 assign_problem_sets => $professor, 383 assign_problem_sets => $professor,
384 modify_student_data => $professor,
385 score_sets => $professor,
386 send_mail => $professor,
387 modify_classlist_files => $professor,
388 modify_set_def_files => $professor,
389 modify_scoring_files => $professor,
390 modify_problem_template_files => $professor,
391 create_and_delete_courses => $professor,
392 fix_course_databases => $professor,
180); 393);
181 394
182################################################################################ 395################################################################################
183# Session options 396# Session options
184################################################################################ 397################################################################################
201# kindof a backdoor to the practice user system, since he doesn't have a 414# kindof a backdoor to the practice user system, since he doesn't have a
202# password. Come to think of it, why do we even have this?! 415# password. Come to think of it, why do we even have this?!
203#$debugPracticeUser = "practice666"; 416#$debugPracticeUser = "practice666";
204 417
205################################################################################ 418################################################################################
206# PG translation options 419# PG subsystem options
207################################################################################ 420################################################################################
208 421
209%pg = ( 422# List of enabled display modes. Comment out any modes you don't wish to make
210 directories => { 423# available for use.
211 # directories used only by PG 424$pg{displayModes} = [
212 lib => "$pgRoot/lib", 425 "plainText", # display raw TeX for math expressions
213 macros => "$pgRoot/macros", 426 "formattedText", # format math expressions using TtH
214 }, # (not used yet) 427 "images", # display math expressions as images generated by dvipng
215 options => { 428 "jsMath", # render TeX math expressions on the client side using jsMath
216 # default translation options 429 "asciimath", # render TeX math expressions on the client side using ASCIIMathML
430];
431
432#### Default settings for the PG translator
433
434# Default display mode. Should be listed above.
217 displayMode => "images", 435$pg{options}{displayMode} = "images";
218 showOldAnswers => 1, 436
219 showCorrectAnswers => 0, 437# The default grader to use, if a problem doesn't specify.
220 showHints => 0, 438$pg{options}{grader} = "avg_problem_grader";
221 showSolutions => 0, 439
222 catchWarnings => 0, # there's a global warning catcher now 440# Fill in answer blanks with the student's last answer by default?
223 # default grader 441$pg{options}{showOldAnswers} = 1;
224 grader => "avg_problem_grader", 442
443# Show correct answers (when allowed) by default?
444$pg{options}{showCorrectAnswers} = 0;
445
446# Show hints (when allowed) by default?
447$pg{options}{showHints} = 0;
448
449# Show solutions (when allowed) by default?
450$pg{options}{showSolutions} = 0;
451
452# Catch translation warnings internally by default? (We no longer need to do
453# this, since there is a global warnings handler. So this should be off.)
454$pg{options}{catchWarnings} = 0;
455
456##### Currently-selected renderer
457
458# Only the local renderer is supported in this version.
459$pg{renderer} = "WeBWorK::PG::Local";
460
461# The remote renderer connects to an XML-RPC PG rendering server.
462#$pg{renderer} = "WeBWorK::PG::Remote"'
463
464##### Renderer-dependent options
465
466# The remote renderer has one option:
467$pg{renderers}{"WeBWorK::PG::Remote"} = {
468 # The "proxy" server to connect to for remote rendering.
469 proxy => "http://localhost:21000/RenderD",
470};
471
472##### Settings for various display modes
473
474# "images" mode has several settings:
475$pg{displayModeOptions}{images} = {
476 # Determines the method used to align images in output. Can be
477 # "baseline", "absmiddle", or "mysql".
478 dvipng_align => 'baseline',
479
480 # If we choose mysql, we need information on connecting to the
481 # database. Whatever you use here, you have to create the database
482 # and grant read/write priveleges to the user listed here. To create
483 # the database in mysql, as root use:
484 #
485 # CREATE DATABASE DvipngDepths;
486 # USE DvipngDepths;
487 # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5));
488 # GRANT ALL ON DvipngDepths.* TO webworkWrite;
489 #
490 # In the last statement, "webworkWrite" should match the user below.
491 dvipng_depth_db => {
492 dbsource => 'dbi:mysql:DvipngDepths',
493 user => $dbLayouts{sql}->{password}->{params}->{usernameRW},
494 passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW},
225 }, 495 },
226 # this will be customized in the course.conf file 496};
227 specialPGEnvironmentVars => { 497
228 PRINT_FILE_NAMES_FOR => ['gage','apizer','voloshin','lr003k','professor'], 498##### Directories used by PG
499
500# The root of the PG directory tree (from pg_root in Apache config).
501$pg{directories}{root} = "$pg_dir";
502$pg{directories}{lib} = "$pg{directories}{root}/lib";
503$pg{directories}{macros} = "$pg{directories}{root}/macros";
504
505##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)
506
507# Users for whom to print the file name of the PG file being processed.
508$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ];
509
510# Locations of CAPA resources. (Only necessary if you need to use converted CAPA
511# problems.)
229 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 512$pg{specialPGEnvironmentVars}{CAPA_Tools} = "$courseDirs{macros}/CAPA_Tools/",
230 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 513$pg{specialPGEnvironmentVars}{CAPA_MCTools} = "$courseDirs{macros}/CAPA_MCTools/",
231 CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", 514$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/",
232 CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", 515$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{html}/CAPA_Graphics/",
233 }, 516
234 # modules lists module names and the packages each contains 517# Size in pixels of dynamically-generated images, i.e. graphs.
235 modules => [ 518$pg{specialPGEnvironmentVars}{onTheFlyImageSize} = 400,
519
520##### PG modules to load
521
522# The first item of each list is the module to load. The remaining items are
523# additional packages to import.
524
525${pg}{modules} = [
236 [qw(DynaLoader)], 526 [qw(DynaLoader)],
237 [qw(Exporter)], 527 [qw(Exporter)],
238 [qw(GD)], 528 [qw(GD)],
239 529
240 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 530 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)],
241 [qw(AnswerHash AnswerEvaluator)], 531 [qw(AnswerHash AnswerEvaluator)],
242 [qw(WWPlot)], # required by Circle (and others) 532 [qw(WWPlot)], # required by Circle (and others)
243 [qw(Circle)], 533 [qw(Circle)],
244 [qw(Complex)], 534 [qw(Complex)],
245 [qw(Complex1)], 535 [qw(Complex1)],
246 [qw(Distributions)], 536 [qw(Distributions)],
247 [qw(Fraction)], 537 [qw(Fraction)],
248 [qw(Fun)], 538 [qw(Fun)],
249 [qw(Hermite)], 539 [qw(Hermite)],
250 [qw(Label)], 540 [qw(Label)],
251 [qw(List)], 541 [qw(List)],
252 [qw(Match)], 542 [qw(Match)],
253 [qw(MatrixReal1)], # required by Matrix 543 [qw(MatrixReal1)], # required by Matrix
254 [qw(Matrix)], 544 [qw(Matrix)],
255 [qw(Multiple)], 545 [qw(Multiple)],
256 [qw(PGrandom)], 546 [qw(PGrandom)],
257 [qw(Regression)], 547 [qw(Regression)],
258 [qw(Select)], 548 [qw(Select)],
259 [qw(Units)], 549 [qw(Units)],
260 [qw(VectorField)], 550 [qw(VectorField)],
261 ], 551];
262 # defaults used by answer evaluators 552
553##### Answer evaluatior defaults
554
263 ansEvalDefaults => { 555$pg{ansEvalDefaults} = {
264 functAbsTolDefault => .001, 556 functAbsTolDefault => .001,
265 functLLimitDefault => .0000001, 557 functLLimitDefault => .0000001,
266 functMaxConstantOfIntegration => 1E8, 558 functMaxConstantOfIntegration => 1E8,
267 functNumOfPoints => 3, 559 functNumOfPoints => 3,
268 functRelPercentTolDefault => .1, 560 functRelPercentTolDefault => .1,
269 functULimitDefault => .9999999, 561 functULimitDefault => .9999999,
270 functVarDefault => "x", 562 functVarDefault => "x",
271 functZeroLevelDefault => 1E-14, 563 functZeroLevelDefault => 1E-14,
272 functZeroLevelTolDefault => 1E-12, 564 functZeroLevelTolDefault => 1E-12,
273 numAbsTolDefault => .001, 565 numAbsTolDefault => .001,
274 numFormatDefault => "", 566 numFormatDefault => "",
275 numRelPercentTolDefault => .1, 567 numRelPercentTolDefault => .1,
276 numZeroLevelDefault => 1E-14, 568 numZeroLevelDefault => 1E-14,
277 numZeroLevelTolDefault => 1E-12, 569 numZeroLevelTolDefault => 1E-12,
278 }, 570 useBaseTenLog => 0,
279); 571 defaultDisplayMatrixStyle => "[s]",
572};
573
574################################################################################
575# Compatibility
576################################################################################
577
578# Define the old names for the various "root" variables.
579$webworkRoot = $webworkDirs{root};
580$webworkURLRoot = $webworkURLs{root};
581$pgRoot = $pg{directories}{root};

Legend:
Removed from v.1154  
changed lines
  Added in v.2502

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9