Log of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm
Parent Directory
Revision
6285 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 29 12:43:20 2010 UTC (2 years, 11 months ago) by
gage
File length: 48112 byte(s)
Diff to
previous 6284
check that a tex output actually exists before typesetting the correct answer.
This effort is still a hack. Problem.pm needs to be written from the ground up.
Revision
6284 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 28 21:29:48 2010 UTC (2 years, 11 months ago) by
gage
File length: 48006 byte(s)
Diff to
previous 6275
added tooltip for the answer preview -- this shows the actual entry -- with this we could get rid of the
first "parsed" entry in each row, saving some space. Something similar (but more complicated) would give
us a tooltip showing the typeset version of the correct answer. (We want the untypeset version to be
available for cutting and pasting when instructors are checking problems for correctness so the method ("title" attribute) used
for the answer preview won't work.
Revision
6274 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 25 18:22:12 2010 UTC (2 years, 11 months ago) by
gage
File length: 45699 byte(s)
Diff to
previous 6260
print problemSourceFile and problemSeed when the instructor is viewing a problem.
This enables the "temporary file" capability of the problem editor.
Revision
6260 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 15 18:22:35 2010 UTC (3 years ago) by
gage
File length: 45342 byte(s)
Diff to
previous 6237
added useless reference to @LimitedPolynomial::BOP::ISA to the end of the dispatcher in WeBWorK.pm
to stop warning messages such as these:
[Sat May 15 14:33:35 2010] [warn] [client 127.0.0.1] [/webwork2/gage_course/test_set/6/] Can't locate package LimitedPolynomial::BOP for @LimitedPolynomial::BOP::power::ISA at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 115., referer: http://localhost/webwork2/gage_course/test_set/6/
No explanation for the warning messages nor as to why this stops them.
contextLimitedVector.pl is similar and does not create similar warning messages.
Revision
6237 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 14 00:50:14 2010 UTC (3 years ago) by
gage
File length: 45308 byte(s)
Diff to
previous 6158
stop printing the problem path and the problem seed in hidden variables
students could use this to reverse engineer the problem using the library
website.
Revision
6149 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Oct 17 15:53:19 2009 UTC (3 years, 7 months ago) by
apizer
File length: 45810 byte(s)
Diff to
previous 6086
Implement a Reduced Scoring Period. The Reduced Scoring Period is a period before the due date during which all additional work done by the student counts at a reduced rate.
Revision
6086 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jul 18 02:52:51 2009 UTC (3 years, 10 months ago) by
gage
File length: 45682 byte(s)
Diff to
previous 6041
Aded effectivePermissionLevel to the PG environment
-- the permission level of the effectiveUser, the user to which the question has been assigned.
Changed the printing of the path to files in
beginproblem() so that it is shown if the effectivePermissionLevel is higher than
the "PRINT_FILE_NAMES_PERMISSION_LEVEL" value. This responds to user requests that make it easier for an
instructor to print hardcopy for the student.
Revision
6041 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 4 01:34:53 2009 UTC (3 years, 11 months ago) by
gage
File length: 45594 byte(s)
Diff to
previous 5966
Added a feature which allows connection of "email instructor" feature to MathNerds.
Specifically the reference to the $pg object is passed back to the feedbackMacro as a parameter.
Revision
5966 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 14 13:39:47 2009 UTC (4 years, 4 months ago) by
dpvc
File length: 45565 byte(s)
Diff to
previous 5715
Make the Prob. List. button inactive when used on an Undefined_Set
(i.e., in the Library Browser). This prevents an error page when an
instructor clicks on the button rather than going back to the Library
Browser page.
Revision
5715 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jun 21 16:33:53 2008 UTC (4 years, 10 months ago) by
gage
File length: 45456 byte(s)
Diff to
previous 5678
Pass permissionLevel to the PG question environment
allows the question to behave differently if the actual viewer is an
instructor. (The effectiveUser is the student for whom the
question was constructed -- the user -- is the person viewing the problem
which might be the student or it might be an instructor acting as the student
The permissionLevel is the one assigned to the "user".
Revision
5678 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 23 14:51:03 2008 UTC (4 years, 11 months ago) by
gage
File length: 45387 byte(s)
Diff to
previous 5644
modifications to the <body> tag and to the
submit tag so that applets are triggered upon submission of the
problem. This is still a work in progress -- the timing issues
with applets appear to be significant.
Revision
5644 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Apr 26 23:13:59 2008 UTC (5 years ago) by
gage
File length: 45119 byte(s)
Diff to
previous 5636
Changed join("\0",....) to join(\0, ....) since I'm pretty sure that what was desired
was a string separated by nulls. If one of the items in the list began with a number eg 14
you would get \014....\0name...\0 etc. I think \0name evaluates properly but I'm pretty
sure that \014 does not.
Revision
5636 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Apr 22 11:40:18 2008 UTC (5 years ago) by
gage
File length: 45116 byte(s)
Diff to
previous 5605
Fixed bug #1435 which prevented showHints and showSolutions from working.
Added -value =>1 to the checkbox items so that they return numeric
values rather than "on".
Revision
5605 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jan 25 23:34:23 2008 UTC (5 years, 3 months ago) by
dpvc
File length: 44961 byte(s)
Diff to
previous 5319
Add "disabled" previous and next buttons so that a student who clicks
on the next button on the first problem and then clicks again
(expecting another next) doesn't get "up" by accident.
Revision
5314 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 13 14:16:11 2007 UTC (5 years, 9 months ago) by
dpvc
File length: 44953 byte(s)
Diff to
previous 5258
Backing out of Mike's change to previewAnswers. Setting that to 0
means the grader will not be run when the problem is first shown, and
that means the notes provided by the grader (like "You can earn
partial credit on this problem") won't be shown until the student
first provides an answer. These messages are important, particularly
for sequential problems, and so need to appear even when the problem
is first shown, not just when answers have been submitted.
If Mike had another reason than just efficiency for not processing
answers on the first invocation of a problem, that will need to be
handled in a more sophisticated way.
Revision
5258 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 9 17:24:33 2007 UTC (5 years, 9 months ago) by
sh002i
File length: 44919 byte(s)
Diff to
previous 4909
forward-port (gage): Don't processAnswers the first time a page is
viewed. (Process answers only if the submitAnswers, previewAnswers or
checkAnswers button has been pressed.)
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
File length: 44953 byte(s)
Diff to
previous 4566
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
4389 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 22 18:37:22 2006 UTC (6 years, 8 months ago) by
dpvc
File length: 46152 byte(s)
Diff to
previous 4235
Make the target for the "Show Past Answers" window be WW_Info so that
it is named in a similar way to the other windows used (WW_Editor,
WW_View). This reduces possible classes with other sites using the
more generic "information".
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: 46163 byte(s)
Diff to
previous 4202
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
4090 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun May 21 00:51:25 2006 UTC (6 years, 11 months ago) by
gage
File length: 46124 byte(s)
Diff to
previous 4071
Added onSubmit to form so that javaScript functions can be triggered by the submit button.
check that this still works on windows MSIE
Revision
4051 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Apr 17 21:17:12 2006 UTC (7 years, 1 month ago) by
sh002i
File length: 45980 byte(s)
Diff to
previous 4031
Resolve bug #994 ("Try it" yields: sourceFilePath is unsafe!)
SetMaker uses a relative path for sourceFilePath, which is nice, but
which path_is_subdir didn't account for. Added thrid argument,
$allow_relative, to that utility which causes $dir to be prepended to
$path. Modified Problem.pm to trigger this behavior.
Revision
4015 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Feb 7 21:03:25 2006 UTC (7 years, 3 months ago) by
sh002i
File length: 45883 byte(s)
Diff to
previous 3973
forward-port from rel-2-2-dev: (security checks for sourceFilePath -- fixes bug #970.
* Utils.pm: add path_is_subdir
* Problem.pm: use path_is_subdir to check sourceFilePath
fix logic on when to use sourceFilePath
* ProblemSet.pm: use path_is_subdir to check sourceFilePath
add permissions check around sourceFilePath handler
* ProblemSets.pm: use path_is_subdir to check sourceFilePath
* GatewayQuiz.pm: remove code to preserve editMode/sourceFilePath (not used))
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: 45665 byte(s)
Diff to
previous 3963
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
3963 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jan 24 23:27:02 2006 UTC (7 years, 3 months ago) by
sh002i
File length: 45663 byte(s)
Diff to
previous 3888
forward-port from rel-2-2-dev: (make webwork code output siblings div/h2
code, rather than template. this allows for the siblings box to be named
according to its contents.)
Revision
3816 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Dec 15 19:42:28 2005 UTC (7 years, 5 months ago) by
sh002i
File length: 45529 byte(s)
Diff to
previous 3798
accept display of edited problems even if they are from a gateway test,
but only if we have permission. fixed bug #868.
Revision
3768 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Nov 18 18:30:12 2005 UTC (7 years, 6 months ago) by
sh002i
File length: 45133 byte(s)
Diff to
previous 3653
give the style used for the attempt results summary a structural name
(attemptResultsSummary) rather than a sort-of-stylistic name (emphasis).
Revision
3653 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Sep 24 00:51:58 2005 UTC (7 years, 7 months ago) by
dpvc
File length: 45129 byte(s)
Diff to
previous 3626
Prevent empty answers that are marked as correct from being counted as
unanswered blanks. This avoids the "all the above are correct/at
least one of the above are NOT correct" problem, and suppresses the "n
questions remain unanswered" message when the empty questions are
counted as correct.
Revision
3580 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 26 17:30:05 2005 UTC (7 years, 8 months ago) by
jj
File length: 44706 byte(s)
Diff to
previous 3570
When dealing with showOldAnswers defaults, allow control of who get get the system default after the due date instead of hard-wiring it. Default value is that students don't initially get old answers after the due date, but professors do.
Revision
3564 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 24 20:22:32 2005 UTC (7 years, 8 months ago) by
jj
File length: 44479 byte(s)
Diff to
previous 3533
Make it so that by default, practice users don't see saved answers. That can be controlled in global.conf.dist. Also, default to not showing saved answers after the due date. In all cases, the Apply options button can adjust what you want.
Also fixed a bug with showOldAnswers related to '', 0, and undef being similar in perl.
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: 43785 byte(s)
Diff to
previous 3481
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
3481 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 11 22:11:53 2005 UTC (7 years, 9 months ago) by
sh002i
File length: 43976 byte(s)
Diff to
previous 3391
added implementation of options() which call optionsMacro(). the version
in Problem.pm takes care to preserve the editMode and sourceFilePath
parameters.
Revision
3391 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 20 18:14:58 2005 UTC (7 years, 10 months ago) by
gage
File length: 43975 byte(s)
Diff to
previous 3377
Changes to the reports of a problem status. This closes bug #631. It
also reports blank errors differently from incorrect answers to support
sequential problem graders. Finally it adds a "state_summary_msg" field
to the problem state which can be used to completely replace the
report on the current problem state usually printed at the bottom of a
problem page.
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: 43121 byte(s)
Diff to
previous 3362
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
3362 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 6 15:38:06 2005 UTC (7 years, 10 months ago) by
dpvc
File length: 42286 byte(s)
Diff to
previous 3357
Make tth use unicode for the preview (as it does for the calls within
the body of the problem). Also, do the preview in display mode, but
fix the tables so that they won't have unwanted borders (really need
to fix the ur.css to get this right) and remove the unneeded initial
<BR> that tth produces.
Revision
3356 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 5 18:20:24 2005 UTC (7 years, 10 months ago) by
sh002i
File length: 42095 byte(s)
Diff to
previous 3337
Added support for the tthPreamble.tex file. The effect of this code is
the same as the corresponding code in dangerousMacros.pl:tth(), but the
technique is slightly different.
This is a hack. Eventually, we'd like to have a common out-of-sandbox
method of calling TTH.
Closes bug #799.
Revision
3318 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 28 00:16:08 2005 UTC (7 years, 10 months ago) by
sh002i
File length: 41258 byte(s)
Diff to
previous 3055
set closed message differentiates between sets that have not yet opened
and sets that used to be open. resolves bug #724.
Revision
3034 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 17 16:59:48 2004 UTC (8 years, 5 months ago) by
gage
File length: 41194 byte(s)
Diff to
previous 3000
Move options subroutine up to ContentGenerator.
Cleanup commented out code
Add facility for reading {status_message} to display messages when a call
is redirected from PGProblemEditor.pm
Revision
3000 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 18 16:00:37 2004 UTC (8 years, 6 months ago) by
gage
File length: 42550 byte(s)
Diff to
previous 2998
These changes elevate the Options panel to ContentGenerator.pm
Some of the changes are a bit hackish, but I believe that they
are sufficient for the moment. I expect much of the machinery
to be replaced by an "options" table in the new database.
The current options state consists of two values: displayMode (for
viewing equations) and showOldAnswers (for showing answers between
one session and the next). "Sticky answers" which show form entries
when the form is submitted and returned is a feature which is always on,
as I believe it should be.
Known bugs:
The options state is lost when visiting the Instructor pages, editing
problems, and probably sending instructor feedback. (I have made sure
that state was passed for the main links, I hope, but there are many
other possible links where state can get lost. My hope is that storing
state in the database will make it unnecessary to hunt down every link
where state needs to be preserved.)
Default options are set in the subroutine options in ContentGenerator.pm
This is called before body, where the option panel is displayed, but not
before the initialization phase. Modules that need options in the
initialization phase (currently only Problem.pm) need to set them
themselves.
Revision
2998 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 18 01:45:29 2004 UTC (8 years, 6 months ago) by
gage
File length: 42444 byte(s)
Diff to
previous 2875
Made modifications to the user interface so that "show saved answers"
can now be turned off. If the default mode was on, then this feature
could never be turned off. (Unchecked check boxes don't return 0, they
are simply not defined.)
Revision
2762 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 10 21:33:30 2004 UTC (8 years, 8 months ago) by
sh002i
File length: 41514 byte(s)
Diff to
previous 2761
removed unused fetching and passing-around of permission level,
commented-out old versions of code. working towards closing bug #574.
Revision
2738 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Sep 5 18:00:23 2004 UTC (8 years, 8 months ago) by
sh002i
File length: 43864 byte(s)
Diff to
previous 2735
rel-2-0-patches merge: fixes for invalid "published" field. Rob said:
should finally fix bugs dealing with sets being created (usually from 1.9)
without a valid setting in the published field
now anyone of Problem, ProblemSet, or ProblemSets will correct this bug.
Revision
2735 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Sep 5 00:54:31 2004 UTC (8 years, 8 months ago) by
dpvc
File length: 43935 byte(s)
Diff to
previous 2685
Modified ShowAnswers.pm so that the individual answsers are colored coded to
indicate whether they are correct or not. I also added a permission
level called "dont_log_past_answers" that is true for professors (so
the answer log won't be cluttered up with professors answers, which we
don't really care about seeing).
While I was at it, I converted ShowAnswers.pm to use the CGI package
rather than explicit HTML.
Revision
2685 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 26 01:34:30 2004 UTC (8 years, 8 months ago) by
jj
File length: 43781 byte(s)
Diff to
previous 2635
Fixed logic for the check/submit buttons. Previously, if a student had 1
attempt remaining, they only got a check button. The problem was that
can{recordAnswers} was used for both deciding record/submit and for whether
or not to produce the Submit button. On the last submission, these are
different. So, this adds a new field to can/must/will so that one field
says whether we can record the current attempt, and another says if we
can generate a Submit button.
Revision
2635 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 17 18:51:46 2004 UTC (8 years, 9 months ago) by
sh002i
File length: 43482 byte(s)
Diff to
previous 2539
Actually record answers of zero in the answer log. An EMPTY string was
logged if the student answer was not a TRUE VALUE. Thus, answers of zero
were not being logged (although they were still in the transaction log).
Revision
2539 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jul 19 22:17:46 2004 UTC (8 years, 10 months ago) by
jj
File length: 43443 byte(s)
Diff to
previous 2512
before, after, between did not cover all cases. The choice of the marginal
cases was decided by the best behavior when displaying problems from outside
an actual problem set (in which case the dates may all equal now).
Revision
2507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jul 12 23:38:52 2004 UTC (8 years, 10 months ago) by
sh002i
File length: 43429 byte(s)
Diff to
previous 2505
name submitAnswers button "Submit Answers for $effectiveUser" if acting
as a student. (as per jj's suggestion -- see bug #541 again.)
Revision
2436 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 2 20:39:12 2004 UTC (8 years, 10 months ago) by
dpvc
File length: 39325 byte(s)
Diff to
previous 2422
Fixed uninitialized value. (It comes into play when there are no
answers required, as is true for some problems in tour orientation set.)
Revision
2422 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 28 14:31:40 2004 UTC (8 years, 10 months ago) by
jj
File length: 39321 byte(s)
Diff to
previous 2421
Improved logic from last fix - declaring problems from outside setmaker to
be invalid if they have no global problem.
Revision
2415 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Jun 26 16:12:16 2004 UTC (8 years, 10 months ago) by
jj
File length: 39236 byte(s)
Diff to
previous 2414
Altered course in how to set vertical alignment of images, so this
undoes calls for javascript, and passes more arguments to imagegenerator
(which can be used someday soon).
Revision
2252 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 4 23:21:48 2004 UTC (8 years, 11 months ago) by
jj
File length: 41036 byte(s)
Diff to
previous 2251
Allow students to check answers between the due date and the answer date. This doesn't let them see the correct answers, but it does let them enter values to see if those are right without recording them.
Revision
2231 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 31 04:17:59 2004 UTC (8 years, 11 months ago) by
jj
File length: 40818 byte(s)
Diff to
previous 2221
When viewing a problem which isn't really part of a set (e.g., out of SetMaker), make the display mode option buttons work.
Revision
2192 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 24 01:03:05 2004 UTC (8 years, 11 months ago) by
sh002i
File length: 40329 byte(s)
Diff to
previous 2171
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
2099 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 13 18:38:19 2004 UTC (9 years ago) by
toenail
File length: 40146 byte(s)
Diff to
previous 2097
added "This problem does not count towards your grade." messages if
the weight of a problem has been set to 0. Fixes #464.
Revision
2062 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun May 9 17:47:35 2004 UTC (9 years ago) by
gage
File length: 38981 byte(s)
Diff to
previous 2020
Formatted the "PREVIEW ONLY" and "Not Recorded" messages as
'ResultsWithError' to insure that students don't accidently think
they have submitted their answers.
Revision
1980 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 28 15:51:25 2004 UTC (9 years ago) by
gage
File length: 37004 byte(s)
Diff to
previous 1956
Added code to give message when an edited problem file cannot be saved.
Some of the problems reported in bug #152 are addressed.
Instituting a submit result field was not done.
Revision
1955 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 7 22:13:01 2004 UTC (9 years, 1 month ago) by
gage
File length: 36357 byte(s)
Diff to
previous 1949
Added colors to the "answers correct" and "answers incorrect" statements.
They are assigned to the class div.ResultsWithError and div.ResultsWithoutError
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: 35955 byte(s)
Diff to
previous 1829
changed template escape handler functions to grab data from $r->urlpath
instead of @_ for compatability with dispatch_new.
Revision
1775 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Feb 4 00:32:12 2004 UTC (9 years, 3 months ago) by
gage
File length: 36851 byte(s)
Diff to
previous 1744
Made changes at line 552 which check that the original student answer has actually been
defined. This should be guaranteed by the answer evaluators but ........
Revision
1744 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jan 23 21:46:37 2004 UTC (9 years, 3 months ago) by
gage
File length: 36563 byte(s)
Diff to
previous 1738
Make sure that if one message is reported for answers then all
messages are reported (even if some of the messages are blank).
This was clearly a typo in the original code where a decision was
made on $answerMessages instead of $showAnswers.
This fixes bug #370
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: 36433 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
1592 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Oct 18 23:15:59 2003 UTC (9 years, 7 months ago) by
gage
File length: 34979 byte(s)
Diff to
previous 1591
Modified the way the editor link is prepared and when it is shown --
particularly if there are errors. This fixes bug #122
Revision
1591 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Oct 18 20:46:01 2003 UTC (9 years, 7 months ago) by
gage
File length: 34815 byte(s)
Diff to
previous 1582
Fixed problem in logic which kept an edited problem from reading the
.tmp file when the answer was submitted. Now the editMode variable
and sourceFilePath variables are passed on as hidden variables by
Problem.pm if they exists in the input form. This fixes bug #179
as well as bug #109.
The temporary file is now labeled fileName.pg.user.tmp where user is
the login name of the person editing the file. If that file exists
then pgProblemEditor will attempt to use that as a source file.
The revert button forces a read from fileName.pg
--Mike
Revision
1582 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Oct 12 19:31:36 2003 UTC (9 years, 7 months ago) by
gage
File length: 34463 byte(s)
Diff to
previous 1539
Fixes bug #254. The showHints check box will not be shown unless
the number of incorrect attempts is greater than or equal to the
value of showHints.
The showHints checkbox now appears in red (and in a new <div> which
means a new paragraph on some browsers) This helps alert a student that
a hint is now available.
--Mike
Revision
1539 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Sep 27 16:44:53 2003 UTC (9 years, 7 months ago) by
gage
File length: 34335 byte(s)
Diff to
previous 1536
When recording answers the answer strings are now obtained directly from the original
formField entries, rather than from the processed version in the answer hashes.
This insures that the memorized answers will be identical with the ones that would
have been submitted from the form.
This is important for answers with multiple values which are represented by
null separated strings. The answer evaluation process converts these strings
to references to arrays, and -- in order to have good display properties -- the
original_student_answer slot in the AnswerHash contains a representation such as
( 4, 5, 6).
This is NOT suitable for resubmitting as an answer in a form field and is therefore not the
right thing to store in the data base when saving answers.
--MIke
Revision
1507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 19 02:17:48 2003 UTC (9 years, 8 months ago) by
gage
File length: 34100 byte(s)
Diff to
previous 1499
Changed logic of what is shown about answers when
"submit Answers" and "check Answers" are clicked.
In particular you can't see the answers responses at
all unless one of these two or "preview answers" is cliced.
Hopefully this will not upset preflight uses.
-- Mike
Revision
1499 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 11 00:05:25 2003 UTC (9 years, 8 months ago) by
gage
File length: 33423 byte(s)
Diff to
previous 1496
Submit answer button is now hidden when you are acting to prevent
accidental submission of data for a student. The checkAnswer button
is still active.
--Mike
Revision
1495 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 9 02:56:49 2003 UTC (9 years, 8 months ago) by
gage
File length: 32500 byte(s)
Diff to
previous 1480
Added logic to show the checkAnswer button when you are
a professor or TA acting as a student. This allows you
to check the answer without recording results. (I think)
--MIke
Revision
1480 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 5 03:25:29 2003 UTC (9 years, 8 months ago) by
gage
File length: 31825 byte(s)
Diff to
previous 1479
Added a kludge which, if $showPartialCorrectAnswers is negative, will not show
the answer field at all until the "showCorrectanswers" button is checked.
For students this also must be after the due date.
--Mike
Revision
1479 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 5 03:09:14 2003 UTC (9 years, 8 months ago) by
gage
File length: 31641 byte(s)
Diff to
previous 1471
Fixed messages after the answer box so that it doesn't give away
how many answers were correct. Fixes bug #176.
Removed some hidden inputs from the main form that were making it
impossible to uncheck "show correct answers" (and probably doing
the same for show hints and show solutions.)
--Mike
Revision
1467 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 16 00:48:12 2003 UTC (9 years, 9 months ago) by
gage
File length: 31303 byte(s)
Diff to
previous 1466
Moved show hints and show solutions to
spots just above the submit buttons. This
is closer to the old webwork style and I
think it is more appropriate. Particularly
since these options are sticky only as long
as you stay on the same problem
Revision
1466 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 15 19:07:32 2003 UTC (9 years, 9 months ago) by
gage
File length: 31326 byte(s)
Diff to
previous 1465
Added an obvious warning when using preview only mode so that
user is aware that the answer was not recorded.
--Mike
Revision
1459 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 14 20:10:01 2003 UTC (9 years, 9 months ago) by
malsyned
File length: 31285 byte(s)
Diff to
previous 1440
Fixed bug 143
Implemented temporary solution suggested in bug 110
(I think this could be the permanent solution)
Fixed bug 53
Revision
1440 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 25 20:47:22 2003 UTC (9 years, 9 months ago) by
gage
File length: 31291 byte(s)
Diff to
previous 1426
Don't show both check answers and submit answers button at the same time.
If the submit answers button can be shown then the check answers button
is not shown.
--Mike
Revision
1395 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 15 19:36:25 2003 UTC (9 years, 10 months ago) by
gage
File length: 31226 byte(s)
Diff to
previous 1387
Added ShowAnswers.pm module which reads the log file of the students answers
Modifications to WeBWorK (dispatcher) and Problem (the Show Past Answer button
had to be redirected) were also made.
--Mike
Revision
1387 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 15 00:56:50 2003 UTC (9 years, 10 months ago) by
gage
File length: 31145 byte(s)
Diff to
previous 1378
Changes made to make show Past answers work. Basically I duplicated
writeLog with writeCourseLog which writes to the courses log directory.
I also defined answer_log in that directory.
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: 30166 byte(s)
Diff to
previous 1197
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
1197 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 18 16:35:22 2003 UTC (9 years, 11 months ago) by
sh002i
File length: 29798 byte(s)
Diff to
previous 1190
cleaned up mike's editor support functionality. it now stores the source
file override and seed override in the $problem object. this eliminates
special logic further down the line. (eventually, i would like to have a
separate frontend to PG for the editor, like Instructor::PGPreview.pm)
Revision
1131 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 11 20:40:11 2003 UTC (9 years, 11 months ago) by
sh002i
File length: 29416 byte(s)
Diff to
previous 1128
Made many changes:
- turned off PG warning catching in conf/global.conf.dist
- added warning reporting to conf/templates/ur.template (but not to
other templates!)
- modified a couple of error messages in WeBWorK.pm
- made failure to create course environment and failure to find course
directory fatal errors in WeBWorK.pm
- added warning queueing and call stack storing to Apache::WeBWorK
- added "warnings" and "if_warnings" template escapes to
WeBWorK::ContentGenerator
- removed warning handling from WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::PG::ImageGenerator
-sam
Revision
1128 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 11 19:24:38 2003 UTC (9 years, 11 months ago) by
gage
File length: 29686 byte(s)
Diff to
previous 1096
Use instead of blanks inside tables.
This squashes bug #72 (which Sam thinks is beter unsquashed. What do you think?)
--Mike
Revision
1041 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 6 16:14:38 2003 UTC (9 years, 11 months ago) by
malsyned
File length: 29565 byte(s)
Diff to
previous 1040
Replaced the hardcoded path /webwork with $ce->{webworkURLs}->{root} in
the link from Problem.pm to PGProblemEditor.pm. This fixes bug 52.
-Dennis
Revision
1040 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 6 12:54:41 2003 UTC (9 years, 11 months ago) by
gage
File length: 29546 byte(s)
Diff to
previous 1039
Added a CGI::end_form() to the options section of Problem.pm.
I believe this is is the root cause of the multiple key parameters. I
haven't done all of the testing needed to verify this for sure.
Bug #50 is probably comotose, but needs to be watched.
--Mike
Revision
1039 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 6 02:28:13 2003 UTC (9 years, 11 months ago) by
gage
File length: 29509 byte(s)
Diff to
previous 1038
replaced $r->param('key') with my $key = $r->param('key'); and then used $key in call
to PG. $r->param('key') was returning a two item list in list context. I don't know
where the extra entry into the key param was coming from.
This stuns bug #50, but doesn't kill it.
-- Mike
Revision
1016 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 4 21:04:15 2003 UTC (9 years, 11 months ago) by
sh002i
File length: 29394 byte(s)
Diff to
previous 1007
preview equation images now go in the m2i directory (in the
$courseDirs{HTML_tmp} directory) instead of the png directory.
-sam
Revision
1007 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 4 03:04:07 2003 UTC (9 years, 11 months ago) by
gage
File length: 29394 byte(s)
Diff to
previous 1000
Added a section to handle the case where the problem has not yet been
assigned to a user. This might occur when the problem template is
called form the problem editor before the sets have been assigned
to students. The problem is obtained as a global problem
then converted to a user_problem with default values. The problem
is not saved. This code should be reviewed to make sure there are no
hidden behaviors. Perhaps a group reading is in order once things
settle down. This squashes bug #34.
--Mike
Revision
1000 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 3 22:27:16 2003 UTC (9 years, 11 months ago) by
gage
File length: 28156 byte(s)
Diff to
previous 997
The conversion of set and problem from global to global-user now works.
You will get "pink screen" errors for now because not all of the vaules
in problem have been given correct defaults.
I'll do that next.
--Mike
Revision
993 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 3 20:20:16 2003 UTC (9 years, 11 months ago) by
gage
File length: 27629 byte(s)
Diff to
previous 992
Made small modifications to allow Problem.pm to read a problem that has
not yet been assigned.
TO DO (and I'll need help with this)
Convert a global set to a global user set (and the global problem to a
global user problem). I need to know how to specify the appropriate
classes.
Once we are guaranteed a record of the type returned by getGlobalUser
....
stuff missing defaults (e.g. psvn for set, and num_correct (answers) for
problem) in the newly created global_user record objects.(this part I
can do.)
At that point the rest of Problem.pm should be able to proceed as before
without any changes.
--Mike
Revision
983 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 3 17:48:35 2003 UTC (9 years, 11 months ago) by
malsyned
File length: 26522 byte(s)
Diff to
previous 942
Changed explicit references to "/webwork" to the abstract
$ce->{webworkURLs}->{root}. If you've been hardcoding "/webwork" into
your URLs, you should take a look at the diff to this update to learn
the prefered method.
-Dennis
Revision
942 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 29 20:30:56 2003 UTC (9 years, 11 months ago) by
gage
File length: 26503 byte(s)
Diff to
previous 940
Display options are now sticky (they are repeated as hidden options in the main problem body).
Changed name of submit button from redisplay to "save options"
fixes bug #27 at least to some extent.
these saved options may not persist from one problem to another. In order to solve that problem
we need a storage place for user options, or else many more hidden inputs to save state as one
moves from one request to another.
this fix will work for now.
-- Mike
Revision
940 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 29 20:02:35 2003 UTC (9 years, 11 months ago) by
gage
File length: 25964 byte(s)
Diff to
previous 939
Added a new template hook "options" which allows one to reset the display options.
Modified viewOptions to conform to a "vertical" look for the radio buttons in the redisplay options.
Modified some of the labels for the same reason.
The horizontal spacing is a bit of kludge (I can't guarantee no line breaks for each of the radio button
labels). Using underbars instead of spaces in the labels would fix this, but...
--Mike
Revision
939 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 29 19:02:44 2003 UTC (9 years, 11 months ago) by
gage
File length: 25457 byte(s)
Diff to
previous 928
Turned on answer previewing every time an answer is submitted
(either answer check or answer submit or preview answer)
Revision
926 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed May 28 03:31:07 2003 UTC (9 years, 11 months ago) by
gage
File length: 25390 byte(s)
Diff to
previous 920
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
906 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 27 00:31:32 2003 UTC (9 years, 11 months ago) by
gage
File length: 24019 byte(s)
Diff to
previous 903
The "edit this problem" link now appears only if you have a
permission level greater than or equal to 10 (instructor)
--Mike
Revision
903 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 23 21:36:35 2003 UTC (9 years, 11 months ago) by
gage
File length: 23971 byte(s)
Diff to
previous 818
Added a link to the editor.
This link always prints, (at the moment) even if the
user doesn't have instructor permissions. (FIXME)
-- Mike
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: 23329 byte(s)
Diff to
previous 795
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
794 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 19 15:07:16 2003 UTC (10 years, 2 months ago) by
gage
File length: 23470 byte(s)
Diff to
previous 756
Added code for logging student answers and allowing instructors to inspect previous
answers from students.
Revision
755 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 28 20:02:29 2003 UTC (10 years, 2 months ago) by
malsyned
File length: 21649 byte(s)
Diff to
previous 747
Began adding CSS escapes to some generated HTML structures.
Addressed some bug reports that came in from the mailing list.
-Dennis
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
File length: 20845 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
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
File length: 20484 byte(s)
Diff to
previous 685
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
685 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 19:41:44 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20301 byte(s)
Diff to
previous 684
DONE results table
part(or blank)/entered/preview/result/messages
don't show messages unless there are some
-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
File length: 20205 byte(s)
Diff to
previous 683
removed user name propogation from Logout -> Login
disabled "show hint/solution" when there's no hint/solution
Revision
683 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 19:17:28 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20218 byte(s)
Diff to
previous 682
fixed formatting in &tth (dangerousMacros.pl)
ProblemSets.pm allows sorting by Name or Status (due date)
-sam
Revision
682 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 18:10:47 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20101 byte(s)
Diff to
previous 671
make answer previews use $displayMode
write a template escape for printing $user, $effectiveUser, &c. nicely
-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: 16891 byte(s)
Diff to
previous 558
- 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, 7 months ago) by
sh002i
File length: 16442 byte(s)
Diff to
previous 555
* 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
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
File length: 15523 byte(s)
Diff to
previous 502
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, 8 months ago) by
sh002i
File length: 15466 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
492 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 21 15:34:35 2002 UTC (10 years, 8 months ago) by
sh002i
File length: 15561 byte(s)
Diff to
previous 476
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
File length: 15440 byte(s)
Diff to
previous 455
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
File length: 13658 byte(s)
Diff to
previous 449
"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
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
File length: 12471 byte(s)
Diff to
previous 431
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
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
File length: 4132 byte(s)
Diff to
previous 415
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
399 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 20 21:26:16 2002 UTC (10 years, 11 months ago) by
gage
File length: 25981 byte(s)
Diff to
previous 398
Copied in a version of safety_filter subroutine from
PGtranslator5.pm in order to quite an "undefined" message.
-- Mike
Revision
396 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 20 20:43:39 2002 UTC (10 years, 11 months ago) by
malsyned
File length: 25083 byte(s)
Diff to
previous 392
Some edits to make it work on my system, and some code cleanups. You'll
probably have to edit it on the top (right now) to get it to work on your
system. /this will change/ in the future. But it's nice to have a working
demo.
--Dennis
Revision
392 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 20 13:46:05 2002 UTC (10 years, 11 months ago) by
gage
File length: 24881 byte(s)
Diff to
previous 388
Problem.pm now works (kindof) to serve PG problems. There are configuration
variables at the top that have to be customized to an individuals directory.
(They could be placed in a config file to avoid having to update them constantly,
but soon these values should be set by information from the course and
problem environments.)
The code is still rather delicate. It seems to work with some problems and not
with others. I suspect that the macro files are not being properly read in
and that perhaps the warning mechanisms are not yet working properly.
Also beware the line ending problem. Some of these files were created on a
mac (using unix). I've had completely mysterious errors that were fixed
by checking the line endings.
There is also a lot of code, particulary the error reporting code which should be put
in its own module.
Revision
388 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 19 20:03:53 2002 UTC (10 years, 11 months ago) by
gage
File length: 6707 byte(s)
Diff to
previous 353
I've added code for defining the problemEnvironment, at least for now.
Many of the values which will be pulled from the database have simply
been hardcoded into the subroutine.
There is also code to pretty print these values to aid in debugging.
Revision
353 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Jun 7 23:35:59 2002 UTC (10 years, 11 months ago) by
malsyned
File length: 531 byte(s)
All of the content generators now work with the template system
Moved the content generators into the WeBWorK::ContentGenerator namespace
Added the default template and a few global.conf entries
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.