Log of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Instructor/PGProblemEditor.pm
Parent Directory
Revision
1747 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jan 25 15:53:23 2004 UTC (9 years, 3 months ago) by
gage
File length: 17628 byte(s)
Diff to
previous 1667
,
to
selected 981
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, 5 months ago) by
gage
File length: 13881 byte(s)
Diff to
previous 1663
,
to
selected 981
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, 5 months ago) by
sh002i
File length: 13778 byte(s)
Diff to
previous 1591
,
to
selected 981
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
File length: 12902 byte(s)
Diff to
previous 1363
,
to
selected 981
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
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 981
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 981
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
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 981
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
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
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)
-
[selected]
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
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
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
,
to
selected 981
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
File length: 6259 byte(s)
Diff to
previous 889
,
to
selected 981
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.