[system] / branches / rel-2-4-patches / webwork2 / lib / WeBWorK / PG.pm Repository:
ViewVC logotype

Log of /branches/rel-2-4-patches/webwork2/lib/WeBWorK/PG.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 5865 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 7 18:51:52 2008 UTC (4 years, 9 months ago) by gage
File length: 13829 byte(s)
Diff to previous 5744 , to selected 4677
Make htmlURL available within set

Revision 5744 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 24 16:07:53 2008 UTC (4 years, 11 months ago) by gage
File length: 13691 byte(s)
Diff to previous 5734 , to selected 4677
Corrective updates to rel-2-4-patches

Revision 5734 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 24 00:44:59 2008 UTC (4 years, 11 months ago) by
File length: 13630 byte(s)
Diff to previous 5318 , to selected 4677
This commit was manufactured by cvs2svn to create branch 'rel-2-4-patches'.

Revision 5318 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 22:53:51 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: branches/rel-2-4-dev/webwork2/lib/WeBWorK/PG.pm
File length: 13630 byte(s)
Diff to previous 5243 , to selected 4677
updated copyright dates

Revision 5243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 7 22:35:14 2007 UTC (5 years, 9 months ago) by
Original Path: branches/rel-2-4-dev/webwork2/lib/WeBWorK/PG.pm
File length: 13630 byte(s)
Diff to previous 4705 , to selected 4677
This commit was manufactured by cvs2svn to create branch 'rel-2-4-dev'.

Revision 4705 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 6 02:23:45 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13630 byte(s)
Diff to previous 4700 , to selected 4677
don't include Safe::Hole anymore

Revision 4700 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 5 20:59:46 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13646 byte(s)
Diff to previous 4677
use DelayedMailer instead of RestrictedMailer

Revision 4677 - (view) (download) (as text) (annotate) - [selected]
Modified Mon Nov 27 18:37:23 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13545 byte(s)
Diff to previous 4674
Add wrapped RestrictedMailer instance to PG envir.

Revision 4674 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 27 18:32:54 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13208 byte(s)
Diff to previous 4397 , to selected 4677
eliminate useless double-assignment (which could cause a later security
issue if someone comments out the second assignment and not the first)

