[system] / branches / gage_dev / webwork2 / lib / WeBWorK / ContentGenerator / Hardcopy.pm Repository:
ViewVC logotype

Log of /branches/gage_dev/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm

Parent Directory Parent Directory


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

Revision 6943 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 18 20:07:43 2011 UTC (22 months ago) by gage
File length: 43755 byte(s)
Diff to previous 6885 , to selected 1180
merging with localization files in trunk


Revision 6885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 20:59:12 2011 UTC (22 months, 3 weeks ago) by gage
File length: 43751 byte(s)
Diff to previous 6788 , to selected 1180
finshed changes to WebClient.pm to wire up PG warning channel.

Most of the other changes are probably accepting some of Grant's accessibility updates
and a few details on updating SetMaker2.pm



Revision 6788 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 14 01:23:25 2011 UTC (2 years, 1 month ago) by gage
File length: 43651 byte(s)
Diff to previous 6704 , to selected 1180
updates from trunk


Revision 6704 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 6 14:59:09 2011 UTC (2 years, 3 months ago) by gage
File length: 43701 byte(s)
Diff to previous 6697 , to selected 1180
fixed a missing brace


Revision 6697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 6 14:39:29 2011 UTC (2 years, 3 months ago) by gage
File length: 43684 byte(s)
Diff to previous 6658 , to selected 1180
merge changes from trunk


Revision 6658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 30 17:08:43 2010 UTC (2 years, 4 months ago) by gage
File length: 43645 byte(s)
Diff to previous 6655 , to selected 1180
added comments -- cosmetic changes while studying best way
to impliment tikz image generator -- we'll probably 
model it on ImageGenerator rather than on Hardcopy.pm


Revision 6655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 28 17:49:32 2010 UTC (2 years, 4 months ago) by gage
File length: 42722 byte(s)
Diff to previous 6611 , to selected 1180
changed all occurences of "published" to "visible"   and of "unpublished" to "hidden"

also modified database.conf.dist   so that visible is aliased to "published".

thus the database reference remains "published" but everything else is changed.

Next project:  create an easy automatic upgrade of tables to change field name from 
"published" to "visible"  and then change back the database.conf.dist



Revision 6611 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 3 01:42:34 2010 UTC (2 years, 5 months ago) by gage
File length: 42734 byte(s)
Diff to previous 6469 , to selected 1180
initialize some things to prevent error messages.



Revision 6469 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 13 15:18:32 2010 UTC (2 years, 7 months ago) by gage
File length: 42670 byte(s)
Diff to previous 6464 , to selected 1180
remove conflict chevrons from revision copy of Hardcopy.pm


Revision 6464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 12 00:41:53 2010 UTC (2 years, 7 months ago) by gage
File length: 44721 byte(s)
Diff to previous 6413 , to selected 1180
fixed formatting


Revision 6413 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 7 20:08:24 2010 UTC (2 years, 8 months ago) by gage
File length: 42666 byte(s)
Diff to previous 6401 , to selected 1180
check "print student answers" by default.


Revision 6401 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 13:31:59 2010 UTC (2 years, 8 months ago) by gage
File length: 42611 byte(s)
Diff to previous 6299 , to selected 1180
allow printStudentAnswers at any time (separated from showCorrectAnswers)



Revision 6299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 22 14:46:58 2010 UTC (2 years, 10 months ago) by gage
File length: 42397 byte(s)
Diff to previous 6272 , to selected 1180
test development branch

