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

View of /trunk/webwork-modperl/conf/gdbm.conf.dist

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1118 - (download) (annotate)
Wed Jun 11 14:09:39 2003 UTC (9 years, 11 months ago) by gage
File size: 3233 byte(s)
Set the default globalUserID to "practice1"
to promote least hassle for "out of the
box" users migrating from WeBWorK1.8.
--Mike

    1 #!perl
    2 ################################################################################
    3 # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester
    4 # $Id: gdbm.conf.dist,v 1.2 2003-06-11 14:09:39 gage Exp $
    5 ################################################################################
    6 
    7 =head1 NAME
    8 
    9 gdbm.conf - defines database layout for WeBWorK 1.x compatible GDBM databases.
   10 
   11 =head1 SYNOPSIS
   12 
   13 In global.conf (or course.conf):
   14 
   15  include "conf/gdbm.conf";
   16 
   17 =head1 DESCRIPTION
   18 
   19 This layout uses the traditional WeBWorK 1.x database format, using the  GDBM
   20 file format. Use this layout if you wish to share courses between WeBWorK 1.x
   21 and WeBWorK 2.
   22 
   23 The C<globalUserID> parameter given for the C<set> and C<problem> tables
   24 denotes the ID of the user that the GlobalTableEmulator will use to store data
   25 for the C<set> and C<problem> tables. This is set to "professor" by default,
   26 but should be overridden on a course-by-course basis to the ID of the professor
   27 who is most likely to be involved in creating new courses. Only the user
   28 selected will be able to see sets which are not assigned to any users.
   29 
   30 Use the following code to override these values in each course's course.conf
   31 file:
   32 
   33  $dbLayout{set}->{params}->{globalUserID} = "some_user";
   34  $dbLayout{problem}->{params}->{globalUserID} = "some_user";
   35 
   36 =cut
   37 
   38 %dbLayout = (
   39   password => {
   40     record => "WeBWorK::DB::Record::Password",
   41     schema => "WeBWorK::DB::Schema::Auth1Hash",
   42     driver => "WeBWorK::DB::Driver::GDBM",
   43     source => "$courseDirs{auth_DATA}/$courseName\_password_DB",
   44   },
   45   permission => {
   46     record => "WeBWorK::DB::Record::PermissionLevel",
   47     schema => "WeBWorK::DB::Schema::Auth1Hash",
   48     driver => "WeBWorK::DB::Driver::GDBM",
   49     source => "$courseDirs{auth_DATA}/$courseName\_permissions_DB",
   50   },
   51   key => {
   52     record => "WeBWorK::DB::Record::Key",
   53     schema => "WeBWorK::DB::Schema::Auth1Hash",
   54     driver => "WeBWorK::DB::Driver::GDBM",
   55     source => "$courseDirs{auth_DATA}/keys",
   56   },
   57   user => {
   58     record => "WeBWorK::DB::Record::User",
   59     schema => "WeBWorK::DB::Schema::Classlist1Hash",
   60     driver => "WeBWorK::DB::Driver::GDBM",
   61     source => "$courseDirs{DATA}/$courseName\_classlist_DB",
   62   },
   63   set => {
   64     record => "WeBWorK::DB::Record::Set",
   65     schema => "WeBWorK::DB::Schema::GlobalTableEmulator",
   66     driver => "WeBWorK::DB::Driver::Null",
   67     source => { globalUserID => "professor" },
   68   },
   69   set_user => {
   70     record => "WeBWorK::DB::Record::UserSet",
   71     schema => "WeBWorK::DB::Schema::WW1Hash",
   72     driver => "WeBWorK::DB::Driver::GDBM",
   73     source => "$courseDirs{DATA}/$courseName\_webwork_DB",
   74     params => { psvnLength => 5 },
   75   },
   76   problem => {
   77     record => "WeBWorK::DB::Record::Problem",
   78     schema => "WeBWorK::DB::Schema::GlobalTableEmulator",
   79     driver => "WeBWorK::DB::Driver::Null",
   80     source => { globalUserID => "professor" },
   81   },
   82   problem_user => {
   83     record => "WeBWorK::DB::Record::UserProblem",
   84     schema => "WeBWorK::DB::Schema::WW1Hash",
   85     driver => "WeBWorK::DB::Driver::GDBM",
   86     source => "$courseDirs{DATA}/$courseName\_webwork_DB",
   87     params => { psvnLength => 5 },
   88   },
   89 );
   90 
   91 # These lines should be overridden in course.conf
   92 
   93  $dbLayout{set}->{params}->{globalUserID} = "practice1";
   94  $dbLayout{problem}->{params}->{globalUserID} = "practice1";
   95 
   96 1;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9