Log of /trunk/webwork-modperl/lib/WeBWorK.pm
Parent Directory
Revision
2491 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jul 12 02:30:32 2004 UTC (8 years, 10 months ago) by
sh002i
File length: 10483 byte(s)
Diff to
previous 2437
MORE CONFIG CHANGES -- PLEASE READ.
I've changed the way WeBWorK is configured yet again. The Apache
configuration for WeBWorK is now done with <Perl> sections. This solves
the problem of "seeding" global.conf with initial values for the various
root directories and base URLs. it also eliminates redundancy in the
Apache configuration file itself.
The Apache configuration for WeBWorK is now contained in the file
conf/webwork.apache-config. This file is used both for normal systems,
where WeBWorK is integrated into the main Apache server, and development
systems, where each developer runs his or her own Apache server.
Inside webwork.apache-config, seven configuation variables are set:
$webwork_url The base URL handled by Apache::WeBWorK.
$webwork_dir The path to the base webwork2 directory.
$pg_dir The path to the base pg directory.
$webwork_htdocs_url The base URL of the WeBWorK htdocs directory.
$webwork_htdocs_dir The path to the WeBWorK htdocs directory.
$webwork_courses_url The base URL of the WeBWorK courses directory.
$webwork_courses_dir The path to the WeBWorK courses directory.
These variables are used to configure the <Location>, Alias, AliasMatch,
and <Directory> directives necessary for WeBWorK operation.
$webwork_root and $pg_root are also used in "use lib" lines to add the
WeBWorK and PG lib directories to @INC.
Additionally, the above values are shared with WeBWorK via the
%WeBWorK::SeedCE hash. WeBWorK.pm passes the contents of this hash
(along with a value for "courseName") to CourseEnvironment.pm when
initializing the course environment. In turn, CourseEnvironment.pm seeds
the course environment namespace with these variables before evaluating
global.conf and course.conf.
Revision
2437 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 3 17:13:29 2004 UTC (8 years, 10 months ago) by
sh002i
File length: 10346 byte(s)
Diff to
previous 2434
changed the way invalid courses are detected. $ce->{'!'} is no longer
used. also, if CE initialization throws an exception, it is caught and
labeled as a problem with CE init.
Revision
2098 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 13 18:28:42 2004 UTC (9 years ago) by
gage
File length: 8974 byte(s)
Diff to
previous 1910
Defined $WeBWorK:;timer again for use in debugging code
$timerON =0 by default in WeBWorK.pm
and
the timing log $TIMING_LOG is initially set to the empty string which
implies STDERR
Revision
1895 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Mar 16 20:00:23 2004 UTC (9 years, 2 months ago) by
sh002i
File length: 8774 byte(s)
Diff to
previous 1885
disabled param munging -- this will prevent destruction of params with
':' and ',' in their names. closes bug #431.
Revision
1879 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 15 02:25:11 2004 UTC (9 years, 2 months ago) by
sh002i
File length: 8801 byte(s)
Diff to
previous 1836
removed old dispatch() function, renamed dispatch_new() -> dispatch(),
added upload handling code (from old dispatch function).
Revision
1739 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jan 23 16:49:09 2004 UTC (9 years, 4 months ago) by
sh002i
File length: 14373 byte(s)
Diff to
previous 1696
moved Assigner to UsersAssignedToSet. created new Assigner module, and
wired it to /$courseID/instructor/assigner/. It doesn't do anything yet,
but it will allow the assignment of multiple sets to multiple users, all
in one shot.
Revision
1696 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jan 3 20:07:03 2004 UTC (9 years, 4 months ago) by
sh002i
File length: 14215 byte(s)
Diff to
previous 1663
UPDATE YOUR CONFIG FILES! (global.conf.dist, database.conf.dist)
Made changes to support the storage of multiple database layouts in a
single course environment. Database layouts are now stored in a hash
named %dbLayouts in database.conf, and the default layout is aliased to
*dbLayout (see comments in database.conf.dist and global.conf.dist)
sql.conf and gdbm.conf are no longer used.
Support the selection of a specific database layout when instantiating
WeBWorK::DB. WeBWorK::DB now takes a reference to a database layout
rather than an entire course environment.
All calls to WeBWorK::DB::new were updated to pass the correct argument.
Revision
1663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by
sh002i
File length: 14134 byte(s)
Diff to
previous 1658
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.
Here is the new header:
################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
# Artistic License for more details.
################################################################################
Revision
1621 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Nov 8 02:47:00 2003 UTC (9 years, 6 months ago) by
sh002i
File length: 13433 byte(s)
Diff to
previous 1616
(1) only the content generator needed for this request is loaded, and it
is done at runtime. this is good for speed and error reporting.
(2) actually instantiating CGs and running their "go" methods is defered
until the end of the handler routine. this means there is only ONE place
where this is being done.
(3) documentation has been improved.
(4) added support for UserDetail (not yet written) and
SetsAssignedToUser (written, but not yet reachable) in the UI.
Revision
1610 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 27 13:02:44 2003 UTC (9 years, 7 months ago) by
gage
File length: 13544 byte(s)
Diff to
previous 1608
Modified the way the timing mechanisms are controlled so that a timer
must be defined before it is called. Fixed a bug appearing on
webwork.math.rochester.edu where the timers were turned off.
--Mike
Revision
1595 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 20 15:29:37 2003 UTC (9 years, 7 months ago) by
gage
File length: 12878 byte(s)
Diff to
previous 1580
Added timing code for Instructor::Index to Instructor::Index.pm and
also to WeBWorK.pm. We can remove this once we have finished testing
various database configs.
--Mike
Revision
1430 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 24 21:52:17 2003 UTC (9 years, 10 months ago) by
gage
File length: 9056 byte(s)
Diff to
previous 1411
Added a module that shows the raw stats for a single set.
We need a better index page for this and other views of the
same statistics.
--Mike
Revision
1395 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 15 19:36:25 2003 UTC (9 years, 10 months ago) by
gage
File length: 8679 byte(s)
Diff to
previous 1382
Added ShowAnswers.pm module which reads the log file of the students answers
Modifications to WeBWorK (dispatcher) and Problem (the Show Past Answer button
had to be redirected) were also made.
--Mike
Revision
1131 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 11 20:40:11 2003 UTC (9 years, 11 months ago) by
sh002i
File length: 7060 byte(s)
Diff to
previous 1130
Made many changes:
- turned off PG warning catching in conf/global.conf.dist
- added warning reporting to conf/templates/ur.template (but not to
other templates!)
- modified a couple of error messages in WeBWorK.pm
- made failure to create course environment and failure to find course
directory fatal errors in WeBWorK.pm
- added warning queueing and call stack storing to Apache::WeBWorK
- added "warnings" and "if_warnings" template escapes to
WeBWorK::ContentGenerator
- removed warning handling from WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::PG::ImageGenerator
-sam
Revision
1047 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 6 20:36:44 2003 UTC (9 years, 11 months ago) by
malsyned
File length: 6583 byte(s)
Diff to
previous 1015
Multiple forward slashes in URLs are now collapsed into one before being
examined, so that we follow the usual Apache behavior of accepting paths
with // in them.
-Dennis
Revision
1015 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 4 20:19:27 2003 UTC (9 years, 11 months ago) by
malsyned
File length: 6530 byte(s)
Diff to
previous 1005
The UserList module now has a single button, "Assign to all users", that
does what it says it does. This should allow people to create new
problems and problem sets and edit them without ever needing the old
system, assuming that they are importing an existing course into
webwork2.
-Dennis
Revision
1005 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 4 00:34:56 2003 UTC (9 years, 11 months ago) by
malsyned
File length: 6328 byte(s)
Diff to
previous 995
I split the instructor's Problem List editor off into a seperate page,
and added links to that page from a few others.
-Dennis
Revision
986 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Tue Jun 3 18:25:00 2003 UTC (9 years, 11 months ago) by
sh002i
File length: 6076 byte(s)
Created the top-level module WeBWorK, which now contains the dispatch
code. Apache::WeBWorK now only contains the installation of the error
handling code and a call to WeBWorK::dispatch(). This error handling
code is installed before the WeBWorK module is compiled.
-sam
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.