Log of /branches/rel-2-2-dev/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
Parent Directory
Revision
3972 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 25 23:12:05 2006 UTC (7 years, 3 months ago) by
sh002i
File length: 77423 byte(s)
Diff to
previous 3908
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
3906 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 11 23:07:16 2006 UTC (7 years, 4 months ago) by
dpvc
File length: 77422 byte(s)
Diff to
previous 3904
Removed commented-out messages that where changed to use the
shortPath() function (I had left them in to make it easier to merge
with new versions using CVS, but they need not be kept now that the
changes have been included in the official version).
Revision
3904 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 11 22:58:36 2006 UTC (7 years, 4 months ago) by
dpvc
File length: 79256 byte(s)
Diff to
previous 3887
Remove unneeded DPVC comments (they were in the version I sent to Mike
because I usually mark the changes I make that I'm not expecting to
commit).
Revision
3887 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jan 8 18:06:03 2006 UTC (7 years, 4 months ago) by
gage
File length: 80328 byte(s)
Diff to
previous 3885
Changes that allow viewing of set_header files and course_info files during the editing process.
Basically the technique for finding the source file is redirected to the temporary files.
Revision
3882 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jan 8 01:19:33 2006 UTC (7 years, 4 months ago) by
gage
File length: 78823 byte(s)
Diff to
previous 3879
Added many changes that address the weakness reported in bug report #936
This file has had significant testing but it still needs a workout.
Revision
3779 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 22 01:44:55 2005 UTC (7 years, 6 months ago) by
gage
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 61066 byte(s)
Diff to
previous 3736
Modifications that set problems with path .../Library/setFoo/problemBar to reference the "Library" component in
bugzilla.
Also the problemSeed is added to the url sent to bugzilla e.g.
/webwork/shared-courses/gage_course_single_sql/templates/rochesterLibrary/setMAAtutorial/simplemultiplechoiceexample.pg_with_problemSeed=4655
this means that you can't click on the link, but it automatically includes a seed which might be helpful.
It is not guaranteed that this the seed that caused problems -- that depends on how the
bug is submitted -- but it is often the case that this seed caused the problem.
-- Mike
Revision
3719 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 17 13:58:07 2005 UTC (7 years, 7 months ago) by
gage
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 57571 byte(s)
Diff to
previous 3718
Improved handling of case where a blank_problem is asked for in PGProblemEditor.pm
Also improved the random names for new local problems
Added ability to create a new blank problem in ProblemSetDetail.pm (without going to the PGProblemEditor.pm)
however something is not yet working when this problem record is saved.
Sam -- could you look at
lines near 679 to see what the problem is? There is a FIXME note there. I suspect that the addProblemToSet
routine is failing somehow, but there is no error message. Many of the record fields are not filled out --
including the sourceFile path and the number of attempts. The same snippet of code works fine
in PGProblemEditor.pm
--Mike
Revision
3718 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 17 03:42:42 2005 UTC (7 years, 7 months ago) by
gage
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 57352 byte(s)
Diff to
previous 3667
Refactored much of the action in PGProblemEditor.pm This allows a user inteface
which mimics the interface for the Hmwk sets editor and for the Classlist editor.
It also allows all of the temporary edit files to be placed in one location.
This allows one to "temporarily" edit a library file to try to see what is wrong with it.
It is also now much easier to make a local copy of a library file for your current problem set
so that you can tweak it.
It has been fairly well tested by one person (me) but there may still be bugs.
-- Mike
Revision
3377 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 14 13:15:27 2005 UTC (7 years, 10 months ago) by
glarose
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 45310 byte(s)
Diff to
previous 3315
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
3037 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 17 17:08:37 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 44421 byte(s)
Diff to
previous 2809
Massive overhaul of this file to put dehackify the code, at least somewhat.
The cases for handling each file type and each action are pretty cleanly laid out.
The next reasonable step would be to reorganize the code by subclassing it.
Since in almost all cases the link knows what file type it wants to be edited
when it calls the editor, the links could specifically call the subclass editor.
This would either reduce or eliminate the need for the file_type parameter.
Properly done subclassing would make it easier to add a new file type.
Currently you need to add code in about four places: UI code in body,
action code in saveFileChanges, path finding code in getFilePaths,
and redirect code in pre_header_initialize.
For a subclass this code could all be adjacent.
Revision
1663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13778 byte(s)
Diff to
previous 1591
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
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
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12902 byte(s)
Diff to
previous 1363
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
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
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
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
892 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 23 13:14:51 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 6259 byte(s)
Diff to
previous 889
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
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.