Revision 4397 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 24 21:16:41 2006 UTC (6 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13255 byte(s)
Diff to previous 4386 , to selected 4677
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 4386 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 17 23:55:17 2006 UTC (6 years, 9 months ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13814 byte(s)
Diff to previous 4376 , to selected 4677
Added LaTeXMathML mode.

Revision 4376 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 14 18:15:11 2006 UTC (6 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13684 byte(s)
Diff to previous 4099 , to selected 4677
pass server_root_url into safe compartment.

Revision 4099 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 20:47:27 2006 UTC (7 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13633 byte(s)
Diff to previous 4091 , to selected 4677
Support for finding applets in one of several locations.

Revision 4091 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 21 00:52:20 2006 UTC (7 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13505 byte(s)
Diff to previous 3973 , to selected 4677
Added support for directories for housing applet files

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
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13428 byte(s)
Diff to previous 3377 , to selected 4677
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 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/PG.pm
File length: 13427 byte(s)
Diff to previous 3355 , to selected 4677
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 3355 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 5 18:16:12 2005 UTC (7 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13425 byte(s)
Diff to previous 3224 , to selected 4677
fixed tiny indentation problem

Revision 3224 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 14 01:32:19 2005 UTC (8 years ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13446 byte(s)
Diff to previous 2983 , to selected 4677
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 2983 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 3 22:00:10 2004 UTC (8 years, 6 months ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13421 byte(s)
Diff to previous 2776 , to selected 4677
Added ability to control the "Missing TeX Fonts" message generated by
jsMath.  There are now two parameters in global.conf that control the
message.  You can set

	$pg{displayModeOptions}{jsMath}{reportMissingFonts}

to 0 if you want no font messages, and you can set

	$pg{displayModeOptions}{jsMath}{missingFontMessage}

to a string that should be issued when the fonts are missing.  This
can be an HTML string, so you can include a link to the jsMath font
page, as the current message does.  The message will be set in a <DIV>
of class NoFontMessage, so the style attributes can be controled in
the content-generators template file.

Revision 2776 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 19:29:55 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13323 byte(s)
Diff to previous 2699 , to selected 4677
added second argument to formatDateTime(), to support timezone specified
in course environment.

Revision 2699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 28 13:56:54 2004 UTC (8 years, 8 months ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13239 byte(s)
Diff to previous 2440 , to selected 4677
Improved error message reporting in PG and in the main WeBWorK
dispatcher.  If an error is trapped by the main dispatcher, it now
prints a complete stack trace for the error.

Note that the PG error reporting also requires an update to the pg
tree as well, so be sure you update both trees.

Revision 2440 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 3 17:29:32 2004 UTC (8 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 12936 byte(s)
Diff to previous 2419 , to selected 4677
get dvipng settings from new place in CE

Revision 2419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 26 21:07:20 2004 UTC (8 years, 10 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 12821 byte(s)
Diff to previous 2371 , to selected 4677
Pass more arguments to imagegenerator for image alignment.

Revision 2371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 23 01:19:56 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 12580 byte(s)
Diff to previous 2354 , to selected 4677
moved DISPLAY_MODE_FAILOVER to PGbasicmacros

Revision 2354 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 21 19:07:08 2004 UTC (8 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13225 byte(s)
Diff to previous 2217 , to selected 4677
Changing cosmetics in code (PG.pm) and the listing of links
(ContentGenerator)

Revision 2217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 27 01:34:22 2004 UTC (8 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13223 byte(s)
Diff to previous 2200 , to selected 4677
Made a loop of loading special environment variables.  As a side effect, this makes the default size of on-the-fly graphics visible.

Revision 2200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 24 02:01:25 2004 UTC (9 years ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13360 byte(s)
Diff to previous 2192 , to selected 4677
More files for asciimath rendering.

Revision 2192 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 24 01:03:05 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 13161 byte(s)
Diff to previous 2170 , to selected 4677
display mode handling improved.
allowed display modes can now be specified via global.conf.
failover data used by the PG system now comes from PG.pm.

Revision 2170 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 23 01:15:28 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 12483 byte(s)
Diff to previous 2166 , to selected 4677
For helpLink in pg problems.

Revision 2166 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 22:16:20 2004 UTC (9 years ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 12413 byte(s)
Diff to previous 1703 , to selected 4677
Files needed for jsMath display mode.

Revision 1703 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 5 01:02:41 2004 UTC (9 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 12302 byte(s)
Diff to previous 1663 , to selected 4677
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 - (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/PG.pm
File length: 12235 byte(s)
Diff to previous 1557 , to selected 4677
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 1557 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 1 02:57:32 2003 UTC (9 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 11578 byte(s)
Diff to previous 1244 , to selected 4677
1. moved common functions from PG::Local and PG::Remote to PG and made
them methods so that inheritence would work.

Revision 1244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 21 00:53:45 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 4657 byte(s)
Diff to previous 1239 , to selected 4677
PG now serves as a factory, consulting $ce->{pg}->{renderer} for the
module to actually create.

Revision 1239 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 20 23:06:17 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 20136 byte(s)
Diff to previous 1196 , to selected 4677
changed occurences of $courseEnv to $ce. uses
$ce->{pg}->{directories}->{macros} instead of the (now removed)
$ce->{webworkDirs}->{macros}.

Revision 1196 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 18 16:33:47 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 20419 byte(s)
Diff to previous 1169 , to selected 4677
PG again gets source file and seed from $problem object,
unconditionally.

Revision 1169 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 14 06:03:15 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 20638 byte(s)
Diff to previous 1159 , to selected 4677
fixed Bug #92 and problem with equations with \n in them.
-sam

Revision 1159 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 17:26:40 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 20567 byte(s)
Diff to previous 1154 , to selected 4677
removed unneeded code from WeBWorK::PG, WeBWorK::PG::ImageGenerator::add
now supports both add($in_delim) and add($in, $mode).
-sam

Revision 1154 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 02:30:45 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 20640 byte(s)
Diff to previous 1144 , to selected 4677
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 1144 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 12 19:31:44 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 19443 byte(s)
Diff to previous 1136 , to selected 4677
replaced call to tempdir with call to makeTempDirectory
-sam

Revision 1136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 12 14:01:40 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 19459 byte(s)
Diff to previous 1098 , to selected 4677
Removed warning message used in debugging.
--Mike

Revision 1098 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 9 23:32:25 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 19383 byte(s)
Diff to previous 1081 , to selected 4677
Environment variables added for
PRINT_FILE_NAMES_FOR
CAPA_Tools
CAPA_MCTools
CAPA_Graphics_URL
CAPA_GraphicsDirectory

These are all set in the anonymous hash
$pg{specialPGEnvironmentVars} = {
		PRINT_FILE_NAMES_FOR      =>
['gage','apizer','voloshin','lr003k','professor'],
		CAPA_Tools                =>
"$courseDirs{macros}/CAPA_Tools/",
		CAPA_MCTools              =>
"$courseDirs{macros}/CAPA_MCTools/",
		CAPA_Graphics_URL         =>
"$courseDirs{html}/CAPA_Graphics/",
		CAPA_GraphicsDirectory    =>
"$courseDirs{html}CAPA_Graphics/",
    };

set in global.conf or in course.conf

--Mike

Revision 1081 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 9 17:59:16 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18820 byte(s)
Diff to previous 927 , to selected 4677
Allow commas, [ ] and | in answers
(changes to Safety filter.)
--MIke

Revision 927 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 03:31:28 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18812 byte(s)
Diff to previous 919 , to selected 4677
Problem Editor now creates a temporary file to edit (
adding .tmp to the file name)
Refresh causes a redirect to the Problem.pm with a GET command.
Some of the arguments are unnecessary and need to be cleaned up.

The seed and display mode in the problem editor are not properly
initialized from the problem set.

Problem.pm has been modified to check for these arguments and to read
the temporary source file, seed and displayMode.  These are passed
through to a PG.pm object.

PG also needed to be modified so that the source_file and seed values
are overridden

Revision 919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 00:24:27 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18622 byte(s)
Diff to previous 818 , to selected 4677
changed ->id to ->whatever_id
-sam

Revision 818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 25 04:51:37 2003 UTC (10 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18612 byte(s)
Diff to previous 815 , to selected 4677
modev more content generators over to the new WWDBv2 API. fixed some
bugs.
-sam

Revision 815 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 06:37:42 2003 UTC (10 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18550 byte(s)
Diff to previous 699 , to selected 4677
removed unused references to WWDBv1 libraries.
-sam

Revision 699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 9 19:03:54 2003 UTC (10 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18599 byte(s)
Diff to previous 698 , to selected 4677
send_mail_to now works.
-sam

Revision 698 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 9 16:41:54 2003 UTC (10 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18599 byte(s)
Diff to previous 697 , to selected 4677
took out some old commented out lines in PG.pm.
-sam

Revision 697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 8 19:03:30 2003 UTC (10 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 19166 byte(s)
Diff to previous 696 , to selected 4677
added ALLOW_MAIL_TO to the environment.
-sam

Revision 696 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 8 16:36:43 2003 UTC (10 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 19099 byte(s)
Diff to previous 692 , to selected 4677
added $formatedDueDate variable (spelled wrong in many header files)
-sam

Revision 692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 7 21:19:38 2003 UTC (10 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18997 byte(s)
Diff to previous 684 , to selected 4677
DONE	effectiveUser for at least Problem.pm
DONE	write a template escape for printing $user, $effectiveUser, &c. nicely

also added additional timing log points: timing is now logged:

	1. when WeBWorK::PG::new starts
	2. after all the initialization-type stuff happens
	3. when WeBWorK::PG::new ends

Getting it to log the entire request time might be a little harder.
-sam

Revision 684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 6 19:34:36 2003 UTC (10 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18844 byte(s)
Diff to previous 635 , to selected 4677
removed user name propogation from Logout -> Login
disabled "show hint/solution" when there's no hint/solution

Revision 635 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 20 19:13:25 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18836 byte(s)
Diff to previous 623 , to selected 4677
fixed __WARN__ handler. somehow it broke itself and needed some
massaging.
-sam

Revision 623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 8 22:14:18 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18843 byte(s)
Diff to previous 620 , to selected 4677
yo shout! answer previewing is working.
-sam

Revision 620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 1 22:57:25 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18688 byte(s)
Diff to previous 612 , to selected 4677
fixed up IO.pm and IO.pl so that only the necessary functions are in
IO.pl.
-sam

Revision 612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 28 21:21:26 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18749 byte(s)
Diff to previous 609 , to selected 4677
added texDisposition problem environment variable -- always set to "pdf"
cleaned up unrestricted_load code, made IO.pl get loaded first
-sam

Revision 609 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 25 22:25:34 2002 UTC (10 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18239 byte(s)
Diff to previous 608 , to selected 4677
fixed a little problem with the warning control.
-sam

Revision 608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 25 22:16:01 2002 UTC (10 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18329 byte(s)
Diff to previous 607 , to selected 4677
added $courseEnv->{pg}->{options}->{catchWarnings} to control if PG
warnings are caught and stored in the self hash, or uncaught and
spit out on stderr (or error_log or whatever).
-sam

Revision 607 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 25 20:56:49 2002 UTC (10 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18182 byte(s)
Diff to previous 562 , to selected 4677
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 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18168 byte(s)
Diff to previous 558 , to selected 4677
- 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 558 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 20 22:47:22 2002 UTC (10 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 17555 byte(s)
Diff to previous 555 , to selected 4677
* fixed multiple-calls-to-&handler problem
* fixed if-else-endif code in &template
* added code to catch warnings in PG evaluation
* added "pink screen" and warning reporting
* started work on logging code (see Utils.pm, commented out)
-sam & dennis

Revision 555 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 18 19:25:42 2002 UTC (10 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18623 byte(s)
Diff to previous 526 , to selected 4677
fixed image centering, added head escape.
-sam

Revision 526 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 29 19:56:24 2002 UTC (10 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 18223 byte(s)
Diff to previous 502 , to selected 4677
HTML_img mode ("images" mode in the HTML interface) now uses dvipng to
generate images. ProblemSet now has a link to Hardcopy.
-sam

Revision 502 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 22 21:11:53 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 17246 byte(s)
Diff to previous 494 , to selected 4677
continuing work on hardcopy generation. changed interface to PG.pm to
take user, problem, and set objects instead of names.
-sam

Revision 494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 21 18:31:20 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 17125 byte(s)
Diff to previous 492 , to selected 4677
updated copyright header.
-sam

Revision 492 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 21 15:34:35 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 17147 byte(s)
Diff to previous 476 , to selected 4677
made progress towards working hardcopy generation. next, i have to fix
the call to pdflatex. screw pip. it's not working right, and it doesn't
give me any speed gain, since latex has to goofily write the WHOLE DAMN
FILE in whatever order it pleases before letting me have it.
-sam

Revision 476 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 20 01:07:18 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 16483 byte(s)
Diff to previous 455 , to selected 4677
fixed problem with deciding when to generate images in math2img mode
finished adding template escapes to ProblemSets, ProblemSet, and Problem

fixed a problem where modules were removed from the courseEnv while
being loaded (whups.)
-sam

Revision 455 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 5 21:34:18 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 16117 byte(s)
Diff to previous 440 , to selected 4677
"normalized" files:
- (c) header on all files
- standard order of preamble lines:
	1. (c) header
	2. package PACKAGENAME;
	3. short summary of the package (pod's NAME section)
	4. use - pragmatic modules
	5. use - standard perl modules
	6. use - CPAN modules
	7. use - webwork modules
- ALWAYS use strict and use warnings
- use "use base" rather than "our @ISA"
so now we can be happy.
-sam

Revision 440 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 25 21:45:29 2002 UTC (10 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 16111 byte(s)
Diff to previous 434 , to selected 4677
cleanup?
-sam

Revision 434 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 19 06:19:34 2002 UTC (10 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 10227 byte(s)
Diff to previous 433 , to selected 4677
added refreshMath2img to the problem environment (PG.pm) and modified
Problem.pm to set it when showHints or showSolutions is on. THIS IS NOT
THE BEST THING TO DO -- we only need to refresh when the value of
showHints or showSolutions CHANGES. Also, we should be refreshing if the
problem seed changes. So, we need somewhere to store those three values
between invocations of the script. HHHHHMMMMMMMM......... &math2img in
dangerousMacros.pl has been modified to respect refreshMath2img and also
refresh if the image file is older than the PG source file.
-sam

Revision 433 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 19 02:41:25 2002 UTC (10 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 10228 byte(s)
Diff to previous 431 , to selected 4677
added HTML_img display mode. it currently generates image files using
math2img (which in turn uses latex, dvips and pstoimg (which in turn
uses gs, netpbm, and possibly otheres)). doesn't do any cacheing...
which means it's s--l--o--w. but it works.
-sam

Revision 431 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 18 20:12:02 2002 UTC (10 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 10153 byte(s)
Diff to previous 425 , to selected 4677
finished initial version of PG.pm and Problem.pm
-sam

Revision 425 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 11 23:27:10 2002 UTC (10 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 10126 byte(s)
Diff to previous 424 , to selected 4677
continued to work on Problem.pm. see diffs.
-sam

Revision 424 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 11 19:09:08 2002 UTC (10 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 9834 byte(s)
Diff to previous 415 , to selected 4677
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 415 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 26 13:33:59 2002 UTC (10 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 7185 byte(s)
Diff to previous 414 , to selected 4677
stuff i've been working on.
-sam

Revision 414 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Jun 25 20:33:13 2002 UTC (10 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/PG.pm
File length: 6895 byte(s)
Diff to selected 4677
created PG::init_translator, which takes care of bootstrapping a
PG::Translator object. It is very sexy on the outside, and very hairy on
the inside.
-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.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9