Log of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/ProblemSet.pm
Parent Directory
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: 14889 byte(s)
Diff to
previous 4012
,
to
selected 3935
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: 14696 byte(s)
Diff to
previous 3963
,
to
selected 3935
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: 14696 byte(s)
Diff to
previous 3943
,
to
selected 3935
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
3935 -
(
view)
(
download)
(
as text)
(
annotate)
-
[selected]
Modified
Sun Jan 22 02:29:40 2006 UTC (7 years, 3 months ago) by
sh002i
File length: 14511 byte(s)
Diff to
previous 3925
forward-port to HEAD (Fixed error in variable names that was breaking
the code in HEAD. -gage)
Revision
3925 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jan 20 00:17:39 2006 UTC (7 years, 4 months ago) by
sh002i
File length: 14415 byte(s)
Diff to
previous 3901
,
to
selected 3935
forward-port to head (partial clean up rendering of the info box. it
will now not show up unless it has content, and the headings will be
rendered more nicely.)
Revision
3873 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 2 23:24:48 2006 UTC (7 years, 4 months ago) by
glarose
File length: 14433 byte(s)
Diff to
previous 3850
,
to
selected 3935
Gateway update: don't display gateway sets in siblings sidebar of
ProblemSet list for all users, regardless of permissions. This may
or may not be the desired behavior. I like it because it forces
the user to go to a test from the ProblemSets page where we rewrite
the link with the more intuitive (but longer) text "Take new [test
name] test".
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: 14921 byte(s)
Diff to
previous 3481
,
to
selected 3935
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
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: 14331 byte(s)
Diff to
previous 3357
,
to
selected 3935
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
3033 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 17 16:57:53 2004 UTC (8 years, 5 months ago) by
gage
File length: 13645 byte(s)
Diff to
previous 3000
,
to
selected 3935
Preserve display options when using the "up" arrow in navigation.
Some code that helps pass messages through {status_message} when a call
is redirected to ProblemSet (e.g. 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: 13352 byte(s)
Diff to
previous 2856
,
to
selected 3935
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
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: 13089 byte(s)
Diff to
previous 2455
,
to
selected 3935
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
2455 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 7 18:15:20 2004 UTC (8 years, 10 months ago) by
gage
File length: 12885 byte(s)
Diff to
previous 2398
,
to
selected 3935
Don't show unpublished sets in the siblings list (unless of course
you have permission to see unpublished sets. (published == visible, unpublished == hidden)
This might be a little slow if there is a very long list of sibling sets.
Each set has to be checked to see if it is published.
Revision
1881 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 15 03:50:05 2004 UTC (9 years, 2 months ago) by
gage
File length: 10667 byte(s)
Diff to
previous 1841
,
to
selected 3935
I have made changes to the list of problems that uses the full path
instead of the relative call used previously. Hope this will fix
the error described below. I don't know whether this is the proper
fix or whether something fancier using urlPath is appropriate.
There is an error with the links for Set 7.
Clicking on problems in the
problem set will not link to the selected problem- it will link to the
problem set of the same number. (i.e. Selecting problem #2 will link
me to
Homework set #2 instead)
--Mike
Revision
1833 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 4 17:40:04 2004 UTC (9 years, 2 months ago) by
gage
File length: 10118 byte(s)
Diff to
previous 1829
,
to
selected 3935
Rolled back previous addition of the due date.
The due date can be specified in the setHeader message. It does not
need to be hard coded into ProblemSet.pm
--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: 9928 byte(s)
Diff to
previous 1663
,
to
selected 3935
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: 9032 byte(s)
Diff to
previous 1624
,
to
selected 3935
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
1502 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 11 02:03:06 2003 UTC (9 years, 8 months ago) by
gage
File length: 8357 byte(s)
Diff to
previous 1364
,
to
selected 3935
Made changes to ProblemSet.pm that replace the feedback button
which did not work with the "email instructor" button.
Also changed some probable typos in Feedback.pm which
was trying to find set_id from problem rather than from set.
This doesn't work when problem is not defined.
--Mike
Revision
1359 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 11 19:02:23 2003 UTC (9 years, 10 months ago) by
gage
File length: 7664 byte(s)
Diff to
previous 1354
,
to
selected 3935
I've trade speed for usefulness and convenience. The sibling links are
now sorted by name and all links are active. On webwork3 this cuts the
loading time for the page by a factor of 5 (11 seconds to 2)
We can reverse this when the process of collecting all of the relevant
sets is faster (this process took 8 seconds).
--Mike
Revision
1347 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 11 13:11:26 2003 UTC (9 years, 10 months ago) by
gage
File length: 6397 byte(s)
Diff to
previous 1228
,
to
selected 3935
Changed the variable pointing to the text accompanying the list of
problems from problem_header to set_header. I believe this is what was
intended originally, since the default is snippets/setHeader.pg
I don't believe we have a use for problem header yet.
--Mike
Revision
1107 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 10 19:40:45 2003 UTC (9 years, 11 months ago) by
gage
File length: 6413 byte(s)
Diff to
previous 1096
,
to
selected 3935
Siblings for problem set are sorted by date. Those sets which
are still open are listed first, followed by sets which are now
closed. Within each group the problems are sorted by due date in
increasing order.
This responds to bug #57bis (request for ordering by due-date)
--Mike
Revision
1063 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jun 8 21:15:30 2003 UTC (9 years, 11 months ago) by
gage
File length: 6122 byte(s)
Diff to
previous 1034
,
to
selected 3935
Modified sibiling macro to sort alphabetically by name of the set.
(this may not be the best permanet solution but itis useful
for those editing this summer.)
--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: 6178 byte(s)
Diff to
previous 795
,
to
selected 3935
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
750 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 27 12:31:06 2003 UTC (10 years, 2 months ago) by
malsyned
File length: 6275 byte(s)
Diff to
previous 738
,
to
selected 3935
Added the <!--#nav--> macro to ProblemSet.pm. When I made a template
that didn't include the <!--#path--> macro to satisfy some old timers on
the mailing list, I noticed that there was no other way to get back to
the problem sets page from a problem set.
-Dennis
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: 3108 byte(s)
Diff to
previous 469
,
to
selected 3935
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: 1098 byte(s)
Diff to
previous 443
,
to
selected 3935
"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
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: 724 byte(s)
Diff
to
selected 3935
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.