From: Mike G. v. a. <we...@ma...> - 2008-08-22 17:29:53
|
Log Message: ----------- added changes to global.conf.dist to facilitate the use of the new national library Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/conf: global.conf.dist Revision Data ------------- Index: global.conf.dist =================================================================== RCS file: /webwork/cvs/system/webwork2/conf/global.conf.dist,v retrieving revision 1.189.2.7.2.9 retrieving revision 1.189.2.7.2.10 diff -Lconf/global.conf.dist -Lconf/global.conf.dist -u -r1.189.2.7.2.9 -r1.189.2.7.2.10 --- conf/global.conf.dist +++ conf/global.conf.dist @@ -49,7 +49,7 @@ # Paths to external programs ################################################################################ -# system utilties +# system utilities $externalPrograms{mv} = "/bin/mv"; $externalPrograms{cp} = "/bin/cp"; $externalPrograms{rm} = "/bin/rm"; @@ -375,32 +375,6 @@ # the templates directory. $courseFiles{login_info} = "login_info.txt"; -# Additional library buttons can be added to the Library Browser (SetMaker.pm) -# by adding the libraries you want to the following line. For each key=>value -# in the list, if a directory (or link to a directory) with name 'key' appears -# in the templates directory, then a button with name 'value' will be placed at -# the top of the problem browser. (No button will appear if there is no -# directory or link with the given name in the templates directory.) For -# example, -# -# $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; -# -# would add two buttons, one for the Rochester library and one for the ASU -# library, provided templates/rochester and templates/asu exists either as -# subdirectories or links to other directories. The "NPL Directory" button -# activated below gives access to all the directories in the National -# Problem Library. -# -$courseFiles{problibs} = { - Library => "NPL Directory", -# rochesterLibrary => "Rochester", -# asuLibrary => "Arizona State", -# dcdsLibrary => "Detroit CDS", -# dartmouthLibrary => "Dartmouth", -# indianaLibrary => "Indiana", -# osuLibrary => "Ohio State", -# capaLibrary => "CAPA", -}; ################################################################################ # Status system @@ -448,6 +422,11 @@ # these variables are used by database.conf. we define them here so that editing # database.conf isn't necessary. + +# required permissions +# GRANT SELECT ON webwork.* TO webworkRead@localhost IDENTIFIED BY 'passwordRO'; +# GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, LOCK TABLES ON webwork.* TO webworkWrite@localhost IDENTIFIED BY 'passwordRW'; + $database_dsn = "dbi:mysql:webwork"; $database_username = "webworkWrite"; $database_password = ""; @@ -477,9 +456,8 @@ ################################################################################ # For configuration instructions, see: -# http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/DatabaseProblemLibrary - -# The directory containing the problem library files. Set to "" if no problem +# http://webwork.maa.org/wiki/National_Problem_Library +# The directory containing the natinal problem library files. Set to "" if no problem # library is installed. $problemLibrary{root} = ""; @@ -494,6 +472,35 @@ passwd => $database_password, }; + +# Additional library buttons can be added to the Library Browser (SetMaker.pm) +# by adding the libraries you want to the following line. For each key=>value +# in the list, if a directory (or link to a directory) with name 'key' appears +# in the templates directory, then a button with name 'value' will be placed at +# the top of the problem browser. (No button will appear if there is no +# directory or link with the given name in the templates directory.) For +# example, +# +# $courseFiles{problibs} = {rochester => "Rochester", asu => "ASU"}; +# +# would add two buttons, one for the Rochester library and one for the ASU +# library, provided templates/rochester and templates/asu exists either as +# subdirectories or links to other directories. The "NPL Directory" button +# activated below gives access to all the directories in the National +# Problem Library. +# +$courseFiles{problibs} = { + Library => "NPL Directory", +# rochesterLibrary => "Rochester", +# asuLibrary => "Arizona State", +# dcdsLibrary => "Detroit CDS", +# dartmouthLibrary => "Dartmouth", +# indianaLibrary => "Indiana", +# osuLibrary => "Ohio State", + capaLibrary => "CAPA", + ucsbLibrary => "UCSB" +}; + ################################################################################ # Logs ################################################################################ @@ -544,7 +551,7 @@ # your school. If just a few courses are in a different timezone, set this in # course.conf for the affected courses instead. # -$siteDefaults{timezone} = ""; +$siteDefaults{timezone} ="US/Eastern"; # The default_templates_course is used by default to create a new course. # The contents of the templates directory are copied from this course @@ -836,6 +843,10 @@ ".", # search the problem file's directory $courseDirs{macros}, $pg{directories}{macros}, + "$courseDirs{templates}/Library/macros/Dartmouth", + "$courseDirs{templates}/Library/macros/Union", + "$courseDirs{templates}/Library/macros/NAU", + "$courseDirs{templates}/Library/macros/Michigan", ]; # The applet search path. If a full URL is given, it is used unmodified. If an @@ -845,6 +856,7 @@ # and the local server is "https://math.yourschool.edu", # then the URL "https://math.yourschool.edu/math/applets" will be used. # + $pg{directories}{appletPath} = [ # paths to search for applets (requires full url) "$webworkURLs{htdocs}/applets", "$courseURLs{html}/applets", |