Log of /trunk/webwork2/lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
Parent Directory
Revision
7041 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Sep 10 02:39:37 2011 UTC (20 months, 1 week ago) by
gage
File length: 87686 byte(s)
Diff to
previous 6936
May have fixed problem where gateway quiz labels don't show up.
It may be that the interactive link should also be wrapped in a label.
Revision
6775 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Apr 2 01:37:48 2011 UTC (2 years, 1 month ago) by
gage
File length: 87673 byte(s)
Diff to
previous 6668
changes inclued
changing published to visible throughout (except for database entries which are not changed)
adding library browser 2
correct and incorrect answers are now color coded
depths table is now in database.conf schema
removed some extraneous files
sets are automatically assigned to author when created (without alert message)
misc fixes
Revision
6635 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Dec 12 19:04:10 2010 UTC (2 years, 5 months ago) by
gage
File length: 87631 byte(s)
Diff to
previous 6632
change calls to use Safe.pm to use WWSafe.pm
closed security hole in ProblemSetDetail.pm
other small improvements brought in from gage_dev
Revision
6282 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 27 14:02:19 2010 UTC (2 years, 11 months ago) by
glarose
File length: 87247 byte(s)
Diff to
previous 5834
Correct logical bug in GatewayQuiz module that didn't honor
time_limit_cap, gracefully deal with null values of problem_value
in the database (which occurs when creating a set from the Library
Browser), round reported allowed time (which may be useful when
time_limit_cap is specified).
Revision
5777 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 25 14:41:00 2008 UTC (4 years, 10 months ago) by
glarose
File length: 86954 byte(s)
Diff to
previous 5720
GatewayQuiz: allow problem preview from problem editor. (Allows
input set as Undefined_Set and creates a fake one problem
assignment.)
Revision
5720 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 23 19:54:46 2008 UTC (4 years, 10 months ago) by
glarose
File length: 83479 byte(s)
Diff to
previous 5718
GatewayQuiz: adds ability to create new set versions when acting as
a student, cleans up minimization of data saving.
Revision
5712 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 20 19:55:21 2008 UTC (4 years, 10 months ago) by
glarose
File length: 81071 byte(s)
Diff to
previous 5319
Update to minimize the data that are saved when a new version of a
gateway assignment is created. This allows things like set invisibility
to propagate to all set versions that have been created, and cleans
up the stored data.
Revision
4923 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 4 15:06:01 2007 UTC (6 years, 1 month ago) by
glarose
File length: 78680 byte(s)
Diff to
previous 4921
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
4914 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 29 19:48:58 2007 UTC (6 years, 1 month ago) by
glarose
File length: 76636 byte(s)
Diff to
previous 4908
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, 1 month ago) by
glarose
File length: 75393 byte(s)
Diff to
previous 4891
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
4884 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 15 22:06:16 2007 UTC (6 years, 2 months ago) by
glarose
File length: 77947 byte(s)
Diff to
previous 4875
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
4872 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Mar 13 15:44:21 2007 UTC (6 years, 2 months ago) by
glarose
File length: 74233 byte(s)
Diff to
previous 4865
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, 2 months ago) by
glarose
File length: 74079 byte(s)
Diff to
previous 4860
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, 2 months ago) by
glarose
File length: 73485 byte(s)
Diff to
previous 4847
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
4810 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 2 21:34:54 2007 UTC (6 years, 2 months ago) by
glarose
File length: 72792 byte(s)
Diff to
previous 4802
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, 2 months ago) by
glarose
File length: 71933 byte(s)
Diff to
previous 4695
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, 5 months ago) by
glarose
File length: 70489 byte(s)
Diff to
previous 4566
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
4515 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 25 16:10:36 2006 UTC (6 years, 7 months ago) by
glarose
File length: 69407 byte(s)
Diff to
previous 4504
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
4332 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 3 15:20:18 2006 UTC (6 years, 9 months ago) by
glarose
File length: 69487 byte(s)
Diff to
previous 4327
GatewayQuiz update: improve timer, update error messages when overtime,
maybe some other minor changes I can't think of.
Revision
4316 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 28 20:08:54 2006 UTC (6 years, 9 months ago) by
glarose
File length: 68796 byte(s)
Diff to
previous 4307
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, 9 months ago) by
glarose
File length: 68615 byte(s)
Diff to
previous 4306
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, 9 months ago) by
glarose
File length: 68588 byte(s)
Diff to
previous 4235
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, 10 months ago) by
gage
File length: 63066 byte(s)
Diff to
previous 4202
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
4049 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 12 18:51:21 2006 UTC (7 years, 1 month ago) by
sh002i
File length: 62973 byte(s)
Diff to
previous 4015
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, 3 months ago) by
sh002i
File length: 62971 byte(s)
Diff to
previous 3973
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: 63022 byte(s)
Diff to
previous 3852
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
3842 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Dec 21 23:23:58 2005 UTC (7 years, 4 months ago) by
glarose
File length: 63040 byte(s)
Diff to
previous 3768
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, 6 months ago) by
sh002i
File length: 58532 byte(s)
Diff to
previous 3767
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, 6 months ago) by
sh002i
File length: 58519 byte(s)
Diff to
previous 3642
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
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: 59889 byte(s)
Diff to
previous 3377
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: 60014 byte(s)
Diff to
previous 3357
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
1841 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 4 21:05:58 2004 UTC (9 years, 2 months ago) by
sh002i
File length: 23119 byte(s)
Diff to
previous 1693
changed template escape handler functions to grab data from $r->urlpath
instead of @_ for compatability with dispatch_new.
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: 22828 byte(s)
Diff to
previous 1663
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: 21661 byte(s)
Diff to
previous 1639
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, 6 months ago) by
gage
File length: 21004 byte(s)
Diff to
previous 1149
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
1138 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 12 19:02:59 2003 UTC (9 years, 11 months ago) by
gage
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 (9 years, 11 months ago) by
gage
File length: 12723 byte(s)
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.