Revision 6272 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 20 12:11:23 2010 UTC (3 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 42397 byte(s)
Diff to previous 6114 , to selected 1180
Insure that error files can be read from the web even if the files are served using
lighttpd and port 8080 instead of the main server.
This adds group readable and executable permissions to the working directory for creating the tex files.

Revision 6114 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 25 00:39:49 2009 UTC (3 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 42299 byte(s)
Diff to previous 6098 , to selected 1180
Hide from students most of the errors created when the hardcopy version can't be
TeX'd or created for some other reason.  The professor still gets the errors.
A value in global.conf
        download_hardcopy_view_errors =>"professor",
adjusts who sees the hardcopy errors.  global.conf.dist has been changed to
include this entry.

Revision 6098 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 29 16:18:49 2009 UTC (3 years, 8 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41541 byte(s)
Diff to previous 6097 , to selected 1180
correct typo nessages in comment

Revision 6097 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 29 16:12:16 2009 UTC (3 years, 8 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41541 byte(s)
Diff to previous 5902 , to selected 1180
This fixes the bug reported  Blake Thornton
Hardcopy Error
by Blake Thornton - Thursday, 27 August 2009, 09:47 PM
# when students don't select any sets the size of @setIDs is 1 with a null character in $setIDs[0].
# when professors don't select any sets the size of @setIDs is 0.
# the following test "unless ((@setIDs) and ($setIDs[0] =~ /\S+/))" catches both cases and prevents
# warning nessages in the case of a professor's empty array.

Revision 5902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 12 14:33:55 2008 UTC (4 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41183 byte(s)
Diff to previous 5862 , to selected 1180
forward port of change to 2-4-patches

Revision 5862 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 6 16:03:36 2008 UTC (4 years, 9 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41115 byte(s)
Diff to previous 5496 , to selected 1180
Hardcopy.pm: bugfix to deal with empty values coming in for
a set's hide_score parameter.

Revision 5496 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 12 15:05:07 2007 UTC (5 years, 8 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41072 byte(s)
Diff to previous 5319 , to selected 1180
Correct logic error for showing correct answers with respect to
hiding scores et al.

Revision 5319 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 22:59:59 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41050 byte(s)
Diff to previous 5202 , to selected 1180
updated copyright dates

Revision 5202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 21 16:32:45 2007 UTC (5 years, 9 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 41060 byte(s)
Diff to previous 4926 , to selected 1180
Stop a recurring error on hosted2  -- unfortunately I'm not sure what was triggering this error.
I couldn't generate it but an undefined set_id warning occured in many log entries
 from one course.

Revision 4926 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 9 21:01:51 2007 UTC (6 years, 1 month ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 40996 byte(s)
Diff to previous 4925 , to selected 1180
Bug fixes.  $urlPath->arg("setID") isn't always defined in our calls to
Authz::invalidIPAddress, and FormatRecords needs to know about versioned
sets.  The latter fixes the bug in Hardcopy that just (didn't) get fixed
with the previous (not well enough tested) fix.

Revision 4925 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 9 20:20:29 2007 UTC (6 years, 1 month ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 40999 byte(s)
Diff to previous 4909 , to selected 1180
bug fix: correct "sid" => "set_id"

Revision 4909 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 27 20:12:14 2007 UTC (6 years, 1 month ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 40996 byte(s)
Diff to previous 4883 , to selected 1180
Second preliminary commit of changes to move set-level valid checks to
Authz.  This makes ProblemSet.pm and Problem.pm use the
$self->{invalidSet} value set by ContentGenerator.pm, and means that
regular homework assignments may now be restricted to specific IP
addresses.  This commit also corrects $userName/$effectiveUserName
errors I had in Authz->checkSet() and moves the actual IP address
checking to a separate subroutine in Authz.  Hardcopy.pm uses that
routine to filter sets to be sure it doesn't generate hardcopies for
a IP address restricted set.

Revision 4883 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 15 22:00:37 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 40476 byte(s)
Diff to previous 4875 , to selected 1180
Add comment requested for heaven's sake.

Revision 4875 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 13 21:18:18 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 40052 byte(s)
Diff to previous 4873 , to selected 1180
Bug fixes in implementation of hide_score and hide_work.

Revision 4873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 13 15:45:31 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 38449 byte(s)
Diff to previous 4840 , to selected 1180
Update to make hardcopy generation respect a set's hide_work setting,
allow those with permission to generate hardcopies for multiple sets
to print versioned sets.

Revision 4840 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 6 01:30:43 2007 UTC (6 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 36423 byte(s)
Diff to previous 4837 , to selected 1180
better error reporting for external programs

Revision 4837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 23:05:56 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 36142 byte(s)
Diff to previous 4518 , to selected 1180
Update to use new newSQL versioning API.  Also fixes display of correct
answers so that correct answers to a versioned set are visible if the
available attempts on the set are exhausted and the version's answer
date has been reached, but not before.

Revision 4518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 25 22:14:54 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 35860 byte(s)
Diff to previous 4462 , to selected 1180
tons of "DBFIXME" notes -- how to make database access more efficient

Revision 4462 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 20:28:54 2006 UTC (6 years, 8 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 35644 byte(s)
Diff to previous 4326 , to selected 1180
Gateway update to Hardcopy: correct generation of hardcopies including
student solutions to allow the correct answers to be shown before the
due date if the student has used up all attempts on the set.

Revision 4326 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 1 22:02:07 2006 UTC (6 years, 9 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 35518 byte(s)
Diff to previous 4317 , to selected 1180
GatewayQuiz Hardcopy update: add note about correctness of student
answers when printing answers for GatewayQuizzes.

Revision 4317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 28 20:10:28 2006 UTC (6 years, 9 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 35266 byte(s)
Diff to previous 4308 , to selected 1180
GatewayQuiz Hardcopy update: change random ordering of problems in
Gateway tests to use PGrandom (avoids calling srand() repeatedly),
add student answers to completed gateway tests when correct answers
are shown.  Also cleans up presentation of gateway tests.

Revision 4308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 27 20:43:04 2006 UTC (6 years, 9 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 33664 byte(s)
Diff to previous 4277 , to selected 1180
GatewayQuiz Hardcopy update: preliminary commit to add checks for
versioned sets to allow generation of hardcopies of versioned sets.
Still needs checking to avoid generation of hardcopies for the
template set.

Revision 4277 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 17 21:51:12 2006 UTC (6 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31945 byte(s)
Diff to previous 4235 , to selected 1180
Added {} to a couple of CGI::Tr to force concatenation.

Revision 4235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 12 01:23:54 2006 UTC (6 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31932 byte(s)
Diff to previous 4216 , to selected 1180
Converting from use CGI to use WeBWorK::CGI

The only substantial change is in Hardcopy where set_id was changed to "sid"

I believe that change is correct.

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
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31843 byte(s)
Diff to previous 4202 , to selected 1180
Apache2 compatibility for HTTP constants. (This may very well be broken,
but I wanted to get it comitted before bed.)

Revision 4202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 8 14:07:35 2006 UTC (6 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31887 byte(s)
Diff to previous 4157 , to selected 1180
Try using the -nosticky pragma to see if this fixes the problem.

Revision 4157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 24 19:35:36 2006 UTC (6 years, 10 months ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31879 byte(s)
Diff to previous 3997 , to selected 1180
Make edit links use the WW_Editor window.

Revision 3997 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 1 00:24:22 2006 UTC (7 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31837 byte(s)
Diff to previous 3973 , to selected 1180
forward-port from rel-2-2-dev: (Use File::Path::mkpath to create the
hardcopy directory. mkpath() functions like ``mkdir -p'' in that it will
create multiple directory elements if needed. Closes bug #950.

Use the standard File::Temp::tempdir function instead of
makeTempDirectory() to create the actual working directory.

Add spaces after the "[edit]" links when PG errors are reported.)

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/ContentGenerator/Hardcopy.pm
File length: 31678 byte(s)
Diff to previous 3818 , to selected 1180
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 3818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 16 18:19:00 2005 UTC (7 years, 5 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31687 byte(s)
Diff to previous 3751 , to selected 1180
Changed the permission setting for whether or not hardcopy can show correct answers before the answer date.  The old value was really for the "Show Past Answers" button, not for being able to see correct answers early.

Revision 3751 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 10 16:12:07 2005 UTC (7 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31662 byte(s)
Diff to previous 3750 , to selected 1180
Create the [HTML_TMP]/hardcopy directory if it doesn't exist.  This is something of
a hack done in Hardcopy.pm at the moment.  I think this should be moved over
to makeTempDirectory in Utils, but that would require more checking than I can
do right at the moment.

-- Mike

Revision 3750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 8 20:47:12 2005 UTC (7 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31520 byte(s)
Diff to previous 3749 , to selected 1180
this commit fixes quite possible the stupidest thing i've ever done.
wondering where messages like this

	$GlobalSets[1] (ID Sec9.2ParametricEq) not defined -- skipping
	at /ww/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
	line 286.

were coming from?
the answer is:

	$GlobalSets[1] = undef;

which is a line i put in there for testing and never removed. i am very
sorry. :-(

Revision 3749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 8 20:24:08 2005 UTC (7 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31547 byte(s)
Diff to previous 3738 , to selected 1180
fix error message for undefined global sets to print array index instead
of "$i".

Revision 3738 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 3 04:18:21 2005 UTC (7 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31546 byte(s)
Diff to previous 3722 , to selected 1180
fixed code to filter out undefined sets, improved error reporting when
that happens.

Revision 3722 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 19 01:49:17 2005 UTC (7 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31401 byte(s)
Diff to previous 3711 , to selected 1180
Corrected misspelling

Revision 3711 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 14 19:10:04 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31394 byte(s)
Diff to previous 3700 , to selected 1180
show first pdflatex error (bug #850), HTML escaping.

- generate_hardcopy_pdf() now reports the first error encountered in
  hardcopy.log in the list of errors.
- variables substituted into errors strings are now displayed inside
  <code>..</code> tags, and their values are escpaed with CGI/pm's
  escapeHTML() function.

Revision 3700 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 10 22:34:18 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29537 byte(s)
Diff to previous 3668 , to selected 1180
make sure there are answer blanks before printing \begin{itemize}. fixes
bug #859.

Revision 3668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 29 17:41:09 2005 UTC (7 years, 7 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29481 byte(s)
Diff to previous 3666 , to selected 1180
Improve the label on submit button in single user mode.

Revision 3666 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 29 01:25:20 2005 UTC (7 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29409 byte(s)
Diff to previous 3663 , to selected 1180
Simplified the interface for users (who can only download one set at a time and can only download one user).
It could be made slightly more general -- it currently implicitly assumes that either one can edit both
multiple sets and multiple users or one can edit only a single user and a single set.

Removed an error in the [edit] link when there is an error.  The anchor HTML tags were wrapped two layers deep
around the reference.

Can probably still use some more tweaks in the interface.

-- Mike

Revision 3663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 28 21:46:26 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 28633 byte(s)
Diff to previous 3659 , to selected 1180
fixed problem with `!' in set IDs, improved error reporting.

the `!' poblem was caused by passing UserSets to ScrollingRecordList
instead of passing GlobalSets. UserSets have a two-part key (user ID and
set ID), and ScrollingRecordList concatenates them with a `!' to create
the value names. This is a desireable behavior, but not one that I
remembered. Whoops.

Revision 3659 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 27 23:32:41 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 26391 byte(s)
Diff to previous 3649 , to selected 1180
set a default value for hardcopy_format if it's not given.

Revision 3649 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 23 23:26:35 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 26292 byte(s)
Diff to previous 3618 , to selected 1180
Extensive refactor/rewrite.

There are probably going to be bugs here that we squished in the old
version of Hardcopy, but it seems to be pretty robust after an evening
of testing. Alert me if you see problems.

Features:

* standard ScrollingRecordLists are used for user and set selection.
* TeX source is written incrementally instead of being accumulated in
  memory.
* arguments to shell commands are now quoted using String::ShellQuote
* modular design allows adding additional formats easily (i.e. dvi, ps)
* error reporting code is simplified.
* if errors/warnings occur, user will see them on screen instead of
  getting the hardcopy file.
* on the error screen, user can click to get (possibly broken) hardcopy
  if it exists.
* on the error screen, user can click to get interesting temporary
  files. (for PDF format these are hardcopy.{tex,log,aux} and
  pdflatex.std{out,err}.)
* on the error screen, if an error concerns a particular problem, an
  "edit problem" link is included.
* probably more stuff i'm forgetting

Revision 3618 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 13 18:00:13 2005 UTC (7 years, 8 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31695 byte(s)
Diff to previous 3609 , to selected 1180
In hardcopy, a TeX file download has to have the extension .tex, not .pdf

Revision 3609 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 9 20:51:21 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31684 byte(s)
Diff to previous 3586 , to selected 1180
Fixed a bug in which, if the Hardcopy call was the first one to
need to create the  directory at (e.g.)  /ww/htdocs/tmp/myCourse
then the creation of myCourse would fail.  If /ww/htdocs/tmp/myCourse/gif already
existed things would go fine.

I think that more has to be done here.  We need to look at how myCourse is
created when storing a gif or html is the first action and handle these
all the same.  One of the difficulties is that the tmp directory might
be located anywhere -- it is not guaranteed to be under /ww/webwork/webwork2/htdocs
-- at least as we have defined it at the moment.

Revision 3586 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 22:58:13 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31124 byte(s)
Diff to previous 3485 , to selected 1180
Removed unused variable.
Fixed an incorrect error message.

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/ContentGenerator/Hardcopy.pm
File length: 31107 byte(s)
Diff to previous 3432 , to selected 1180
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 3432 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 30 01:49:44 2005 UTC (7 years, 9 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 31958 byte(s)
Diff to previous 3377 , to selected 1180
I've changed errorOutput($error,$details) to accept a reference to a string
or to an array for $details.  These are automatically converted to the proper form.
References should be used when the $details points to a large number of bytes, such
as the contents of a file.

This version is not faster than the original method where $details was always a
string, sometimes a very long string.  It does seem to save memory however.

Further savings in memory could be obtained by print directly, but there are a few instances
which call errorOutput and then do further formatting before printing.

At the moment it doesn't seem to be worth it to make the change from return to print.

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/ContentGenerator/Hardcopy.pm
File length: 30148 byte(s)
Diff to previous 3357 , to selected 1180
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 3357 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 5 18:56:12 2005 UTC (7 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 30148 byte(s)
Diff to previous 3321 , to selected 1180
renamed "problem set" to "homework set" in page content.
closes bug #797.

Revision 3321 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 29 02:46:08 2005 UTC (7 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 30153 byte(s)
Diff to previous 2939 , to selected 1180
Fixed a problem with showing answers when printing hardcopy
(no idea why this wasn't reported earlier).  The CGI::checkboxes
use "on"  and nothing to denote whether a checkbox is checked.
We expect 1 or 0 (or undef).

Revision 2939 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 16:45:34 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29935 byte(s)
Diff to previous 2902 , to selected 1180
add check for undefiend user param (closes bug #714). use $userID for
variable containing the ID of a user (not $User, which is typically used
for a user RECORD).

Revision 2902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 12 02:30:14 2004 UTC (8 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29733 byte(s)
Diff to previous 2785 , to selected 1180
Made changes to the way $r->param("user") is handled, so that it
is always called in a scalar context.

This avoids errors caused if user is defined more than once.

Revision 2785 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 16 17:10:02 2004 UTC (8 years, 8 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29747 byte(s)
Diff to previous 2765 , to selected 1180
lean up test seen by students.

Arnie

Revision 2765 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 22:09:22 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29413 byte(s)
Diff to previous 2764 , to selected 1180
added WeBWorK::Contents switch for preserving hardcopy temp files.
closes bug #633.

Revision 2764 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 22:03:28 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 29030 byte(s)
Diff to previous 2642 , to selected 1180
new using $authz for permissions checks in hardcopy

Revision 2642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 18 22:55:41 2004 UTC (8 years, 9 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 28215 byte(s)
Diff to previous 2495 , to selected 1180
Bringing Hardcopy.pm up to date on this branch.  This fix
corrects bug #636. Students can no longer print hardcopy of
hidden sets.

Revision 2495 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 12 04:06:46 2004 UTC (8 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 27641 byte(s)
Diff to previous 2450 , to selected 1180
Applied Bill Wheeler's patch to send raw TeX to client as file download.
Fixes bug #589.

Revision 2450 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 14:37:32 2004 UTC (8 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 26162 byte(s)
Diff to previous 2394 , to selected 1180
Changed the misnamed problem_header to hardcopy_header which is a more accurate
description of the variables use.

Hardcopy.pm now consults hardcopy_header as opposed to set_header

This addresses some of the concerns in bug #556

Revision 2394 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 21:06:22 2004 UTC (8 years, 10 months ago) by dpvc
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 26155 byte(s)
Diff to previous 1892 , to selected 1180
Moved problem-separation snippet to ABOVE the problem (to get the
line above the first problem and simultaneously avoid having to check
for being the last problem).

Also put the correct answers in verbatim mode to avoid having to make
and-hoc adjustments to the answer string (the result will be exactly
what the instructor typed, no matter what).

This also avoids a problem when the correct answer begins with "[",
where LaTeX would think this was part of an optional parameter to
\item and either eat the answer (up to the "]") or fail to run
entirely (if the answer were "[1,infinity)" for example).

If you don't like the verbatim, you can take it out, but then add {}
or \relax after the \item to avoid this problem.

Revision 1892 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 22:33:22 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 25086 byte(s)
Diff to previous 1878 , to selected 1180
upgraded request usage.
i'm delaying changing how paths are generated until i do something about
what a mess this module is in other ways.

Revision 1878 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 13 05:09:20 2004 UTC (9 years, 2 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 25257 byte(s)
Diff to previous 1841 , to selected 1180
Temporary fix for problem with hardcopy.

	#my $singleSet = $r->urlpath->args("setID");
	my $singleSet;  #FIXME trace down how sets are being passed to hardcopy.


$singleSet was receiving  the notion 1/8
@sets was getting the correct value of the number of the set.
Looks like $singleSet is receivinv a hash??

The calling code needs to be checked over and reconciled with the responding code.

Revision 1841 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 4 21:05:58 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 25120 byte(s)
Diff to previous 1678 , to selected 1180
changed template escape handler functions to grab data from $r->urlpath
instead of @_ for compatability with dispatch_new.

Revision 1678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 18 02:35:29 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 25094 byte(s)
Diff to previous 1663 , to selected 1180
(possible) fix for bug #286

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/ContentGenerator/Hardcopy.pm
File length: 24979 byte(s)
Diff to previous 1636 , to selected 1180
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 1636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 19 18:44:47 2003 UTC (9 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 24322 byte(s)
Diff to previous 1611 , to selected 1180
added code to check for undef return values from DB "get" calls.

Revision 1611 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 27 13:04:09 2003 UTC (9 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23688 byte(s)
Diff to previous 1593 , to selected 1180
Modified the way timers were controlled.  Timers must now be defined
before they will be called in this script.  This fixes a bug that
appeared only on webwork.math.rochester.edu where the timers were
turned off.
--Mike

Revision 1593 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 19 21:24:26 2003 UTC (9 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23676 byte(s)
Diff to previous 1542 , to selected 1180
Added note to title of scrolling lists which indicates  the initial
number of users or sets which have been selected.  This is useful
since the initial selections are often hidden on the list.

Updating this number would require javaScript, which we would prefer to
avoid.  This closes bug #257

--Mike

Revision 1542 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 19:24:32 2003 UTC (9 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 24815 byte(s)
Diff to previous 1409 , to selected 1180
Replaced table and check box display of sets and users with scrolling list
display of sets and users.

Used the new getObjects  commands whenever possible.
--Mike

Revision 1409 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 21 22:08:04 2003 UTC (9 years, 10 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23798 byte(s)
Diff to previous 1325 , to selected 1180
Refactored the code to take advantage to recent changes in
ContentGenerator with respect to REDIRECTs.

Revision 1325 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 9 01:36:01 2003 UTC (9 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23677 byte(s)
Diff to previous 1321 , to selected 1180
Fixed error in finding the default set Header.pg file when the set
header was not defined.  This squashes bug #125.
--Mike

Revision 1321 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 7 15:12:57 2003 UTC (9 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23509 byte(s)
Diff to previous 1320 , to selected 1180
More modifications in format for Hardcopy errors.
--Mike

Revision 1320 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 7 14:29:50 2003 UTC (9 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23532 byte(s)
Diff to previous 1309 , to selected 1180
Cleaning up the format of error reporting in hardcopy.
--Mike

Revision 1309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 1 14:29:02 2003 UTC (9 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 22679 byte(s)
Diff to previous 1202 , to selected 1180
Small error recovery corrections added to Hardcopy
--Mike

Revision 1202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 18 19:58:18 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23708 byte(s)
Diff to previous 1180
These files have timing code in them.  You have to change
the variable  $timer* from 0 to 1 in order to have the times
reported.
--Mike

Revision 1180 - (view) (download) (as text) (annotate) - [selected]
Modified Tue Jun 17 02:20:15 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23522 byte(s)
Diff to previous 1176
Hardcopy now moves the pdf file to the tempDir/hardcopy
and sends the browser a redirect to pick it up.

Cleaned up the logic of latex2pdf and generateHardcopy to
some extent.  More remains to be done.  In particular
tempDir can be generated within latex2pdf.  Possibly
it could be passed a file name as well, rather than a tex
string.

this process is a good candidate for testing the timing
mechanisms once they are done.  How much faster is
redirect?  How much faster is passing a long tex string
rather than a pointer?   etc.

--Mike

Revision 1176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 16 22:23:29 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 22749 byte(s)
Diff to previous 1175 , to selected 1180
permission level must be greater than 0 in order to
choose to download TeX.
--Mike

Revision 1175 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 16 21:51:59 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 22486 byte(s)
Diff to previous 1157 , to selected 1180
Added ability to get TeX output .

Still to do.
(1) Make tex output only available to instructors and TA's
(2) Streamline some code
(3) Store pdf code and redirect instead of outputting the pdf
code directly -- hopefully this will speed up the output?
--Mike

Revision 1157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 14:26:10 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 21436 byte(s)
Diff to previous 1156 , to selected 1180
Hardcopy now appends a copy of the tex output to error message.
Clean up of temp files is pretty good.
The output needs some cosmetic work.
It still seems a little slow to me.
This answers the bulk of bug #82.  Resubmit cosmetic details,
feature requests, etc. as new bug.
--Mike

Revision 1156 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 13:53:19 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 20898 byte(s)
Diff to previous 1153 , to selected 1180
This is a fairly stable version of Hardcopy.  It reports
part of the TeX log errors along with whater pdf was
produced.  This partially satisfies the requests in
bug #82
--Mike

Revision 1153 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 02:20:06 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 20435 byte(s)
Diff to previous 1146 , to selected 1180
Hardcopy now does a reasonable job of reading the TeX log file, cutting
off the initial errors.

If there are tex errors then these are reported and one can optionally
download a pdf file if this was created.

Have not yet added the TeX file output -- Need to see how this is
handled in 1.8 first.

Good stopping point.  Good night.

--Mike

Revision 1146 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 12 19:33:28 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 17720 byte(s)
Diff to previous 1113 , to selected 1180
made some small improvements in error handling. changed calls to tempdir
to calls to makeTempDirectory
-sam

Revision 1113 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 11 02:04:13 2003 UTC (9 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 16681 byte(s)
Diff to previous 973 , to selected 1180
(1) Moved order in which snippets are assembled.  Only one preamble and one postamble are used
for a single download (also a single run of TeX). The postamble ends the document and nothing
else in the file will be read by TeX.
(2) Modified the getSetTeX and getProblemTeX subroutines to include a username (for sets)
and a user object (for problems) so that problems and sets can be made for different students.
The new identifier is the first arguement.
$self->getSetTeX($effectiveUserName, $setName);

and

$self->getProblemTeX($effectiveUser,$setName, 0, $setHeader);

It seems to work pretty well, but perhaps a bit slow still.

--Mike

Revision 973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 20:17:19 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 15835 byte(s)
Diff to previous 924 , to selected 1180
removed annoying debug output.
-sam

Revision 924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 01:38:55 2003 UTC (9 years, 11 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 15883 byte(s)
Diff to previous 919 , to selected 1180
Added a helpful comment to Authz
Fixed bug #15 in hardcopy
Gave ProblemSetList the proper db calls, now that SQL databases are
working.
-Dennis

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/ContentGenerator/Hardcopy.pm
File length: 15887 byte(s)
Diff to previous 818 , to selected 1180
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 ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 15837 byte(s)
Diff to previous 809 , to selected 1180
modev more content generators over to the new WWDBv2 API. fixed some
bugs.
-sam

Revision 809 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 17 21:30:57 2003 UTC (10 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 16008 byte(s)
Diff to previous 739 , to selected 1180
changed the name of the "courseEnvironment" field in the
ContentGenerator object to "ce", to match the style and conciesness of
the existing "r" and new "db" fields.
-sam

Revision 739 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 21 20:49:49 2003 UTC (10 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 16128 byte(s)
Diff to previous 738 , to selected 1180
1. fixed some formatting in Problem
2. hardcopy allows correct answers, hints, solutions to be shown
3. privileged users are allowed to view/download "not yet open" sets
-sam

Revision 738 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 21 19:09:28 2003 UTC (10 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 18070 byte(s)
Diff to previous 737 , to selected 1180
ProblemSet and Problem no longer allow problem sets that are "not yet
open" to be viewed. oopsies.
-sam

Revision 737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 18 07:04:13 2003 UTC (10 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 17080 byte(s)
Diff to previous 722 , to selected 1180
merged changes from rel-2-0-pr1-hardcopy-changes
-sam

Revision 722 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 31 22:29:19 2003 UTC (10 years, 3 months ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 9916 byte(s)
Diff to previous 716 , to selected 1180
effectiveUser audit complete on Hardcopy.pm.  That means all the
ContentGenerators are all checked and clear.
-Dennis

Revision 716 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 24 22:38:52 2003 UTC (10 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 9765 byte(s)
Diff to previous 669 , to selected 1180
hardcopy new respects effectiveUser
-sam

Revision 669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 6 17:42:02 2002 UTC (10 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 9747 byte(s)
Diff to previous 641 , to selected 1180
added feedback links to a bunch of modules.
-sam

Revision 641 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 20 21:47:25 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 9007 byte(s)
Diff to previous 616 , to selected 1180
fixed hardcopy generation for sets named "0" (a false, but defined value)
added error and warning reporting.
-sam

Revision 616 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 30 20:16:56 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 7190 byte(s)
Diff to previous 614 , to selected 1180
finished some stuff up. hardcopy deletes its temp files.
-sam

Revision 614 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 28 21:26:35 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 7191 byte(s)
Diff to previous 607 , to selected 1180
small changes to support hardcopy work.
-sam

Revision 607 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 25 20:56:49 2002 UTC (10 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 7215 byte(s)
Diff to previous 562 , to selected 1180
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/ContentGenerator/Hardcopy.pm
File length: 7054 byte(s)
Diff to previous 547 , to selected 1180
- 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 547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 13 20:54:59 2002 UTC (10 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 6956 byte(s)
Diff to previous 502 , to selected 1180
fixed hardcopy generation (errors in EV3_math_general and the
hardcopySetHeader.
-sam

Revision 502 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 22 21:11:53 2002 UTC (10 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 6973 byte(s)
Diff to previous 494 , to selected 1180
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/ContentGenerator/Hardcopy.pm
File length: 3960 byte(s)
Diff to previous 492 , to selected 1180
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/ContentGenerator/Hardcopy.pm
File length: 3982 byte(s)
Diff to previous 478 , to selected 1180
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 478 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Aug 20 01:10:31 2002 UTC (10 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 2447 byte(s)
Diff to selected 1180
added Hardcopy.
TODO:
	&getMultiSetTeX
	figure out what to do about making several sets into 1 TeX \doc
	make PDF generation code (minimize temp file use!)
		(to this end, module-ize pip? haha.)
-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