[system] / trunk / webwork2 / lib / WeBWorK / ContentGenerator / Instructor / PGProblemEditor.pm Repository:
ViewVC logotype

Log of /trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm

Parent Directory Parent Directory


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

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: 12902 byte(s)
Diff to previous 1363 , to selected 902
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 1363 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 11 19:52:42 2003 UTC (9 years, 10 months ago) by gage
File length: 13069 byte(s)
Diff to previous 1352 , to selected 902
Cosmetic changes to title
--Mike

Revision 1352 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 11 16:58:09 2003 UTC (9 years, 10 months ago) by gage
File length: 13056 byte(s)
Diff to previous 1348 , to selected 902
When editing a set header one can not save to a temporary file, (the
refresh button is gone) however you can make a permanent change and the
result is viewed from the ProblemSet.pm page listing the problems from
the set, together with the screen version of the set header.
--Mike

Revision 1348 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 11 13:47:27 2003 UTC (9 years, 10 months ago) by gage
File length: 12151 byte(s)
Diff to previous 1295 , to selected 902
Added a link which allows editing of the setHeader
Refresh and Save don't yet work because they try to
access the set header as problem 0.  One fix would
be to have Problem.pm display the setHeader whenever
it was asked to show problem 0.  This involves a fair
amount of special case code. Is there are better way?
--Mike

Revision 1295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 27 15:43:06 2003 UTC (9 years, 10 months ago) by gage
File length: 11511 byte(s)
Diff to previous 1198 , to selected 902
Added bread crumbs (path subroutine) along the top of each of these pages.
--Mike

Revision 1198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 18 16:35:53 2003 UTC (9 years, 11 months ago) by sh002i
File length: 10889 byte(s)
Diff to previous 1186 , to selected 902
now sends editMode=savedFile if the "Save" button is pressed, and
doesn't send the "submit_button" parameter.

Revision 1186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 17 19:28:04 2003 UTC (9 years, 11 months ago) by gage
File length: 10794 byte(s)
Diff to previous 1183 , to selected 902
Added formatting
--Mike

Revision 1183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 17 19:00:32 2003 UTC (9 years, 11 months ago) by gage
File length: 10784 byte(s)
Diff to previous 1105 , to selected 902
Small modifications to correct warning messages when opening the temp
file.
-- Mike

Revision 1105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 10 17:29:27 2003 UTC (9 years, 11 months ago) by gage
File length: 10655 byte(s)
Diff to previous 1044 , to selected 902
Filter problem contents before saving to disk to handle line ending problems.
All occurences of \r\n and \r    are replaced by \n.

Began improving the error messages if files cannot not be read.

Revision 1044 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 6 19:03:14 2003 UTC (9 years, 11 months ago) by gage
File length: 13163 byte(s)
Diff to previous 991 , to selected 902
Replacing hard coding of /webwork/ with  $ce->{webworkURLs}->{root}
-- Mike

Revision 991 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 3 20:12:42 2003 UTC (9 years, 11 months ago) by gage
File length: 13150 byte(s)
Diff to previous 983 , to selected 902
The pgProblemEditor now looks for a global problem record if it cannot
find a global_user problem record.
-- 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: 12555 byte(s)
Diff to previous 981 , to selected 902
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 981 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 3 00:28:28 2003 UTC (9 years, 11 months ago) by gage
File length: 12536 byte(s)
Diff to previous 980 , to selected 902
Replaced temporary values placed in $self->{ce}->{foo}
by $self->{foo} in order to avoid editing the course environment
unnecessarily.  Fixes bug #35
--Mike

Revision 980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 23:10:59 2003 UTC (9 years, 11 months ago) by malsyned
File length: 12597 byte(s)
Diff to previous 929 , to selected 902
Rearranged the order of functions in PGProblemEditor.pm
Removed an extraneous warning from ProblemSetEditor.pm
-Dennis

Revision 929 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 12:46:12 2003 UTC (9 years, 11 months ago) by gage
File length: 12597 byte(s)
Diff to previous 928 , to selected 902
Commented out debugging code in pgProblemEditor
--Mike

Revision 928 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 12:45:03 2003 UTC (9 years, 11 months ago) by gage
File length: 12591 byte(s)
Diff to previous 925 , to selected 902
The pgProblemEditor module now handles the seed and displayMode correctly.
-- Mike

Revision 925 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 03:30:45 2003 UTC (9 years, 11 months ago) by gage
File length: 12057 byte(s)
Diff to previous 902
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 902 - (view) (download) (as text) (annotate) - [selected]
Modified Fri May 23 21:10:57 2003 UTC (9 years, 11 months ago) by gage
File length: 7895 byte(s)
Diff to previous 892
The problem editor will now edit existing problems in place.  You invoke it with

http://webwork3.math.rochester.edu:1102/webwork/mth143/instructor/pgProblemEditor/0/2/
and it will edit problem 2 in set 0.

It can't edit files directly or create new files.

The problems are CHANGED!!! there is no editing in a temporary file-- the problems
are changed at every step.  BEWARE

--Mike

Revision 892 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 23 13:14:51 2003 UTC (9 years, 11 months ago) by gage
File length: 6259 byte(s)
Diff to previous 889 , to selected 902
The script now reads takes the form data in problemContents
and displays it in a textarea form.  If there is no problemContents
it reads from the file in template directory.
The script is called with .../instructor/pgProblemEditor/set10/prob1
 I'm using the
current convention for labeling files in the template directory.
Using '10' for set10 will not work right at the moment.  .pg
and the course template directory are combined with the path components
to determine the path to the file.

It remains to add the rest of the editing buttons and provide a method
for saving to the template file.

-- Mike

Revision 889 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu May 22 21:40:23 2003 UTC (9 years, 11 months ago) by gage
File length: 5368 byte(s)
Diff to selected 902
Stub for PGProblemEditor which edits a .pg file

-- Mike

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