[system] / branches / rel-2-2-dev / webwork2 / lib / WeBWorK / ContentGenerator / Instructor / PGProblemEditor.pm Repository:
ViewVC logotype

Log of /branches/rel-2-2-dev/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm

Parent Directory Parent Directory


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

Revision 4057 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 18 23:27:32 2006 UTC (7 years, 2 months ago) by sh002i
File length: 78185 byte(s)
Diff to previous 3972 , to selected 1183
SECURITY: prevent reading/saving files outside of templates directory.

Revision 3972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 23:12:05 2006 UTC (7 years, 4 months ago) by sh002i
File length: 77423 byte(s)
Diff to previous 3908 , to selected 1183
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 3908 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 11 23:56:45 2006 UTC (7 years, 5 months ago) by dpvc
File length: 77423 byte(s)
Diff to previous 3906 , to selected 1183
Removed a debugging message (hope Mike doesn't still need this.  :-)

Revision 3906 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 11 23:07:16 2006 UTC (7 years, 5 months ago) by dpvc
File length: 77422 byte(s)
Diff to previous 3904 , to selected 1183
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, 5 months ago) by dpvc
File length: 79256 byte(s)
Diff to previous 3887 , to selected 1183
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, 5 months ago) by gage
File length: 80328 byte(s)
Diff to previous 3885 , to selected 1183
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 3885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 8 01:36:15 2006 UTC (7 years, 5 months ago) by gage
File length: 78826 byte(s)
Diff to previous 3882 , to selected 1183
Removed warning message.

Revision 3882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 8 01:19:33 2006 UTC (7 years, 5 months ago) by gage
File length: 78823 byte(s)
Diff to previous 3879 , to selected 1183
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 3879 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 7 02:08:53 2006 UTC (7 years, 5 months ago) by
File length: 63625 byte(s)
Diff to previous 3815 , to selected 1183
This commit was manufactured by cvs2svn to create branch 'rel-2-2-dev'.

