| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
3 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
| 4 | # $Id: global.conf.dist,v 1.35 2003-06-21 00:53:09 sh002i Exp $ |
4 | # $Id: global.conf.dist,v 1.39 2003-08-04 08:05:50 malsyned Exp $ |
| 5 | ################################################################################ |
5 | ################################################################################ |
| 6 | |
6 | |
| 7 | # This file is used to set up the default WeBWorK course environment for all |
7 | # 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. |
8 | # 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. |
9 | # All package variables set in this file are added to the course environment. |
| … | |
… | |
| 24 | bin => "$webworkRoot/bin", |
24 | bin => "$webworkRoot/bin", |
| 25 | conf => "$webworkRoot/conf", |
25 | conf => "$webworkRoot/conf", |
| 26 | courses => "$webworkRoot/courses", |
26 | courses => "$webworkRoot/courses", |
| 27 | lib => "$webworkRoot/lib", |
27 | lib => "$webworkRoot/lib", |
| 28 | logs => "$webworkRoot/logs", |
28 | logs => "$webworkRoot/logs", |
|
|
29 | macros => "$pgRoot/macros", |
| 29 | tmp => "$webworkRoot/tmp", |
30 | tmp => "$webworkRoot/tmp", |
| 30 | ); |
31 | ); |
| 31 | |
32 | |
| 32 | %webworkFiles = ( |
33 | %webworkFiles = ( |
| 33 | environment => "$webworkDirs{conf}/global.conf", |
34 | environment => "$webworkDirs{conf}/global.conf", |
| … | |
… | |
| 39 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
40 | setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", |
| 40 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
41 | userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", |
| 41 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
42 | postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", |
| 42 | }, |
43 | }, |
| 43 | screenSnippets => { |
44 | screenSnippets => { |
| 44 | setHeader => "$webworkDirs{conf}/snippets/screenSetHeader.pg", |
45 | setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", |
| 45 | }, |
46 | }, |
| 46 | logs => { |
47 | logs => { |
| 47 | timing => "$webworkDirs{logs}/timing.log", |
48 | timing => "$webworkDirs{logs}/timing.log", |
| 48 | }, |
49 | }, |
| 49 | ); |
50 | ); |
| … | |
… | |
| 70 | html_temp => "$courseRoot/html/tmp", |
71 | html_temp => "$courseRoot/html/tmp", |
| 71 | logs => "$courseRoot/logs", |
72 | logs => "$courseRoot/logs", |
| 72 | scoring => "$courseRoot/scoring", |
73 | scoring => "$courseRoot/scoring", |
| 73 | templates => "$courseRoot/templates", |
74 | templates => "$courseRoot/templates", |
| 74 | macros => "$courseRoot/templates/macros", |
75 | macros => "$courseRoot/templates/macros", |
|
|
76 | email => "$courseRoot/templates/email", |
| 75 | ); |
77 | ); |
| 76 | |
78 | |
| 77 | %courseFiles = ( |
79 | %courseFiles = ( |
| 78 | environment => "$courseDirs{root}/course.conf", |
80 | environment => "$courseDirs{root}/course.conf", |
| 79 | motd => "$courseDirs{root}/motd.txt", |
81 | motd => "$courseDirs{root}/motd.txt", |
|
|
82 | logs => { |
|
|
83 | answer_log => "$courseDirs{logs}/answer_log", |
|
|
84 | }, |
| 80 | ); |
85 | ); |
| 81 | |
86 | |
| 82 | # quick hack to fix transaction logging. blah. |
87 | # quick hack to fix transaction logging. blah. |
| 83 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
88 | $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; |
| 84 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
89 | $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; |
| … | |
… | |
| 115 | #], |
120 | #], |
| 116 | # feedbackVerbosity: |
121 | # feedbackVerbosity: |
| 117 | # 0: send only the feedback comment and context link |
122 | # 0: send only the feedback comment and context link |
| 118 | # 1: as in 0, plus user, set, problem, and PG data |
123 | # 1: as in 0, plus user, set, problem, and PG data |
| 119 | # 2: as in 1, plus the problem environment (debugging data) |
124 | # 2: as in 1, plus the problem environment (debugging data) |
| 120 | feedbackVerbosity => 1, |
125 | feedbackVerbosity => 1, |
|
|
126 | editor_window_rows => 15, |
|
|
127 | editor_window_columns => 100, |
| 121 | ); |
128 | ); |
| 122 | |
129 | |
| 123 | %externalPrograms = ( |
130 | %externalPrograms = ( |
| 124 | mkdir => "/bin/mkdir", |
131 | mkdir => "/bin/mkdir", |
| 125 | tth => "/usr/local/bin/tth", |
132 | tth => "/usr/local/bin/tth", |
| … | |
… | |
| 175 | access_instructor_tools => $ta, |
182 | access_instructor_tools => $ta, |
| 176 | create_and_delete_problem_sets => $professor, |
183 | create_and_delete_problem_sets => $professor, |
| 177 | modify_problem_sets => $professor, |
184 | modify_problem_sets => $professor, |
| 178 | assign_problem_sets => $professor, |
185 | assign_problem_sets => $professor, |
| 179 | modify_student_data => $professor, |
186 | modify_student_data => $professor, |
|
|
187 | score_sets => $professor, |
|
|
188 | send_mail => $professor, |
| 180 | ); |
189 | ); |
| 181 | |
190 | |
| 182 | ################################################################################ |
191 | ################################################################################ |
| 183 | # Session options |
192 | # Session options |
| 184 | ################################################################################ |
193 | ################################################################################ |
| … | |
… | |
| 214 | } |
223 | } |
| 215 | }, |
224 | }, |
| 216 | # currently selected renderer |
225 | # currently selected renderer |
| 217 | renderer => "WeBWorK::PG::Local", |
226 | renderer => "WeBWorK::PG::Local", |
| 218 | # directories used by PG |
227 | # directories used by PG |
|
|
228 | # options for various renderers |
|
|
229 | renderers => { |
|
|
230 | "WeBWorK::PG::Remote" => { |
|
|
231 | uri => "http://localhost:8089/RPC2" |
|
|
232 | } |
|
|
233 | }, |
|
|
234 | # currently selected renderer |
|
|
235 | renderer => "WeBWorK::PG::Local", |
|
|
236 | # directories used by PG |
| 219 | directories => { |
237 | directories => { |
|
|
238 | # directories used only by PG |
| 220 | lib => "$pgRoot/lib", |
239 | lib => "$pgRoot/lib", |
| 221 | macros => "$pgRoot/macros", |
240 | macros => "$pgRoot/macros", |
| 222 | }, |
241 | }, |
| 223 | options => { |
242 | options => { |
| 224 | # default translation options |
243 | # default translation options |
| … | |
… | |
| 231 | # default grader |
250 | # default grader |
| 232 | grader => "avg_problem_grader", |
251 | grader => "avg_problem_grader", |
| 233 | }, |
252 | }, |
| 234 | # this will be customized in the course.conf file |
253 | # this will be customized in the course.conf file |
| 235 | specialPGEnvironmentVars => { |
254 | specialPGEnvironmentVars => { |
| 236 | PRINT_FILE_NAMES_FOR => qw(gage apizer voloshin lr003k professor), |
255 | PRINT_FILE_NAMES_FOR => [ qw(gage apizer voloshin lr003k professor) ], |
| 237 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
256 | CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", |
| 238 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
257 | CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", |
| 239 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
258 | CAPA_Graphics_URL => "$courseDirs{html}/CAPA_Graphics/", |
| 240 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
259 | CAPA_GraphicsDirectory => "$courseDirs{html}CAPA_Graphics/", |
| 241 | }, |
260 | }, |