[system] / trunk / webwork2 / conf / global.conf.dist Repository:
ViewVC logotype

Diff of /trunk/webwork2/conf/global.conf.dist

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

Revision 1107 Revision 1108
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.28 2003-06-10 16:27:26 malsyned Exp $ 4# $Id: global.conf.dist,v 1.29 2003-06-10 19:58:27 sh002i 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.
118 # 1: as in 0, plus user, set, problem, and PG data 118 # 1: as in 0, plus user, set, problem, and PG data
119 # 2: as in 1, plus the problem environment (debugging data) 119 # 2: as in 1, plus the problem environment (debugging data)
120 feedbackVerbosity => 1, 120 feedbackVerbosity => 1,
121); 121);
122 122
123
124
125%externalPrograms = ( 123%externalPrograms = (
126 mkdir => "/bin/mkdir", 124 mkdir => "/bin/mkdir",
127 tth => "/usr/local/bin/tth", 125 tth => "/usr/local/bin/tth",
128 pdflatex => "/usr/local/bin/pdflatex", 126 pdflatex => "/usr/local/bin/pdflatex",
129 latex => "/usr/local/bin/latex", 127 latex => "/usr/local/bin/latex",
140%templates = ( 138%templates = (
141 system => "$webworkDirs{conf}/templates/ur.template", 139 system => "$webworkDirs{conf}/templates/ur.template",
142); 140);
143 141
144################################################################################ 142################################################################################
145# Database and session 143# Database options
146################################################################################ 144################################################################################
147
148# dbInfo records some data for the "old" WW/Classlist/Auth.pm database system
149# {auth,wwdb,cldb}_type = database type: GDBM currently implemented
150# {auth_passwd,auth_perm,auth_keys,wwdb,cldb}_file = path to database file
151%dbInfo = (
152 auth_type => "GDBM",
153 auth_passwd_file => "$courseDirs{auth_DATA}/$courseName\_password_DB",
154 auth_perm_file => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
155 auth_keys_file => "$courseDirs{auth_DATA}/keys",
156 wwdb_type => "GDBM",
157 wwdb_file => "$courseDirs{DATA}/$courseName\_webwork_DB",
158 cldb_type => "GDBM",
159 cldb_file => "$courseDirs{DATA}/$courseName\_classlist_DB",
160 psvn_digits => 5,
161);
162 145
163# dbLayout records the schema and source for each table in the "new" DB.pm 146# Several database layouts are defined in separate environment files. Select the
164# database system. consult DB.pm for the authoritative list of tables. 147# one which should be used by all courses by default, and include it. This can
165# schema = perl module to use for access to the table 148# be overridden by including a difference environment file in the course.conf of
166# driver = perl module to use for access to the data source 149# a particular course.
167# source = location of data source (i.e. path, url, DBI spec)
168# params = extra information needed by the schema (optional)
169# note: schema and driver must have the same interface.
170%dbLayout = (
171 password => {
172 record => "WeBWorK::DB::Record::Password",
173 schema => "WeBWorK::DB::Schema::Auth1Hash",
174 driver => "WeBWorK::DB::Driver::GDBM",
175 source => "$courseDirs{auth_DATA}/$courseName\_password_DB",
176 },
177 permission => {
178 record => "WeBWorK::DB::Record::PermissionLevel",
179 schema => "WeBWorK::DB::Schema::Auth1Hash",
180 driver => "WeBWorK::DB::Driver::GDBM",
181 source => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
182 },
183 key => {
184 record => "WeBWorK::DB::Record::Key",
185 schema => "WeBWorK::DB::Schema::Auth1Hash",
186 driver => "WeBWorK::DB::Driver::GDBM",
187 source => "$courseDirs{auth_DATA}/keys",
188 },
189 user => {
190 record => "WeBWorK::DB::Record::User",
191 schema => "WeBWorK::DB::Schema::Classlist1Hash",
192 driver => "WeBWorK::DB::Driver::GDBM",
193 source => "$courseDirs{DATA}/$courseName\_classlist_DB",
194 },
195 set => {
196 record => "WeBWorK::DB::Record::Set",
197 schema => "WeBWorK::DB::Schema::GlobalTableEmulator",
198 driver => "WeBWorK::DB::Driver::Null",
199 source => undef,
200 },
201 set_user => {
202 record => "WeBWorK::DB::Record::UserSet",
203 schema => "WeBWorK::DB::Schema::WW1Hash",
204 driver => "WeBWorK::DB::Driver::GDBM",
205 source => "$courseDirs{DATA}/$courseName\_webwork_DB",
206 params => { psvnLength => 5 },
207 },
208 problem => {
209 record => "WeBWorK::DB::Record::Problem",
210 schema => "WeBWorK::DB::Schema::GlobalTableEmulator",
211 driver => "WeBWorK::DB::Driver::Null",
212 source => undef,
213 },
214 problem_user => {
215 record => "WeBWorK::DB::Record::UserProblem",
216 schema => "WeBWorK::DB::Schema::WW1Hash",
217 driver => "WeBWorK::DB::Driver::GDBM",
218 source => "$courseDirs{DATA}/$courseName\_webwork_DB",
219 params => { psvnLength => 5 },
220 },
221);
222 150
223# If you are using the GlobalTableEmulator, you need these to be set to 151# Include sql.conf to specify a database layout for use with an SQL server.
224# a user that will exist. Professors will probably want to override this 152#include "conf/sql.conf";
225# in their course's course.conf, using their own user name instead of "professor".
226 153
227$dbLayout{set}->{params}->{globalUserID} = "professor"; 154# Include gdbm.conf to specify a database layout for WeBWorK 1.x compatible GDBM
228$dbLayout{problem}->{params}->{globalUserID} = "professor"; 155# databases. Use this layout if you wish to share courses between WeBWorK 1.x
156# and WeBWorK 2.
157include "conf/gdbm.conf";
229 158
159# Please read the documentation in the file that you chose to include, as there
160# are layout-specific options that must be configured.
230 161
162################################################################################
163# Authorization system
164################################################################################
165
231# This lets you specify a minimum permission level needed to perform 166# This lets you specify a minimum permission level needed to perform certain
232# certain actions. In the current system, >=10 will allow a professor 167# actions. In the current system, >=10 will allow a professor to perform the
233# to perform the action, >=5 will allow a TA to, and >=0 will allow a 168# action, >=5 will allow a TA to, and >=0 will allow a student to perform an
234# student to perform an action (almost never what you want). 169# action (almost never what you want).
235my $ta = 5; 170my $ta = 5;
236my $professor = 10; 171my $professor = 10;
237%permissionLevels = ( 172%permissionLevels = (
238 "become_student" => $professor, 173 become_student => $professor,
239 "access_instructor_tools" => $ta, 174 access_instructor_tools => $ta,
240 "create_and_delete_problem_sets" => $professor, 175 create_and_delete_problem_sets => $professor,
241 "modify_problem_sets" => $professor, 176 modify_problem_sets => $professor,
242 "assign_problem_sets" => $professor, 177 assign_problem_sets => $professor,
243); 178);
179
180################################################################################
181# Session options
182################################################################################
244 183
245# $sessionKeyTimeout defines seconds of inactivity before a key expires 184# $sessionKeyTimeout defines seconds of inactivity before a key expires
246$sessionKeyTimeout = 60*30; 185$sessionKeyTimeout = 60*30;
247 186
248# $sessionKeyLength defines the length (in characters) of the session key 187# $sessionKeyLength defines the length (in characters) of the session key
264################################################################################ 203################################################################################
265# PG translation options 204# PG translation options
266################################################################################ 205################################################################################
267 206
268%pg = ( 207%pg = (
208 directories => {
209 # directories used only by PG
210 lib => "$pgRoot/lib",
211 macros => "$pgRoot/macros",
212 }, # (not used yet)
269 options => { 213 options => {
270 # default translation options 214 # default translation options
271 displayMode => "images", 215 displayMode => "images",
272 showOldAnswers => 1, 216 showOldAnswers => 1,
273 showCorrectAnswers => 0, 217 showCorrectAnswers => 0,

Legend:
Removed from v.1107  
changed lines
  Added in v.1108

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9