[system] / trunk / webwork-modperl / lib / WeBWorK / ContentGenerator / Hardcopy.pm Repository:
ViewVC logotype

Log of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Hardcopy.pm

Parent Directory Parent Directory


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

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
File length: 31945 byte(s)
Diff to previous 4235
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
File length: 31932 byte(s)
Diff to previous 4216
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
File length: 31843 byte(s)
Diff to previous 4202
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
File length: 31887 byte(s)
Diff to previous 4157
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, 11 months ago) by dpvc
File length: 31879 byte(s)
Diff to previous 3997
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
File length: 31837 byte(s)
Diff to previous 3973
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
File length: 31678 byte(s)
Diff to previous 3818
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
File length: 31687 byte(s)
Diff to previous 3751
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
File length: 31662 byte(s)
Diff to previous 3750
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
File length: 31520 byte(s)
Diff to previous 3749
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
File length: 31547 byte(s)
Diff to previous 3738
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
File length: 31546 byte(s)
Diff to previous 3722
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
File length: 31401 byte(s)
Diff to previous 3711
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
File length: 31394 byte(s)
Diff to previous 3700
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
File length: 29537 byte(s)
Diff to previous 3668
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
File length: 29481 byte(s)
Diff to previous 3666
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
File length: 29409 byte(s)
Diff to previous 3663
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
File length: 28633 byte(s)
Diff to previous 3659
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
File length: 26391 byte(s)
Diff to previous 3649
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, 8 months ago) by sh002i
File length: 26292 byte(s)
Diff to previous 3618
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
File length: 31695 byte(s)
Diff to previous 3609
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
File length: 31684 byte(s)
Diff to previous 3586
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
File length: 31124 byte(s)
Diff to previous 3485
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
File length: 31107 byte(s)
Diff to previous 3432
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
File length: 31958 byte(s)
Diff to previous 3377
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
File length: 30148 byte(s)
Diff to previous 3357
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
File length: 30148 byte(s)
Diff to previous 3321
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
File length: 30153 byte(s)
Diff to previous 2939
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
File length: 29935 byte(s)
Diff to previous 2902
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
File length: 29733 byte(s)
Diff to previous 2785
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
File length: 29747 byte(s)
Diff to previous 2765
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
File length: 29413 byte(s)
Diff to previous 2764
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
File length: 29030 byte(s)
Diff to previous 2642
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
File length: 28215 byte(s)
Diff to previous 2495
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
File length: 27641 byte(s)
Diff to previous 2450
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
File length: 26162 byte(s)
Diff to previous 2394
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, 11 months ago) by dpvc
File length: 26155 byte(s)
Diff to previous 1892
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
File length: 25086 byte(s)
Diff to previous 1878
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
File length: 25257 byte(s)
Diff to previous 1841
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
File length: 25120 byte(s)
Diff to previous 1678
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
File length: 25094 byte(s)
Diff to previous 1663
(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
File length: 24979 byte(s)
Diff to previous 1636
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
File length: 24322 byte(s)
Diff to previous 1611
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
File length: 23688 byte(s)
Diff to previous 1593
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
File length: 23676 byte(s)
Diff to previous 1542
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
File length: 24815 byte(s)
Diff to previous 1409
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
File length: 23798 byte(s)
Diff to previous 1325
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
File length: 23677 byte(s)
Diff to previous 1321
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
File length: 23509 byte(s)
Diff to previous 1320
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
File length: 23532 byte(s)
Diff to previous 1309
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
File length: 22679 byte(s)
Diff to previous 1202
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
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) - [select for diffs]
Modified Tue Jun 17 02:20:15 2003 UTC (9 years, 11 months ago) by gage
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
File length: 22749 byte(s)
Diff to previous 1175
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
File length: 22486 byte(s)
Diff to previous 1157
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
File length: 21436 byte(s)
Diff to previous 1156
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
File length: 20898 byte(s)
Diff to previous 1153
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
File length: 20435 byte(s)
Diff to previous 1146
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
File length: 17720 byte(s)
Diff to previous 1113
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
File length: 16681 byte(s)
Diff to previous 973
(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
File length: 15835 byte(s)
Diff to previous 924
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
File length: 15883 byte(s)
Diff to previous 919
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
File length: 15887 byte(s)
Diff to previous 818
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
File length: 15837 byte(s)
Diff to previous 809
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
File length: 16008 byte(s)
Diff to previous 739
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, 3 months ago) by sh002i
File length: 16128 byte(s)
Diff to previous 738
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, 3 months ago) by sh002i
File length: 18070 byte(s)
Diff to previous 737
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
File length: 17080 byte(s)
Diff to previous 722
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
File length: 9916 byte(s)
Diff to previous 716
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, 4 months ago) by sh002i
File length: 9765 byte(s)
Diff to previous 669
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
File length: 9747 byte(s)
Diff to previous 641
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
File length: 9007 byte(s)
Diff to previous 616
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
File length: 7190 byte(s)
Diff to previous 614
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
File length: 7191 byte(s)
Diff to previous 607
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
File length: 7215 byte(s)
Diff to previous 562
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
File length: 7054 byte(s)
Diff to previous 547
- 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
File length: 6956 byte(s)
Diff to previous 502
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, 9 months ago) by sh002i
File length: 6973 byte(s)
Diff to previous 494
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
File length: 3960 byte(s)
Diff to previous 492
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
File length: 3982 byte(s)
Diff to previous 478
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
File length: 2447 byte(s)
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