Log of /trunk/webwork2/lib/WeBWorK.pm
Parent Directory
Revision
7023 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 25 13:28:08 2011 UTC (20 months, 4 weeks ago) by
gage
File length: 19691 byte(s)
Diff to
previous 6973
localization updates,
added a fix for Authen.pm which unescapes cookie data.
returned library browser 2 to the lineup
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
File length: 13834 byte(s)
Diff to
previous 6367
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
6279 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 25 23:48:02 2010 UTC (2 years, 11 months ago) by
gage
File length: 13798 byte(s)
Diff to
previous 6263
removed extraneous line that temporarily fixed the not_null problem.
I believe the not_null problem has now been resolved in PGcore.pm
Revision
6260 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 15 18:22:35 2010 UTC (3 years ago) by
gage
File length: 13452 byte(s)
Diff to
previous 6067
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
File length: 12756 byte(s)
Diff to
previous 5087
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
File length: 13259 byte(s)
Diff to
previous 4374
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
4304 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 26 22:20:04 2006 UTC (6 years, 9 months ago) by
sh002i
File length: 13312 byte(s)
Diff to
previous 4262
use WeBWorK::Authen::class() to determine the proper Authen class to use.
this is much nicer than embedding that decision in this file. twice.
Revision
4262 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 15 14:06:42 2006 UTC (6 years, 10 months ago) by
sh002i
File length: 13186 byte(s)
Diff to
previous 4243
dubious hack to support WeBWorK::CGIParamShim. This is not threadsafe,
but then again, neither is Safe.pm, so it's a non-issue so far.
Revision
4216 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 11 03:59:08 2006 UTC (6 years, 10 months ago) by
sh002i
File length: 12198 byte(s)
Diff to
previous 4211
Apache2 compatibility for HTTP constants. (This may very well be broken,
but I wanted to get it comitted before bed.)
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
File length: 11396 byte(s)
Diff to
previous 4010
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
3973 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 25 23:13:56 2006 UTC (7 years, 3 months ago) by
sh002i
File length: 11721 byte(s)
Diff to
previous 3833
forward-port from rel-2-2-dev: (update copyright date range -- 2000-2006.
this is probably overkill, since there are some files that were created
after 2000 and some files that were last modified before 2006.)
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
File length: 11364 byte(s)
Diff to
previous 3377
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
File length: 12364 byte(s)
Diff to
previous 3307
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
File length: 11315 byte(s)
Diff to
previous 3058
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
File length: 10997 byte(s)
Diff to
previous 3003
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
File length: 10930 byte(s)
Diff to
previous 2638
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
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, 6 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.