Log of /branches/gage_dev/webwork2/lib/WeBWorK/PG
Directory Listing
Revision
6628 -
Directory Listing
Modified
Wed Dec 8 00:01:49 2010 UTC (2 years, 5 months ago) by
gage
changed all references to Safe to WWSafe just to be "safe"
fixed security hole in file paths for Problem Set Detail
uploaded changes to setmaker 2 from dg_dev. includes holding shift key down (before)
you move a file in order to move it rather than to add it.
Revision
6435 -
Directory Listing
Modified
Thu Sep 16 15:38:35 2010 UTC (2 years, 8 months ago) by
gage
Cleaning things up by replacing references to psvnNumber by psvn (which is less redundant)
Revision
6384 -
Directory Listing
Modified
Wed Jul 21 15:24:59 2010 UTC (2 years, 10 months ago) by
gage
added notes
Revision
6320 -
Directory Listing
Modified
Wed Jul 7 01:30:33 2010 UTC (2 years, 10 months ago) by
gage
Provide new channels for reporting warnings in Problem.pm, allow @ in user ids in DB.pm and clean up alarm for TIMEOUTS in Local.pm
Revision
6302 -
Directory Listing
Modified
Tue Jun 22 15:14:15 2010 UTC (2 years, 11 months ago) by
gage
removing line that was killing warning messages
Revision
6299 -
Directory Listing
Modified
Tue Jun 22 14:46:58 2010 UTC (2 years, 11 months ago) by
gage
test development branch
Revision
6149 -
Directory Listing
Modified
Sat Oct 17 15:53:19 2009 UTC (3 years, 7 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Implement a Reduced Scoring Period. The Reduced Scoring Period is a period before the due date during which all additional work done by the student counts at a reduced rate.
Revision
4397 -
Directory Listing
Modified
Thu Aug 24 21:16:41 2006 UTC (6 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
restrict PG access to ImageGenerator object using RestrictedClosureClass
(prevents problem code from monkeying with paths, viewing passwords,
calling methods other than add() and other bad stuff)
Revision
4195 -
Directory Listing
Modified
Wed Jul 5 18:24:43 2006 UTC (6 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
don't load Apache::Log via global.conf anymore -- special-case it in
WeBWorK::PG::Local instead. this allows for selective loading of
Apache::Log for Apache1 or Apache2::Log and APR::Table for Apache2.
Revision
3973 -
Directory Listing
Modified
Wed Jan 25 23:13:56 2006 UTC (7 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
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
3311 -
Directory Listing
Modified
Thu Jun 23 02:33:03 2005 UTC (7 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
The TIMEOUT constant which is now defined in WeBWorK::Cosntants and is
(and was) used in WeBWorK::PG::Local gives the time in seconds
that is allowed for rendering one PG problem. The old value was 5 minutes
which was probably way too long. The default in WeBWorK::Constants has been
set to 60 seconds. If no value is set then 10 seconds is used.
-- Mike
Revision
3224 -
Directory Listing
Modified
Sat May 14 01:32:19 2005 UTC (8 years ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Changes needed to make loadMacros() look through a path of directories
rather than just course/templates/macros and pg/macros. You can
specify the path in the global.conf file.
You also need to make the update to pg/macros/dangerousMacros.pl
Revision
3073 -
Directory Listing
Modified
Sat Jan 1 22:35:10 2005 UTC (8 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Changes made to simplify the implementation of XMLRPC access to
the functionality of WeBWorK.
There is still a problem with making sure that the proper warning
mechanism is passed into the problem rendering compartment.
The proper permissions for creating directories also does not
get transmitted properly.
I would like to change the way that the defineEnvirVars subroutine is
passed into the Local.pm object. I'd like to either pass the
environment as a hash or explicitly pass a reference to define
EnvirVars rather than inherit it from PG. In particular I'd like
to be able to define environment variables directly in RenderProblem.pm
instead of faking it by defining fake problem objects.
Revision
1703 -
Directory Listing
Modified
Mon Jan 5 01:02:41 2004 UTC (9 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
removed lingering references to "webwork-modperl", since we're calling
this product "webwork2" now. soon we should change the name of the CVS
module to "webwork2" as well.
Revision
1663 -
Directory Listing
Modified
Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
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
1558 -
Directory Listing
Modified
Wed Oct 1 02:57:55 2003 UTC (9 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
1. moved common functions from PG::Local and PG::Remote to PG and made
them methods so that inheritence would work.
2. made some changes to PG::Remote to make it work with renderd
Revision
1538 -
Directory Listing
Modified
Sat Sep 27 16:34:45 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Modified process_answers so that each student answer is modified in this way:
(1) if the answer is undefined, then it is replaced by an empty answer
(2) if the answer contains null spaces then the answer string is split along the nulls (\0)
and the answer variable is replaced by a reference to this array.
A few clauses in filter_answers and in AnswerEvaluator::get_student_answer are now redundant
but I've left them in for now. The filter_answer subroutine was replacing all nulls by
blanks, which caused the difficulty with handling vectors.
--Mike
Revision
1515 -
Directory Listing
Modified
Tue Sep 23 21:09:58 2003 UTC (9 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Modified ImageGenerator to use new EquationImage module.
Added arguments to ImageGenerator call to support global image cache.
Revision
1457 -
Directory Listing
Modified
Thu Aug 14 19:07:03 2003 UTC (9 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Modifications so that the operations mask is restored
after reading PG.pl, IO.pl and dangerousMacros.pl
--Mike
Revision
1262 -
Directory Listing
Modified
Tue Jun 24 14:51:42 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Changes made to insure that WeBWorK2.0 will run when it is
not optimized for time. I'm planning to commit a "stable" version,
not feature complete, from which optimization branches can be derived.
--Mike
Revision
1249 -
Directory Listing
Modified
Mon Jun 23 14:24:13 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Added caching code for reading PGbascimacros and PGanswermacros as well
as PG.pl, dangerousMacros and IO.pl into a cached safe compartment and
sharing the subroutines with the current safe compartment
It speeds up each problem significantly (about .2 seconds on webwork3).
Changes are required in PGbasicmacros and PGanswermacros to fix
assumptions that are not met when a file is compiled and run in
different name spaces.
The caching code is turned off by default. It must be turned on by
by changing commenting in lines 133 to 147 in WeBWorK::PG:Local.pm
--Mike
Revision
1159 -
Directory Listing
Modified
Fri Jun 13 17:26:40 2003 UTC (9 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
removed unneeded code from WeBWorK::PG, WeBWorK::PG::ImageGenerator::add
now supports both add($in_delim) and add($in, $mode).
-sam
Revision
1154 -
Directory Listing
Modified
Fri Jun 13 02:30:45 2003 UTC (9 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Rewrote ImageGenerator to work with WeBWorK2. Its arguments are now
passed in via an options hash instead of getting a whole %envir. Also,
the options are passed to the constructor and there is no initialize()
method. add() has the same interface, and render() has been changed
slightly. (This closes Bug #80!)
To make this work with 1.8, take a look at how I'm creating
ImageGenerator in &WeBWorK::PG::defineProblemEnvironment and make the
necessary modifications to processProblem8.pl.
I made changes to WeBWorK::PG to have "images" mode trigger HTML_dpng
rather than HTML_img, and also to create an ImageGenerator before
initializing and call render() after translation.
Also in PG, I shortened the names of the equation image files. They're
now "equation-$PSVN-$probnum-$seed.png". This has the added benefit of
forcing image regeneration if the problem seed changes, closing Bug
#70.
Equation files are now dumped directly into the $courseDirs{HTML_temp}
directory. This means that no one has to worry about whether "m2i"
exists any more.
global.conf.dist was changed to not include the switches to dvipng on
the command line (they're currently hardcoded into ImageGenerator).
I still have to get this to work with dvipng 0.3. I should also take
advantages of 0.3's new features, like pipelining (using the -follow
switch) and specifying the output file name (to avoid the "move" of
resulting images).
This is MUCH FASTER than the way I was calling dvipng, and I think it's
safe to say that it's a better method. Thanks JJ!
-sam
Revision
1131 -
Directory Listing
Modified
Wed Jun 11 20:40:11 2003 UTC (9 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
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
1116 -
Directory Listing
Modified
Wed Jun 11 03:59:00 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Added a feature to process_answers. Each answer evaluator is given the
answer AND the answer label (e.g. AnSWer1) of the answer. The label
is placed in the answer hash at $hash{ans_label} for use by filters
that need to know the label of the answer they are evaluating.
A corresponding change has been made in AnswerEvaluator in AnswerHash.pm
--Mike
Revision
624 -
Directory Listing
Modified
Sat Nov 9 15:50:38 2002 UTC (10 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Changed warning messages when dvipng doesn't work from die to warn.
This gives more infformation back to the webbrowser and still prints the
same information to the log.
Removed the workaround for dvipng's problems with labeling its dvi
output. This problem was fixed in the latest version of dvipng which is
now being used on webwork-db and webwork.
There is still a problem that dvipng is being used to display answers at
all times (even if the mode switch is set to tth mode )
Revision
607 -
Directory Listing
Modified
Fri Oct 25 20:56:49 2002 UTC (10 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
re-formatted &alias (in dangerousMacros) so that it's more readable.
mostly just made sure indentations where correct and tabs and spaces
were used where apprropriate.
-sam
Revision
562 -
Directory Listing
Modified
Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
The translator no longer shares IO.pm's functions with the safe compartment.
This is a BAD THING, and should be reconsidered when the Translator is
revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
&dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
of uninitialized value in null operation" warning in template(), tho.
Still to come:
- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password
Revision
424 -
Directory Listing
Modified
Thu Jul 11 19:09:08 2002 UTC (10 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Problem.pm/PG.pm/Translator.pm now compile and work (to some degree)
changed the format of pg/modules in global.conf
diddled with the format of system.template (i believe i moved an <HR>)
added ref2string function to Utils.pm, removed hash2string/array2string
fixed a package name in IO.pm
Revision
412 -
Directory Listing
Modified
Tue Jun 25 20:29:22 2002 UTC (10 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
global: added some new hashes. learn how to use diff.
CourseEnv: new uses WeBWorK::Utils
WW: commented out a silly debugging function
IO: fixed package name
Translator: changed behavior of evaluate_modules and
load_extra_packages: they now update the instance variable directly to
avoid sharing modules that weren't asked for "this time".
-sam
Revision
404 -
Directory Listing
Modified
Mon Jun 24 17:05:13 2002 UTC (10 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/PG
Renamed files to reflect their package prefix:
IOGlue.pm -> IO.pm (WeBWorK::PG::IO)
PGtranslator.pm -> Translator.pm (WeBWorK::PG::Translator)
-sam