[system] / branches / rel-2-4-patches / webwork-modperl / lib / WeBWorK / ContentGenerator / GatewayQuiz.pm Repository:
ViewVC logotype

Log of /branches/rel-2-4-patches/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm

Parent Directory Parent Directory


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

Revision 6063 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 26 00:37:00 2009 UTC (3 years, 11 months ago) by gage
File length: 86954 byte(s)
Diff to previous 5734 , to selected 1138
syncing with HEAD

Revision 5734 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 24 00:44:59 2008 UTC (4 years, 11 months ago) by
File length: 79929 byte(s)
Diff to previous 5318 , to selected 1138
This commit was manufactured by cvs2svn to create branch 'rel-2-4-patches'.

Revision 5318 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 22:53:51 2007 UTC (5 years, 10 months ago) by sh002i
Original Path: branches/rel-2-4-dev/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 79929 byte(s)
Diff to previous 5243 , to selected 1138
updated copyright dates

Revision 5243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 7 22:35:14 2007 UTC (5 years, 10 months ago) by
Original Path: branches/rel-2-4-dev/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 79929 byte(s)
Diff to previous 4972 , to selected 1138
This commit was manufactured by cvs2svn to create branch 'rel-2-4-dev'.

Revision 4972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 31 14:39:10 2007 UTC (6 years ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 79929 byte(s)
Diff to previous 4924 , to selected 1138
Update database handling to save the last submitted answer to problems
for every preview or new page.

Revision 4924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 4 21:30:57 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 78687 byte(s)
Diff to previous 4923 , to selected 1138
Bug fixes: correct hideWork -> hide_work, and ensure version numbers
get appended to started tests.

Revision 4923 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 4 15:06:01 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 78680 byte(s)
Diff to previous 4921 , to selected 1138
Add set-level proctor login password for proctored gateway/quiz
assignments, improve handling of proctor keys and permissions for
proctored assignments, bug fixes for recently added features.

This commit
 - adds the ability to specify a set-level proctor for proctored
   gateway/quiz assignments.  this is done by adding a proctor with
   a username "set_id:setName", where "setName" is the name of the
   set, adding a "restricted_login_proctor" field to the set tables
   in the database, and allowing Authen::Proctor and
   ContentGenerator::LoginProctor to appropriately deal with this
   possibility.
 - updates proctor permissions and status in global.conf.dist,
   changing the old "proctor_quiz" permission level (3) into two
   levels, "proctor_quiz_login" and "proctor_quiz_grade".
   wwdb_upgrade includes a stanza to make this change to proctors
   that already exist in courses.
 - adds a "Proctor" status in %statuses in global.conf, with no
   valid behaviors.  this allows the creation of proctor users
   in a course who have the permissionLevel to login (and thus
   proctor), but not to access the course.
 - improves GatewayQuiz explanatory messages when scores or work
   are hidden.
 - improves GatewayQuiz proctor key management, especially for
   tests with more than one allowed attempt.  this includes
   adding a deleteAllProctorKeys() method to DB.pm.
 - updates Instructor Tools, UserList.pm and ProblemSetDetail
   to deal with set-level proctoring.  c.f. the note below about
   the ramifications of these changes.
 - updates ProblemSetList to deal with new problem set fields
   set_locations and set-level proctors that are located in a
   different database table than the set data.
 - fixes bugs in UserList and ProblemSetDetail dealing with the
   setting of hide_score, hide_score_by_problem, and
   time_limit_cap.

This update hides set-level proctor users from the classlist
editor (UserList.pm) and instructor tools (Index.pm) interfaces.
They can be created, modified, and deleted at the homework sets
editor page (ProblemSetDetail.pm) only, and there only implicitly:
we never indicate that a user is being created or modified behind
the screen.

Revision 4921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 2 19:57:39 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 77940 byte(s)
Diff to previous 4914 , to selected 1138
Update to add preliminary support for hiding scores on problems only.

Revision 4914 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 19:48:58 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 76636 byte(s)
Diff to previous 4908 , to selected 1138
More gateway fixes/additions.  This commit
  - moves javascript code for gateways into htdocs/js/gateway.js,
  - updates the gateway template to use that,
  - updates the gateway CSS file to use Louis Zulli's workaround
    for IE6 not honoring position:fixed, and adds CSS definitions
    for a score reporting box for multi-page, multi-attempt quizzes,
  - updates the GatewayQuiz module to print a score reporting box
    for multi-page, multi-attempt quizzes,
  - updates the Grades module to correctly sort problems for
    GatewayQuiz assignments that have randomly ordered problems, and
  - adds some error checking to ProblemSetDetail to avoid people
    doing things like submitting a zero time limit for a gateway.

Revision 4908 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 27 17:15:19 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 75393 byte(s)
Diff to previous 4891 , to selected 1138
Update to clean up some code and use the ContentGenerator level check
for set validity.  This update also updates indenting, standardizing
on a tab-based indent, which means that the diff will show almost all
of the code as changing.  Sorry about that.

Revision 4891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 22 13:28:46 2007 UTC (6 years, 2 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 77948 byte(s)
Diff to previous 4884 , to selected 1138
Comment out residual debugging "warn" statement.

Revision 4884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 15 22:06:16 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 77947 byte(s)
Diff to previous 4875 , to selected 1138
Fix state retention when previewing or checking answers by retaining
page but not worrying about preview or answer check.  Reduce PG
translation for multipage tests by only translating problems on
submission or as needed when checking.  Clean up some calls to get
problems so that db->getAll... problems calls are used.  Add course
logging for preview, newpage, and grading.  Add "Show Past Answers"
form/button as appropriate.

Please note: there is an interesting question about the order in
which problems are logged for the case when problems on a test/quiz
are ordered randomly.  In this case, the problems are logged in the
course answer_log in the order in which they appear on the test.
However, when viewing grades and student progress, at the moment
this is not the case.  In the long run we probably want the grades
page to conform to the order shown in the test, while we may want
the student progress page to match the order seen in the actual
test definition.  For the moment that's probably a bug.

Revision 4875 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 13 21:18:18 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 76200 byte(s)
Diff to previous 4872 , to selected 1138
Bug fixes in implementation of hide_score and hide_work.

Revision 4872 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 13 15:44:21 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 74233 byte(s)
Diff to previous 4865 , to selected 1138
Update to use hide_score and hide_work, adding new values and including
the new permissionLevel from global.conf.  In ProblemSets.pm also fix
hardcopy selector value for gateway tests.

Revision 4865 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 9 21:09:02 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 74079 byte(s)
Diff to previous 4860 , to selected 1138
Update for gateway parameters hide_score until set due date, hide_work
until set due date, and add time_limit_cap.

Revision 4860 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 21:50:05 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 73485 byte(s)
Diff to previous 4847 , to selected 1138
Intermediate commit.  This should speed up working on long multipage
tests by not translating pages that aren't on the current page unless
we're grading or checking the test.

There is still a bug in the GatewayQuiz module when dealing with
multipage, multiattempt tests, however.  Management of the grading/
previewing state isn't being handled correctly, so the logic for
that needs to be reworked.

Revision 4847 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 6 22:01:27 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 71146 byte(s)
Diff to previous 4839 , to selected 1138
Clean up code, completely rewrite output of test headers to simplify
logical structure.

Revision 4839 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 23:06:55 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 72891 byte(s)
Diff to previous 4810 , to selected 1138
Update to fix scoring of multipart problems.

Revision 4810 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 2 21:34:54 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 72792 byte(s)
Diff to previous 4802 , to selected 1138
Finish update for weighted problems; update to make attempts_per_version
work better for number of attempts greater than one.

Revision 4802 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 22:18:56 2007 UTC (6 years, 3 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 71933 byte(s)
Diff to previous 4695 , to selected 1138
Update GatewayQuiz ContentGenerator to use new NewSQL API, clean up some
comments, deal with bug where last answer would be saved when there
are no remaining allowed submissions, update to use maxAttempts == -1
instead of 0, update to try and deal with problems with weights
not equal to one (untested).

Revision 4695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 1 17:19:30 2006 UTC (6 years, 6 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 70489 byte(s)
Diff to previous 4566 , to selected 1138
Add hide_score and hide_work functions, allowing suppression of the
display of the score on the assignment and/or the work the student
submitted.  Also updates the treatment of due and answer_date fields.
Now setting the due and answer dates to the same time will (should?)
make answers available once the test is completed (e.g., all attempts
are exhausted); setting the answer date to after the due date leaves
the correct answers unavailable until a similar time has passed from
when the test is completed.  And the problem/page jump links are
cleaned up to be more concise for multipage tests.

Revision 4566 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 11 16:15:50 2006 UTC (6 years, 8 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 69395 byte(s)
Diff to previous 4515 , to selected 1138
remove unused reference to findDefaults

Revision 4515 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 25 16:10:36 2006 UTC (6 years, 8 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 69407 byte(s)
Diff to previous 4504 , to selected 1138
Gateway update: be more aware of undefined fields for gateway parameters.
I don't think this should be an issue, but saw a case where an "undefined
value in subtraction" error was being returned; hopefully this will
provide some level of protection against that.

Revision 4504 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 18 18:04:11 2006 UTC (6 years, 9 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 69146 byte(s)
Diff to previous 4332 , to selected 1138
use before/after/between from Utils.pm

Revision 4332 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 3 15:20:18 2006 UTC (6 years, 10 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 69487 byte(s)
Diff to previous 4327 , to selected 1138
GatewayQuiz update: improve timer, update error messages when overtime,
maybe some other minor changes I can't think of.

Revision 4327 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 1 22:02:50 2006 UTC (6 years, 10 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 69327 byte(s)
Diff to previous 4316 , to selected 1138
GatewayQuiz update: revise timer to make display more elegant and
robust.

Revision 4316 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 28 20:08:54 2006 UTC (6 years, 10 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 68796 byte(s)
Diff to previous 4307 , to selected 1138
GatewayQuiz update: use PGrandom to randomly order problems when that is
called for (avoids using srand() repeatedly).

Revision 4307 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 27 20:40:12 2006 UTC (6 years, 10 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 68615 byte(s)
Diff to previous 4306 , to selected 1138
GatewayQuiz update for multiple page tests; bug fix, adds better preview/
problem checking state retention when switching between pages.

Revision 4306 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 27 15:49:23 2006 UTC (6 years, 10 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 68588 byte(s)
Diff to previous 4235 , to selected 1138
GatewayQuiz preliminary commit adding multi-page test capability.
This requires updating the database to add the problems_per_page
record to the set tables of the database.

Revision 4235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 12 01:23:54 2006 UTC (6 years, 11 months ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 63066 byte(s)
Diff to previous 4202 , to selected 1138
Converting from use CGI to use WeBWorK::CGI

The only substantial change is in Hardcopy where set_id was changed to "sid"

I believe that change is correct.

Revision 4202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 8 14:07:35 2006 UTC (6 years, 11 months ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 63040 byte(s)
Diff to previous 4071 , to selected 1138
Try using the -nosticky pragma to see if this fixes the problem.

Revision 4071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 00:31:06 2006 UTC (7 years, 1 month ago) by dpvc
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 63032 byte(s)
Diff to previous 4049 , to selected 1138
Fix jsMath output in the answer preview when the student answer
conains < or > (make sure they don't look like tags).

Revision 4049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 12 18:51:21 2006 UTC (7 years, 2 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 62973 byte(s)
Diff to previous 4015 , to selected 1138
Support for new Authen class:

* Use new Authen::Proctor subclass for proctor verification rathern than old
  verifyProctor method of Authen.

Revision 4015 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 7 21:03:25 2006 UTC (7 years, 4 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 62971 byte(s)
Diff to previous 3973 , to selected 1138
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, 4 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 63022 byte(s)
Diff to previous 3852 , to selected 1138
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 3852 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 22 18:50:06 2005 UTC (7 years, 5 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 63022 byte(s)
Diff to previous 3842 , to selected 1138
Gateway update: fix typo.

Revision 3842 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 21 23:23:58 2005 UTC (7 years, 5 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 63040 byte(s)
Diff to previous 3768 , to selected 1138
Gateway update: fix a number of quiet bugs
  - deal with sets having no problems
  - add grace period read from conf file when determining test time expiration
  - retain consistent current time throughout processing
  - improved messages for tests running over time
  - add score and time messages to finished sets
  - save version_last_attempt_time for submitted sets that run over time

Revision 3768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 18 18:30:12 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 58532 byte(s)
Diff to previous 3767 , to selected 1138
give the style used for the attempt results summary a structural name
(attemptResultsSummary) rather than a sort-of-stylistic name (emphasis).

Revision 3767 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 18 18:13:25 2005 UTC (7 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 58519 byte(s)
Diff to previous 3642 , to selected 1138
Use optionsMacro for options like we do in Problem.pm. This reduces the
amount of (but doesn't eliminate) duplicated code between Problem and
GatewayQuiz.

Revision 3642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 21 18:25:52 2005 UTC (7 years, 8 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 59907 byte(s)
Diff to previous 3485 , to selected 1138
added "use WeBWorK::Debug" to allow debug() statements to work.

Revision 3485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 12 02:47:30 2005 UTC (7 years, 10 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 59889 byte(s)
Diff to previous 3377 , to selected 1138
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, 11 months ago) by glarose
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 60014 byte(s)
Diff to previous 3357 , to selected 1138
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 3357 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 5 18:56:12 2005 UTC (7 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 22516 byte(s)
Diff to previous 1877 , to selected 1138
renamed "problem set" to "homework set" in page content.
closes bug #797.

Revision 1877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 11 03:27:11 2004 UTC (9 years, 3 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 22520 byte(s)
Diff to previous 1841 , to selected 1138
updated to use the "unified request" object.
this file needs quite a bit of refactoring (along with Problem.pm).

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/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 23119 byte(s)
Diff to previous 1693 , to selected 1138
changed template escape handler functions to grab data from $r->urlpath
instead of @_ for compatability with dispatch_new.

Revision 1693 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 31 03:28:13 2003 UTC (9 years, 5 months ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 22845 byte(s)
Diff to previous 1667 , to selected 1138
made changes in checking for permissionLevel so that zero
was recognized as a legitimate level.
--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/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 22828 byte(s)
Diff to previous 1663 , to selected 1138
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/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 21661 byte(s)
Diff to previous 1639 , to selected 1138
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 1639 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 19 18:48:57 2003 UTC (9 years, 7 months ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 21004 byte(s)
Diff to previous 1149 , to selected 1138
Made minor modifications so that GatewayQuiz would run again.  It hadn't
been tested for months and other parts of the system had moved on.
This is still very much a mockup for delivering gateway quizzes.
--Mike

Revision 1149 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 12 20:06:20 2003 UTC (10 years ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 20567 byte(s)
Diff to previous 1138
replaced tempdir() with makeTempDirectory()
-sam

Revision 1138 - (view) (download) (as text) (annotate) - [selected]
Modified Thu Jun 12 19:02:59 2003 UTC (10 years ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 20583 byte(s)
Diff to previous 1129
The GatewayQuiz can be reached by using the url

courseName/quiz_mod/setNumber

It will produce the entire set as a quiz.  Recording functions, and the
ability to limit the number of entries have not yet been implemented.

--Mike

Revision 1129 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Jun 11 19:30:51 2003 UTC (10 years ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
File length: 12723 byte(s)
Diff to selected 1138
This presents an entire set as a quiz.  to be done:
(1) The answer presentation has to be filled in.
(2) Changes to PG.pl and the environment variables have to be made so that different
answers don't collide. The idea is to prefix all answers with something indicating the
problem number e.g.  pRoBlEm04-AnSwEr05  I think it better to pass in an explicit
variable rather than rely on problem numbers.
(3) should this work automatically for NAMED_ANS as well?  Pro: --it's done for you.
  Con: You can't refer to answers in other parts of the quiz. (Put perhaps you
shouldn't to promote atomic behavior.)
--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