Parent Directory
|
Revision Log
added siteDefaults hash to store other site specific information includes a hash for several possible values of a users status field
1 #!perl 2 ################################################################################ 3 # WeBWorK Online Homework Delivery System 4 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 5 # $CVSHeader: webwork-modperl/conf/global.conf.dist,v 1.60 2004/05/07 14:13:03 gage 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. 16 ################################################################################ 17 18 # This file is used to set up the default WeBWorK course environment for all 19 # requests. Values may be overwritten by the course.conf for a specific course. 20 # All package variables set in this file are added to the course environment. 21 # If you wish to set a variable here but omit it from the course environment, 22 # use the "my" keyword. The following variables are available to this file: 23 # 24 # $webworkRoot directory that contains the WeBWorK distribution 25 # $webworkURL base URL handled by Apache::WeBWorK 26 # $pgRoot directory that contains the PG distribution 27 # $courseName name of the course being used 28 29 ################################################################################ 30 # WeBWorK settings 31 ################################################################################ 32 33 %webworkDirs = ( 34 root => "$webworkRoot", 35 DATA => "$webworkRoot/DATA", 36 uploadCache => "$webworkRoot/DATA/uploads", 37 bin => "$webworkRoot/bin", 38 conf => "$webworkRoot/conf", 39 courses => "$webworkRoot/courses", 40 htdocs => "$webworkRoot/htdocs", 41 htdocs_temp => "$webworkRoot/htdocs/tmp", 42 equationCache => "$webworkRoot/htdocs/tmp/equations", 43 lib => "$webworkRoot/lib", 44 logs => "$webworkRoot/logs", 45 macros => "$pgRoot/macros", 46 tmp => "$webworkRoot/tmp", 47 libraryRoot => "", # set to the top of the problem library, if its installed 48 ); 49 50 %webworkFiles = ( 51 environment => "$webworkDirs{conf}/global.conf", 52 hardcopySnippets => { 53 preamble => "$webworkDirs{conf}/snippets/hardcopyPreamble.tex", 54 setHeader => "$webworkDirs{conf}/snippets/hardcopySetHeader.pg", 55 problemDivider => "$webworkDirs{conf}/snippets/hardcopyProblemDivider.tex", 56 setFooter => "$webworkDirs{conf}/snippets/hardcopySetFooter.pg", 57 setDivider => "$webworkDirs{conf}/snippets/hardcopySetDivider.tex", 58 userDivider => "$webworkDirs{conf}/snippets/hardcopyUserDivider.tex", 59 postamble => "$webworkDirs{conf}/snippets/hardcopyPostamble.tex", 60 }, 61 screenSnippets => { 62 setHeader => "$webworkDirs{conf}/snippets/setHeader.pg", 63 }, 64 logs => { 65 timing => "$webworkDirs{logs}/timing.log", 66 }, 67 equationCacheDB => "$webworkDirs{DATA}/equationcache", 68 ); 69 70 %webworkURLs = ( 71 root => "$webworkURLRoot", 72 home => "/webwork2_files/index.html", 73 htdocs => "/webwork2_files", 74 htdocs_temp => "/webwork2_files/tmp", 75 equationCache => "/webwork2_files/tmp/equations", 76 docs => "http://webhost.math.rochester.edu/webworkdocs/docs", 77 oldProf => "/webwork1/profLogin.pl", 78 ); 79 80 ################################################################################ 81 # Default course-specific settings 82 ################################################################################ 83 84 my $courseRoot = "$webworkDirs{courses}/$courseName"; 85 %courseDirs = ( 86 root => "$courseRoot", 87 DATA => "$courseRoot/DATA", 88 auth_DATA => "$courseRoot/DATA/.auth", 89 html => "$courseRoot/html", 90 html_images => "$courseRoot/html/images", 91 html_temp => "$courseRoot/html/tmp", 92 logs => "$courseRoot/logs", 93 scoring => "$courseRoot/scoring", 94 templates => "$courseRoot/templates", 95 macros => "$courseRoot/templates/macros", 96 email => "$courseRoot/templates/email", 97 ); 98 99 %courseFiles = ( 100 environment => "$courseDirs{root}/course.conf", 101 motd => "$courseDirs{templates}/motd.txt", 102 logs => { 103 answer_log => "$courseDirs{logs}/answer_log", 104 }, 105 course_info => "course_info.txt", # path relative to templates directory 106 login_info => "login_info.txt", # path relative to templates directory 107 ); 108 109 # quick hack to fix transaction logging. blah. 110 $webworkFiles{logs}->{transaction} = "$courseDirs{logs}/transaction.log"; 111 $webworkFiles{logs}->{pastAnswerList} = "$courseDirs{logs}/past_answers.log"; 112 113 my $courseURLRoot = "/webwork2_courses/$courseName"; 114 %courseURLs = ( 115 root => "$courseURLRoot", 116 html => "$courseURLRoot", 117 html_temp => "$courseURLRoot/tmp", 118 ); 119 120 ################################################################################ 121 # Other site-specific options 122 ################################################################################ 123 124 %mail = ( 125 smtpServer => "mail.math.rochester.edu", 126 smtpSender => "webwork\@math.rochester.edu", 127 128 # allowedRecipients defines addresses that the PG system is allowed to 129 # send mail to. this prevents subtle PG exploits. This should be set 130 # in course.conf to the addresses of professors of each course. Sending 131 # mail from the PG system (i.e. questionaires, essay questions) will 132 # fail if this is not set somewhere (either here or in course.conf). 133 #allowedRecipients => [ 134 # 'prof1@host.yourdomain.edu', 135 # 'prof2@host.yourdomain.edu', 136 #], 137 138 # if defined, feedbackRecipients overrides the list of recipients for 139 # feedback email. It's appropriate to set this in the course.conf for 140 # specific courses, but probably not in global.conf. if not defined, 141 # mail is sent to all professors and TAs for a given course 142 #feedbackRecipients => [ 143 # 'prof1@host.yourdomain.edu', 144 # 'prof2@host.yourdomain.edu', 145 #], 146 147 # feedbackVerbosity: 148 # 0: send only the feedback comment and context link 149 # 1: as in 0, plus user, set, problem, and PG data 150 # 2: as in 1, plus the problem environment (debugging data) 151 feedbackVerbosity => 1, 152 153 # defines the size of the Mail Merge editor window 154 # FIXME: should this be here? it's UI, not mail 155 # FIXME: replace this with the auto-size method that TWiki uses 156 editor_window_rows => 15, 157 editor_window_columns => 100, 158 ); 159 160 %externalPrograms = ( 161 mkdir => "/bin/mkdir", 162 tth => "/usr/local/bin/tth", 163 pdflatex => "/usr/local/bin/pdflatex", 164 latex => "/usr/local/bin/latex", 165 dvipng => "/usr/local/bin/dvipng", 166 gif2eps => "$webworkDirs{bin}/gif2eps", 167 png2eps => "$webworkDirs{bin}/png2eps", 168 gif2png => "$webworkDirs{bin}/gif2png", 169 mysql => "/usr/local/bin/mysql", 170 ); 171 172 %siteDefaults = ( 173 status => { 174 audit => "Audit", 175 A => "Audit", 176 drop => "Drop", 177 D => "Drop", 178 withdraw => "Drop", 179 current => "Enrolled", 180 C => "Enrolled", 181 enrolled => "Enrolled", 182 }, 183 ); 184 185 ################################################################################ 186 # Frontend options 187 ################################################################################ 188 189 %templates = ( 190 system => "$webworkDirs{conf}/templates/ur.template", 191 ); 192 193 ################################################################################ 194 # Database options 195 ################################################################################ 196 197 # Several database are defined in the file conf/database.conf and stored in the 198 # hash %dbLayouts. 199 include "conf/database.conf"; 200 201 # Select the default database layout. This can be overridden in the course.conf 202 # file of a particular course. 203 #$dbLayoutName = "sql"; 204 $dbLayoutName = "gdbm"; 205 206 *dbLayout = $dbLayouts{$dbLayoutName}; 207 208 ################################################################################ 209 # Authorization system 210 ################################################################################ 211 212 # This lets you specify a minimum permission level needed to perform certain 213 # actions. In the current system, >=10 will allow a professor to perform the 214 # action, >=5 will allow a TA to, and >=0 will allow a student to perform an 215 # action (almost never what you want). 216 my $ta = 5; 217 my $professor = 10; 218 %permissionLevels = ( 219 become_student => $professor, 220 access_instructor_tools => $ta, 221 create_and_delete_problem_sets => $professor, 222 modify_problem_sets => $professor, 223 assign_problem_sets => $professor, 224 modify_student_data => $professor, 225 score_sets => $professor, 226 send_mail => $professor, 227 modify_classlist_files => $professor, 228 modify_set_def_files => $professor, 229 modify_scoring_files => $professor, 230 create_and_delete_courses => $professor, 231 ); 232 233 ################################################################################ 234 # Session options 235 ################################################################################ 236 237 # $sessionKeyTimeout defines seconds of inactivity before a key expires 238 $sessionKeyTimeout = 60*30; 239 240 # $sessionKeyLength defines the length (in characters) of the session key 241 $sessionKeyLength = 40; 242 243 # @sessionKeyChars lists the legal session key characters 244 @sessionKeyChars = ('A'..'Z', 'a'..'z', '0'..'9', '.', '^', '/', '!', '*'); 245 246 # Practice users are users who's names start with $practiceUser 247 # (you can comment this out to remove practice user support) 248 $practiceUserPrefix = "practice"; 249 250 # There is a practice user who can be logged in multiple times. He's 251 # commented out by default, though, so you don't hurt yourself. It is 252 # kindof a backdoor to the practice user system, since he doesn't have a 253 # password. Come to think of it, why do we even have this?! 254 #$debugPracticeUser = "practice666"; 255 256 ################################################################################ 257 # PG translation options 258 ################################################################################ 259 260 %pg = ( 261 # options for various renderers 262 renderers => { 263 "WeBWorK::PG::Remote" => { 264 proxy => "http://localhost:21000/RenderD" 265 } 266 }, 267 # currently selected renderer 268 renderer => "WeBWorK::PG::Local", 269 #renderer => "WeBWorK::PG::Remote", 270 # directories used by PG 271 directories => { 272 # directories used only by PG 273 root => "$pgRoot", 274 lib => "$pgRoot/lib", 275 macros => "$pgRoot/macros", 276 }, 277 options => { 278 # default translation options 279 displayMode => "images", 280 showOldAnswers => 1, 281 showCorrectAnswers => 0, 282 showHints => 0, 283 showSolutions => 0, 284 catchWarnings => 0, # there's a global warning catcher now 285 # default grader 286 grader => "avg_problem_grader", 287 }, 288 # this will be customized in the course.conf file 289 specialPGEnvironmentVars => { 290 PRINT_FILE_NAMES_FOR => [ qw(professor) ], 291 CAPA_Tools => "$courseDirs{macros}/CAPA_Tools/", 292 CAPA_MCTools => "$courseDirs{macros}/CAPA_MCTools/", 293 CAPA_Graphics_URL => "$courseURLs{html}/CAPA_Graphics/", 294 CAPA_GraphicsDirectory => "$courseDirs{html}/CAPA_Graphics/", 295 }, 296 # modules lists module names and the packages each contains 297 modules => [ 298 [qw(DynaLoader)], 299 [qw(Exporter)], 300 [qw(GD)], 301 302 [qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand)], 303 [qw(AnswerHash AnswerEvaluator)], 304 [qw(WWPlot)], # required by Circle (and others) 305 [qw(Circle)], 306 [qw(Complex)], 307 [qw(Complex1)], 308 [qw(Distributions)], 309 [qw(Fraction)], 310 [qw(Fun)], 311 [qw(Hermite)], 312 [qw(Label)], 313 [qw(List)], 314 [qw(Match)], 315 [qw(MatrixReal1)], # required by Matrix 316 [qw(Matrix)], 317 [qw(Multiple)], 318 [qw(PGrandom)], 319 [qw(Regression)], 320 [qw(Select)], 321 [qw(Units)], 322 [qw(VectorField)], 323 ], 324 # defaults used by answer evaluators 325 ansEvalDefaults => { 326 functAbsTolDefault => .001, 327 functLLimitDefault => .0000001, 328 functMaxConstantOfIntegration => 1E8, 329 functNumOfPoints => 3, 330 functRelPercentTolDefault => .1, 331 functULimitDefault => .9999999, 332 functVarDefault => "x", 333 functZeroLevelDefault => 1E-14, 334 functZeroLevelTolDefault => 1E-12, 335 numAbsTolDefault => .001, 336 numFormatDefault => "", 337 numRelPercentTolDefault => .1, 338 numZeroLevelDefault => 1E-14, 339 numZeroLevelTolDefault => 1E-12, 340 useBaseTenLog => 0, 341 defaultDisplayMatrixStyle => "[s]", 342 }, 343 );
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |