[system] / trunk / webwork / courses / demoCourse / webworkCourse.ph Repository:
ViewVC logotype

View of /trunk/webwork/courses/demoCourse/webworkCourse.ph

Parent Directory Parent Directory | Revision Log Revision Log


Revision 464 - (download) (annotate)
Fri Aug 16 20:07:47 2002 UTC (10 years, 9 months ago) by gage
File size: 9128 byte(s)
This is a good starter course for setting up webwork.  The script course_webwork_setup.pl must be
run to setup additional directories.

    1 
    2 # file webworkCourse.ph
    3 # contains variables specific to a course
    4 
    5 #  The variables defined in Global.pm set defaults and
    6 #  parameters for the whole WeBWorK system.  These defaults can
    7 #  be over ridden for this individual course by redefining
    8 #  the variables in this webworkCourse.ph file.
    9 #  For example the default feedback address set in Global.pm as:
   10 #  $feedbackAddress = 'webwork@math.rochester.edu';
   11 #  can (and should) be over ridden by entering
   12 #  $Global::feedbackAddress  = 'apizer@math.rochester.edu,gage@math.rochester.edu';
   13 #  below where of course you should substitute your own email address
   14 #  for that of Pizer and Gage (and uncomment the line).
   15 
   16 #  $Global::feedbackAddress  = 'apizer@math.rochester.edu,gage@math.rochester.edu';
   17 
   18 
   19 
   20 ## In addition, you should customize the following three items for your course
   21 
   22 #  If you want to write essay type problems or questionnaires where the results are
   23 #  emailed back, you have to authorize the email addresses here by uncommenting and
   24 #  editing the next line.
   25 
   26 #  $PG_environment{'ALLOW_MAIL_TO'} = ['apizer@math.rochester.edu','gage@math.rochester.edu'];
   27 
   28 
   29 #  On the Professor page, one can view statistical data on problem sets for
   30 #  the whole course and section by section or by recitation.  You may want to
   31 #  exclude certain sections or recitations (e.g. those containing practice users,
   32 #  TA's, or professors) from the overall statistics.  Statistics for excluded
   33 #  sections are reported separately.  List the names of all sections and
   34 #  recitations to be excluded in a coma separated list, e.g.
   35 #  @excluse_these_sections_from_overall_statistics = ('', 'T.A.', 'Prof section');
   36 #  @excluse_these_recitations_from_overall_statistics = ('');
   37 #  If this list is empty or commented out, no sections will be excluded.
   38 
   39 @excluse_these_sections_from_overall_statistics = ('');
   40 @excluse_these_recitations_from_overall_statistics = ('');
   41 
   42 
   43 
   44 #  If the following line is uncommented, when the user(s) listed view
   45 #  a problem or download a set, the file names of the source files will be
   46 #  listed.  Replace 'leeza', etc. by appropiate login names
   47 
   48 #$PG_environment{'PRINT_FILE_NAMES_FOR'} = ['leeza','apizer','gage'];
   49 
   50 ######################################################################################
   51 ######################################################################################
   52 
   53 #  NORMALLY, THERE SHOULD BE NO NEED FOR CHANGES BELOW THIS LINE.  RUN THE SCRIPT
   54 #  course_webwork_setup.pl AND EVERYTHING SHOULD BE SETUP CORRECTLY. IF YOU DO
   55 #  EDIT THIS FILE BY HAND, WORK CAREFULLY.  REMEMBER THAT ALL DIRECTORY NAMES MUST
   56 #  END IN A TRALING DIRECTORY DELIMITER.
   57 
   58 
   59 
   60 #  To make it easier to edit and change these directories we define
   61 #  the classDirectory.  This variable is not used outside this file
   62 #  and while it is common for all of these directories to reside inside
   63 #  one directory, it is not necessary.
   64 
   65 $classDirectory = "${mainDirectory}courses/blankCourse/";
   66 
   67 #  The database directory contains data describing the students in the course
   68 #  and their scores on homework.  The cgi scripts run by the webserver must
   69 #  be able to access the contents of this directory.
   70 
   71 $databaseDirectory = "${classDirectory}DATA/";
   72 
   73 #  The templates directory contains the class list, the problem set definition
   74 #  files and the problem templates.
   75 
   76 $templateDirectory = "${classDirectory}templates/";
   77 
   78 #  The email directory contains (templates of) emails which can be sent to everyone
   79 #  on the classlist.
   80 
   81 $emailDirectory = "${templateDirectory}email/";
   82 
   83 #  The macros directory contains macros for the problems
   84 #  files and the problem templates. If it is commented out, the macro files in
   85 #  "${mainDirectory}courseScripts/" are used by default.
   86 
   87 # $macroDirectory = "${templateDirectory}macros/";
   88 
   89 #  The scoring directory contains files used by the scoring programs. These
   90 #  files contain scoring information for the whole class and are used for
   91 #  calculating semester grades, etc.
   92 
   93 $scoringDirectory = "${classDirectory}scoring/";
   94 
   95 #  The html directory contains the first page for the course (index.html),
   96 #  course documentation, and also subdirectories (e.g. tmp/)
   97 #  (e.g. tmp/) containing latex2html problems, gifs, etc.  The webserver has
   98 #  direct access to the html directory and the courseURL points to this
   99 #  directory.
  100 
  101 $htmlDirectory = "${classDirectory}html/";
  102 
  103 #  The logs directory contains log fies, e.g. login.log, backup psvn
  104 #  logs and logs of datamunger activity.
  105 
  106 $logsDirectory = "${classDirectory}logs/";
  107 
  108 
  109 #  This is the temp directory used by downloadPS, etc
  110 
  111 $courseTempDirectory = "${classDirectory}html/tmp/";
  112 
  113 #  The courseScripts directory contains perl scripts local to the course,
  114 #  e.g. displauMacros.pl .  If it is commented out, the macro files in
  115 #  "${mainDirectory}courseScripts/" are used by default.
  116 
  117 # $courseScriptsDirectory = "${classDirectory}courseScripts/";
  118 
  119 #  This is the URL of the course html directory.  It points to the $htmlDirectory
  120 #  above and it should have been set up correctly by the course_webwork_setup.pl
  121 #  script.  See the documentatiom (run the script or read
  122 #  .../docs/techdescription/settingupcourse.html).  Note that the URL depends on
  123 #  links in you webserver's htdocs directory and must end in a trailing directory
  124 #  delimiter (/ for unix).
  125 
  126 $htmlURL = "http://webwork-db/gage_course/";
  127 
  128 #  This is the URL of the course tmp directory.  This is for temporary storage of
  129 #  html files, images, etc that have to accessible to the webserver.  This directory
  130 #  contains the subdirectories l2h, gif, eps, and html (not the ${classDirectory}html
  131 #  directory). All these subdirectories and their files will be recreated if deleted
  132 #  (althought recreating l2h files is time consuminmg).  The location of this directory
  133 #  may be changed fast disk which is not backed up.
  134 
  135 $courseTempURL = "${htmlURL}tmp/";
  136 
  137 #  This is the classID, i.e the symbolic link (or directory) that points to the base
  138 #  course directory. It appears in the courses subdirectory of the main WeBWorK system.
  139 
  140 $classID = "demoCourse";
  141 
  142 #  This is the name of the default classlist file which resides in the
  143 #  templateDirectory.  This default name is used when students change their
  144 #  own email addresses and also to  edit the classlist file over the web.
  145 
  146 $classlistFilename  = "${classID}.lst";
  147 
  148 # This is the name of the group and the numerical gid. (some) Files created by
  149 # the WeBWorK system will have their group set to "$groupID". Normally this
  150 # group will contain the webserver, your loginID, and the loginID's of anyone
  151 # else who will creating and editing WeBWorK problems for your course. If you
  152 # are editing this file by hand and know the $groupID but not the $numericalGroupID,
  153 # ask your systems administrator or run course_webwork_setup.pl and look at the
  154 # webworkCourse.ph it produces.  You may also be able to get this information by
  155 # looking at the group file usually:  /etc/group
  156 # Finally, if you have set up a "demo" version, the "$numericalGroupID" will be
  157 # set to -1 which means maintain the current (default) group.
  158 
  159 $groupID = "webadmin";
  160 $numericalGroupID = 1005;
  161 
  162 ## this sets the header file over riding the Global setting
  163 $Global::SET_HEADER = "paperSetHeader.pg";
  164 
  165 ## If uncommented, this sets the default mode for displayed problems
  166 ## over riding the Global setting.
  167 #$htmlModeDefault = 'HTML_tth'; # The default mode for displayed problems
  168                  # (either 'HTML','Latex2HTML', or 'HTML_tth')
  169 
  170 # This sets the default for grading multipart problems.  The choices at present are
  171 # std_problem_grader or avg_problem_grader. The std_problem_grader gives credit for
  172 # a mutipart problem only if all parts are answers correctly. The avg_problem_grader
  173 # gives partial credit for a mutipart problems.
  174 
  175 $PG_environment{PROBLEM_GRADER_TO_USE} = 'avg_problem_grader';
  176 #$PG_environment{PROBLEM_GRADER_TO_USE} = 'std_problem_grader';
  177 
  178 
  179 # This allows or dissallows Destroy and Rebuild. Set to 0 or 1. If set to 1 a
  180 # professor can destroy and rebuild problems sets in one operation. This is very
  181 # convenient and powerful, but also very dangerous.  Usually  this is not allowed
  182 # in courses students are using.  It is often set to 1 in a private course being
  183 # used only for developing problem sets.
  184 
  185 $allowDestroyRebuildProbSets = 0;
  186 
  187 
  188 
  189 ## This (if uncommented) overrides the setting in Global.pm. Use 'db_tie.pl' for the
  190 ## DB database and 'gdbm_tie.pl' for the GDBM database. For a "new" database type,
  191 ## you will have to write a 'newdb_tie.pl' file. These reside in the scripts directory.
  192 
  193 #$Global::DBtie_file = 'db_tie.pl';
  194 
  195 
  196 ## This tells WeBWorK where to find the file that connects it to a physical database.
  197 
  198 require "${Global::scriptDirectory}$Global::DBtie_file";
  199 
  200 ## These are the file names for the various databases associated with this course.
  201 ## These names override the generic names given in Global.pm
  202 
  203 $CL_Database      = "${classID}_classlist_DB";
  204 $passwordFilename     = "${classID}_password_DB";
  205 $permissionsFilename  = "${classID}_permissions_DB";
  206 $database           = "${classID}_webwork_DB";
  207 
  208 # The following line is required by perl
  209 1;
  210 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9