Revision 3815 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 15 19:11:06 2005 UTC (7 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 63625 byte(s)
Diff to previous 3811 , to selected 1183
refactored copy-and-pasted code

Revision 3811 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 14 00:16:50 2005 UTC (7 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 64179 byte(s)
Diff to previous 3790 , to selected 1183
Removed a link for creating a blank problem that is not yet fully supported.

Commented out  cheerful green goodmessages announcing which subroutine handler of the PGProblemEditor
was being executed.  They seem to have fulfilled their role and are no longer needed. :-)

-- Mike

Revision 3790 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 3 21:18:35 2005 UTC (7 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 64174 byte(s)
Diff to previous 3779 , to selected 1183
Modifying messages given when editing set detail.

Also changed the way blank problems are handled in editor.
You can save as  or   save a copy as

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/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 61066 byte(s)
Diff to previous 3736 , to selected 1183
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 3736 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 1 01:51:32 2005 UTC (7 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 60401 byte(s)
Diff to previous 3726 , to selected 1183
Added rudimentary link to report problems directly.  It does this by constructing a link
to the bugzilla CGI that includes information on the file name of the problem and the library
in which the problem is stored.  This is probably still pretty fragile.  A separate
module could be constructed to more intelligently report bugs.

-- Mike

Revision 3726 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 25 20:34:19 2005 UTC (7 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 59499 byte(s)
Diff to previous 3724 , to selected 1183
Fixed bug #870 so that setHeaders can be viewed and edited.

Revision 3724 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 20 19:40:43 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 58439 byte(s)
Diff to previous 3719 , to selected 1183
Fixed an error where files of type 'source_path_for_problem_file' were
not redirected in the save_handler

Revision 3719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 17 13:58:07 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 57571 byte(s)
Diff to previous 3718 , to selected 1183
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, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 57352 byte(s)
Diff to previous 3667 , to selected 1183
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 3667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 29 01:57:56 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 50560 byte(s)
Diff to previous 3433 , to selected 1183
Allow making a local copy of a library problem with a single button push.

The user interface is still cluttered.  I think I'll rewrite the bottom button rows
using radio buttons and a 'Take action' submit button as on the Classlist and Homework set editor
pages.

Revision 3433 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 30 17:26:45 2005 UTC (7 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 45624 byte(s)
Diff to previous 3377 , to selected 1183
Added useful links to the macro list and the pod_docs
in addition to the incomplete manpages.

These are still temporary measures for improving the documentation
for those writing problems.

Revision 3377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 14 13:15:27 2005 UTC (7 years, 11 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 45310 byte(s)
Diff to previous 3315 , to selected 1183
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 3315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 25 16:21:46 2005 UTC (7 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 45317 byte(s)
Diff to previous 3175 , to selected 1183
Fixed an incorrect error message when using the revert button.

Revision 3175 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 17 17:42:36 2005 UTC (8 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 45072 byte(s)
Diff to previous 3128 , to selected 1183
Fixed error in PGProblemEditor.pm that prevented you from adding new problem in
a set.  Added comment to ProblemSetDetail.pm

Revision 3128 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 29 01:23:57 2005 UTC (8 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 44938 byte(s)
Diff to previous 3062 , to selected 1183
Fixed problem with hardcopy editing.  This case had simply not been handled
in the code even though it's the same behavior for hardcopy headers as it is for
screen headers.

This fixes bug #763

Revision 3062 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 21 18:44:49 2004 UTC (8 years, 5 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 44711 byte(s)
Diff to previous 3040 , to selected 1183
fixed error when set number or problem number is not defined
Kept fix that keeps set 0 and problem 0 from being replaced by blanks.

Revision 3040 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 17 18:06:38 2004 UTC (8 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 44341 byte(s)
Diff to previous 3037 , to selected 1183
Removed a warn statement

Made sure that r->param('user') is only called in scalar
context.

Revision 3037 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 17 17:08:37 2004 UTC (8 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 44421 byte(s)
Diff to previous 2809 , to selected 1183
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 2809 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 20:07:48 2004 UTC (8 years, 8 months ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 25364 byte(s)
Diff to previous 2474 , to selected 1183
Added ability to edit Hardcopy Header

If passed make_local_copy with any true value, assumes
that the file being edited is some type of library or default file
that should not be overwritten and the Save button is greyed out.

Stopped editor from trying to edit blank files or edit directories as files.

Revision 2474 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 8 23:27:16 2004 UTC (8 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 23788 byte(s)
Diff to previous 2456 , to selected 1183
Handle case where setID and probNumber are undefined (e.g.
when editing course_info file.)

Revision 2456 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 18:42:03 2004 UTC (8 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 23779 byte(s)
Diff to previous 2305 , to selected 1183
The bread crum path at the top leads back to the problem being edited, not to
the Instructor Tool.  This is at least reasonable behavior.

This fixes bug #596

--Mike

Revision 2305 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 14 20:58:17 2004 UTC (9 years ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 22714 byte(s)
Diff to previous 2291 , to selected 1183
added permissions checks

Revision 2291 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 11 15:47:01 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 22023 byte(s)
Diff to previous 2288 , to selected 1183
When editting a problem, you now have the option of adding it to an
existing set.

Revision 2288 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 10 16:30:46 2004 UTC (9 years ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20387 byte(s)
Diff to previous 2265 , to selected 1183
reworked error messages

Revision 2265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 7 00:23:00 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20468 byte(s)
Diff to previous 2220 , to selected 1183
changed erronious == to eq. fixes bug #546.

Revision 2220 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 27 22:28:21 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20468 byte(s)
Diff to previous 2219 , to selected 1183
Filename extension of .pg should only be forced for problem files.

Revision 2219 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 27 17:04:40 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20420 byte(s)
Diff to previous 2218 , to selected 1183
If the user does a save as and forgets the .pg, we help them out and append it to the file name.

Revision 2218 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 27 03:48:04 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20147 byte(s)
Diff to previous 2185 , to selected 1183
Get mode list from variable set in global.conf.

Revision 2185 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 23 23:27:30 2004 UTC (9 years ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20224 byte(s)
Diff to previous 2183 , to selected 1183
Fixed bug in previous version

Arnie

Revision 2183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 23 23:18:27 2004 UTC (9 years ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20224 byte(s)
Diff to previous 2134 , to selected 1183
Doubled the length of the save as textfield box.

Arnie

Revision 2134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 20 21:47:05 2004 UTC (9 years, 1 month ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 20209 byte(s)
Diff to previous 2126 , to selected 1183
can't save as with specifying a filename
changed some warns to addmessage()

Revision 2126 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 18 05:19:33 2004 UTC (9 years, 1 month ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 19092 byte(s)
Diff to previous 2094 , to selected 1183
On refresh, make source file path relative to the templates directory.  This
is needed to match the behavior of alias on static gif files.

Revision 2094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 12 14:29:36 2004 UTC (9 years, 1 month ago) by toenail
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 19013 byte(s)
Diff to previous 2081 , to selected 1183
now passes success/failure messages to Problem.pm

Revision 2081 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 11 19:06:23 2004 UTC (9 years, 1 month ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 18929 byte(s)
Diff to previous 2054 , to selected 1183
Added a surePathToFile call when saving a .pg problem.  Now they can be saved in
a new directory.  This is a partial solution to having a read only library.
More to come.

Revision 2054 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 19:35:21 2004 UTC (9 years, 1 month ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 18744 byte(s)
Diff to previous 2032 , to selected 1183
Doing 'Save as' on a problem pops up a new PGProblemEditor window.  Now
the new window contains the newly saved file.  Also modified the name of
the target window since targets aren't supposed to start with _ (except
for the special reserved ones), and so that editting in the new window
and clicking on a button like Refresh will open yet another window.

Revision 2032 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 18:27:50 2004 UTC (9 years, 1 month ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17968 byte(s)
Diff to previous 2029 , to selected 1183
Make editing a file which doesn't exist stop being an error.   This gives
a way to create course info files and new set headers.

Revision 2029 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 18:18:54 2004 UTC (9 years, 1 month ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17863 byte(s)
Diff to previous 2016 , to selected 1183
Nicer titles, especially for set header and course info editting.

Revision 2016 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 21:53:41 2004 UTC (9 years, 1 month ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17560 byte(s)
Diff to previous 1982 , to selected 1183
Added support for editting problems which are not presented as being
part of a real set.

Revision 1982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 28 16:03:21 2004 UTC (9 years, 1 month ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17085 byte(s)
Diff to previous 1980 , to selected 1183
Removed warning messages.

Revision 1980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 28 15:51:25 2004 UTC (9 years, 1 month ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17216 byte(s)
Diff to previous 1924 , to selected 1183
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 1924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 23 22:59:53 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17067 byte(s)
Diff to previous 1841 , to selected 1183
urlpath/systemlink upgrades
LOTS of cleanup (but it still needs more)

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

Revision 1750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 25 18:20:14 2004 UTC (9 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 18846 byte(s)
Diff to previous 1747 , to selected 1183
Added rudimentary "Save as" function.  This duplicates
WW1.9 save as , but does not provide any extra functionality.


The following problems remain:

The redirect does not yet work correctly.  I believe the desired behavior is to view the
new saved problem from the editor.  There is no easy way to view the new problem
or whatever until the problem has been assigned to globalUser in the set.

Revision 1747 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 25 15:53:23 2004 UTC (9 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 17628 byte(s)
Diff to previous 1667 , to selected 1183
Made modifications to PG problem editor to allow editing of course_info.

Future plans include allowing editing of login_info by the site manager (but not
by the course instructors).

All files to be edited must lie under the templates directory (for safety reasons.)

There are still issues with adequate warnings for saving files when permissions are not correctly set.

There is not yet a save as button.
--Mike

Revision 1667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 02:24:30 2003 UTC (9 years, 6 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13881 byte(s)
Diff to previous 1663 , to selected 1183
As best I can determine all "get" commands to the database are now
checked and appropriate action (usually "die") is taken if no
object is returned.

One exception.  The multiple "gets"  such as getGlobalSets(@setNames)
are not checked -- if a given setName is not found is an empty object
returned? in the list or is nothing returned?

--Mike

Revision 1663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 01:12:32 2003 UTC (9 years, 6 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13778 byte(s)
Diff to previous 1591 , to selected 1183
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, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12902 byte(s)
Diff to previous 1363 , to selected 1183
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, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13069 byte(s)
Diff to previous 1352 , to selected 1183
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, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13056 byte(s)
Diff to previous 1348 , to selected 1183
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, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12151 byte(s)
Diff to previous 1295 , to selected 1183
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, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 11511 byte(s)
Diff to previous 1198 , to selected 1183
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 (10 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 10889 byte(s)
Diff to previous 1186 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 10794 byte(s)
Diff to previous 1183
Added formatting
--Mike

Revision 1183 - (view) (download) (as text) (annotate) - [selected]
Modified Tue Jun 17 19:00:32 2003 UTC (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 10784 byte(s)
Diff to previous 1105
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 10655 byte(s)
Diff to previous 1044 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13163 byte(s)
Diff to previous 991 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 13150 byte(s)
Diff to previous 983 , to selected 1183
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 (10 years ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12555 byte(s)
Diff to previous 981 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12536 byte(s)
Diff to previous 980 , to selected 1183
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 (10 years ago) by malsyned
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12597 byte(s)
Diff to previous 929 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12597 byte(s)
Diff to previous 928 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12591 byte(s)
Diff to previous 925 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 12057 byte(s)
Diff to previous 902 , to selected 1183
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) - [select for diffs]
Modified Fri May 23 21:10:57 2003 UTC (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 7895 byte(s)
Diff to previous 892 , to selected 1183
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 (10 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 6259 byte(s)
Diff to previous 889 , to selected 1183
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 (10 years, 1 month ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
File length: 5368 byte(s)
Diff to selected 1183
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