Log of /branches/ghe3_dev/webwork2/lib/WeBWorK.pm
Parent Directory
Revision
6379 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 21 02:38:56 2010 UTC (2 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 13834 byte(s)
Diff to
previous 6367
,
to
selected 6814
changed the error message on reporting switch over problems that occur
when you change versions of Storable.
removed lines from WeBWorK.pm that attempted to solve the Inequalities::common problem
they weren't really doing any good.
The basic problem is that we need a line:
use Inequalities::common
before the @ISA() statement -- unfortunately we've barred the use of "use" in Safe. :-(
Revision
6260 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 15 18:22:35 2010 UTC (3 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 13452 byte(s)
Diff to
previous 6067
,
to
selected 6814
added useless reference to @LimitedPolynomial::BOP::ISA to the end of the dispatcher in WeBWorK.pm
to stop warning messages such as these:
[Sat May 15 14:33:35 2010] [warn] [client 127.0.0.1] [/webwork2/gage_course/test_set/6/] Can't locate package LimitedPolynomial::BOP for @LimitedPolynomial::BOP::power::ISA at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 115., referer: http://localhost/webwork2/gage_course/test_set/6/
No explanation for the warning messages nor as to why this stops them.
contextLimitedVector.pl is similar and does not create similar warning messages.
Revision
5213 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jul 23 04:06:32 2007 UTC (5 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 12756 byte(s)
Diff to
previous 5087
,
to
selected 6814
PLEASE READ -- APACHE CONFIG CHANGES!
This patch makes webwork.apache2-config static (no <Perl> sections) and
passes changes into WeBWorK via PerlSetVar directives. The course
environment (global.conf) is seeded from these variables. Also changes
pg_dir to webwork_pg_dir, so all seed variables start with "webwork_".
So update your webwork.apache2-config and global.conf files! :)
Revision
4491 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 13 23:40:26 2006 UTC (6 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 13259 byte(s)
Diff to
previous 4374
,
to
selected 6814
precompile many modules at server start time. this allows more compiled
code (parse trees, bytecode, etc.) to be shared among child processes,
and speeds child start time, since that compilation has already been
done in the master process.
you may want to turn this off for development, since it makes the server
take a really long time to start.
Revision
4046 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 12 18:50:37 2006 UTC (7 years, 1 month ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 11396 byte(s)
Diff to
previous 4010
,
to
selected 6814
Support for new Authen class:
* Use new Authen::Proctor subclass for proctor verification rathern than old
verifyProctor method of Authen.
* Remove unfinished code fragment introduced in 1.79. Harmless but annoying.
* Change names of login module constants from AUTHEN_MODULE and
PROCTOR_AUTHEN_MODULE to LOGIN_MODULE and PROCTOR_LOGIN_MODULE.
Revision
3485 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 12 02:47:30 2005 UTC (7 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 11364 byte(s)
Diff to
previous 3377
,
to
selected 6814
added HiRes timing data to WeBWorK::Debug, removed WeBWorK::Timing. all
existing calls to the WeBWorK::Timing methods now pass the same messages
to debug().
added an option to WeBWorK::Debug to allow only certain subroutines to
log debug messages, in addition to the existing option to bar certain
subroutines from doing so.
Revision
3377 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 14 13:15:27 2005 UTC (7 years, 10 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 12364 byte(s)
Diff to
previous 3307
,
to
selected 6814
Preliminary commit of changes to add Gateway module.
This adds to WeBWorK
- the ability to create versioned, timed problem sets ("gateway tests")
for which all problems are displayed on a single page ("versioned"
means that students can get multiple versions of the problem set),
- the ability to create sets that draw problems from groups of
problems, and
- the ability to create sets that require a proctor login to start
and grade.
Sets can be defined as gateway tests or proctored gateway tests from
the ProblemSetDetail page.
Not quite bug-free yet. Known bugs include handling of problem values
on the Student Progress page (I think this may be a problem with
changing from sql database format where all entries were 'text' to
sql_single in ver 2.1, where they are integer), and a division by zero
error on the grades page (which may be the same problem).
Tests with a number of attempts per version greater than one haven't
been carefully tested, nor has scoring of gateway tests.
Revision
3307 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 22 15:18:32 2005 UTC (7 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 11315 byte(s)
Diff to
previous 3058
,
to
selected 6814
Use the Timing::HiRes module to calculate timing data for each
request. This gives more accurate timing data (using the unix
time gives only to the nearest second). I am printing the elapsed
time to 3 decimal places, it could be to 6 if that is desirable.
This will help us evaluate whether changes are increasing or decreasing
the speed with which requests are serviced.
Revision
3058 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 20 21:08:06 2004 UTC (8 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 10997 byte(s)
Diff to
previous 3003
,
to
selected 6814
expansion of Mike's caching fixes. see below:
* separate setCachedUser($userID) method allows explicit setting of user
to cache. This is needed because $r->param("user") is not always set
(i.e. in the case of the initial request for a guest login.
* don't store a copy of a reference to %permissionLevels, as this isn't
any more efficient than accessing the course environment directly.
* always construct the Authz instance.
* fall back on accessing the database if hasPermissions() is called with
a user other than the cached user (or if no user is cached).
* warning output (and assume no permission) if PermissionLevel record
doesn't exist or permission level is empty.
* warn (and assume no permission) if activity is not found in the
%permissionLevels hash.
* don't pass $ce and $db to new(), since they are available in $r.
Revision
2930 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Oct 15 20:35:15 2004 UTC (8 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 10930 byte(s)
Diff to
previous 2638
,
to
selected 6814
Adding write to timing log which summarizes the time spent in this module.
This does not give detailed timing data. It prints whether or not the timing
log is enabled in "Constants.pm". It uses Utils::writeTimingLogEntry and
makes an entry as long as the "timing" log facility has been defined in global.conf
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 10483 byte(s)
Diff to
previous 2437
,
to
selected 6814
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
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 14215 byte(s)
Diff to
previous 1663
,
to
selected 6814
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 14134 byte(s)
Diff to
previous 1658
,
to
selected 6814
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 13433 byte(s)
Diff to
previous 1616
,
to
selected 6814
(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
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 7060 byte(s)
Diff to
previous 1130
,
to
selected 6814
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
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 6530 byte(s)
Diff to
previous 1005
,
to
selected 6814
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
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
Original Path:
trunk/webwork2/lib/WeBWorK.pm
File length: 6076 byte(s)
Diff
to
selected 6814
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.