Log of /trunk/webwork2/lib/WeBWorK/PG
Directory Listing
Revision
3311 -
Directory Listing
Modified
Thu Jun 23 02:33:03 2005 UTC (7 years, 11 months ago) by
gage
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, 1 month ago) by
dpvc
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, 5 months ago) by
gage
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
2929 -
Directory Listing
Modified
Fri Oct 15 20:33:04 2004 UTC (8 years, 8 months ago) by
gage
Removed writing to Timing log from this module.
Revision
2778 -
Directory Listing
Modified
Mon Sep 13 19:35:12 2004 UTC (8 years, 9 months ago) by
sh002i
timezone support
Revision
2418 -
Directory Listing
Modified
Sat Jun 26 20:44:54 2004 UTC (8 years, 11 months ago) by
jj
Minor additions so that ImageGenerator can get image alignment right.
Revision
2268 -
Directory Listing
Modified
Mon Jun 7 02:13:27 2004 UTC (9 years ago) by
sh002i
Added timeout alarm (currently set to 5 munites). Fixes bug #511.
Revision
1703 -
Directory Listing
Modified
Mon Jan 5 01:02:41 2004 UTC (9 years, 5 months ago) by
sh002i
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, 6 months ago) by
sh002i
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
1563 -
Directory Listing
Modified
Sun Oct 5 22:45:38 2003 UTC (9 years, 8 months ago) by
gage
Fixed a reference to the nullSafety filter
--Mike
Revision
1558 -
Directory Listing
Modified
Wed Oct 1 02:57:55 2003 UTC (9 years, 8 months ago) by
sh002i
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
1554 -
Directory Listing
Modified
Tue Sep 30 01:32:53 2003 UTC (9 years, 8 months ago) by
sh002i
moved to pg
Revision
1538 -
Directory Listing
Modified
Sat Sep 27 16:34:45 2003 UTC (9 years, 8 months ago) by
gage
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
1537 -
Directory Listing
Modified
Fri Sep 26 21:31:59 2003 UTC (9 years, 8 months ago) by
sh002i
now install nullSafetyFilter, which does nothing (hence the name).
Revision
1530 -
Directory Listing
Modified
Thu Sep 25 02:03:43 2003 UTC (9 years, 8 months ago) by
sh002i
removed unneeded arguments from calls to ImageGenerator
Revision
1517 -
Directory Listing
Modified
Tue Sep 23 21:12:36 2003 UTC (9 years, 8 months ago) by
sh002i
equationcache module was moved.
Revision
1515 -
Directory Listing
Modified
Tue Sep 23 21:09:58 2003 UTC (9 years, 8 months ago) by
sh002i
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, 10 months ago) by
gage
Modifications so that the operations mask is restored
after reading PG.pl, IO.pl and dangerousMacros.pl
--Mike
Revision
1306 -
Directory Listing
Modified
Tue Jul 1 00:49:34 2003 UTC (9 years, 11 months ago) by
gage
added warning message to preload macros call
--Mike
Revision
1268 -
Directory Listing
Modified
Tue Jun 24 15:31:05 2003 UTC (9 years, 11 months ago) by
gage
Uncommented the caching code
--Mike
Revision
1262 -
Directory Listing
Modified
Tue Jun 24 14:51:42 2003 UTC (9 years, 11 months ago) by
gage
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
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
1247 -
Directory Listing
Modified
Sat Jun 21 02:32:33 2003 UTC (10 years ago) by
gage
Added PG:Local and PG:Remote (from Sam's directory)
Complete updated system now works.
--Mike
Revision
1235 -
Directory Listing
Modified
Fri Jun 20 16:38:52 2003 UTC (10 years ago) by
sh002i
fixed logic error for setting refresh flag
Revision
1215 -
Directory Listing
Modified
Thu Jun 19 00:19:49 2003 UTC (10 years ago) by
gage
Changed PGtranslator to Translator in warning messages.
--Mike
Revision
1169 -
Directory Listing
Modified
Sat Jun 14 06:03:15 2003 UTC (10 years ago) by
sh002i
fixed Bug #92 and problem with equations with \n in them.
-sam
Revision
1163 -
Directory Listing
Modified
Fri Jun 13 18:07:54 2003 UTC (10 years ago) by
sh002i
changed some documentation.
-sam
Revision
1159 -
Directory Listing
Modified
Fri Jun 13 17:26:40 2003 UTC (10 years ago) by
sh002i
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 (10 years ago) by
sh002i
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 (10 years ago) by
sh002i
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 (10 years ago) by
gage
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
1022 -
Directory Listing
Modified
Thu Jun 5 14:06:10 2003 UTC (10 years ago) by
gage
Added ImageGenerator to CVS to help with compatibility
with WeBWorK1.8
-- Mike
Revision
985 -
Directory Listing
Modified
Tue Jun 3 18:19:12 2003 UTC (10 years ago) by
sh002i
removed some old, commented out code.
-sam
Revision
662 -
Directory Listing
Modified
Mon Nov 25 23:53:30 2002 UTC (10 years, 6 months ago) by
sh002i
fixed dvipng (again!)
-sam
Revision
637 -
Directory Listing
Modified
Wed Nov 20 20:02:55 2002 UTC (10 years, 7 months ago) by
sh002i
moved PG modules from lib/WeBWorK/PG/ to pglib/
-sam
Revision
624 -
Directory Listing
Modified
Sat Nov 9 15:50:38 2002 UTC (10 years, 7 months ago) by
gage
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
623 -
Directory Listing
Modified
Fri Nov 8 22:14:18 2002 UTC (10 years, 7 months ago) by
sh002i
yo shout! answer previewing is working.
-sam
Revision
620 -
Directory Listing
Modified
Fri Nov 1 22:57:25 2002 UTC (10 years, 7 months ago) by
sh002i
fixed up IO.pm and IO.pl so that only the necessary functions are in
IO.pl.
-sam
Revision
613 -
Directory Listing
Modified
Mon Oct 28 21:22:11 2002 UTC (10 years, 7 months ago) by
sh002i
getImageDimmensions now uses GD instead of Image::Info.
-sam
Revision
607 -
Directory Listing
Modified
Fri Oct 25 20:56:49 2002 UTC (10 years, 7 months ago) by
sh002i
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, 8 months ago) by
sh002i
- 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
501 -
Directory Listing
Modified
Thu Aug 22 04:32:00 2002 UTC (10 years, 9 months ago) by
gage
Bringing IO.pm and IOglue.pl (in xmlrpc webwork) in line with each
other.
Revision
499 -
Directory Listing
Modified
Wed Aug 21 23:43:17 2002 UTC (10 years, 10 months ago) by
gage
Modifying files to allow xmlrpc and webwork-modperl to share the same code
base
Revision
494 -
Directory Listing
Modified
Wed Aug 21 18:31:20 2002 UTC (10 years, 10 months ago) by
sh002i
updated copyright header.
-sam
Revision
493 -
Directory Listing
Modified
Wed Aug 21 16:32:11 2002 UTC (10 years, 10 months ago) by
gage
Beginning the process of combining the various versions of
PG translator.
Revision
424 -
Directory Listing
Modified
Thu Jul 11 19:09:08 2002 UTC (10 years, 11 months ago) by
sh002i
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
413 -
Directory Listing
Modified
Tue Jun 25 20:31:41 2002 UTC (10 years, 11 months ago) by
sh002i
Copied PG modules over from old system.
-sam
Revision
412 -
Directory Listing
Modified
Tue Jun 25 20:29:22 2002 UTC (10 years, 11 months ago) by
sh002i
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
Renamed files to reflect their package prefix:
IOGlue.pm -> IO.pm (WeBWorK::PG::IO)
PGtranslator.pm -> Translator.pm (WeBWorK::PG::Translator)
-sam
Revision
402 -
Directory Listing
Added
Mon Jun 24 16:32:30 2002 UTC (10 years, 11 months ago) by
malsyned
Moved PGTranslator and IOGlue into WeBWorK::PG