Log of /branches/gage_dev/webwork2/lib/WeBWorK/ContentGenerator
Directory Listing
Revision
6659 -
Directory Listing
Modified
Thu Dec 30 17:09:00 2010 UTC (2 years, 4 months ago) by
gage
Added ability to color code the answers
Revision
6658 -
Directory Listing
Modified
Thu Dec 30 17:08:43 2010 UTC (2 years, 4 months ago) by
gage
added comments -- cosmetic changes while studying best way
to impliment tikz image generator -- we'll probably
model it on ImageGenerator rather than on Hardcopy.pm
Revision
6655 -
Directory Listing
Modified
Tue Dec 28 17:49:32 2010 UTC (2 years, 4 months ago) by
gage
changed all occurences of "published" to "visible" and of "unpublished" to "hidden"
also modified database.conf.dist so that visible is aliased to "published".
thus the database reference remains "published" but everything else is changed.
Next project: create an easy automatic upgrade of tables to change field name from
"published" to "visible" and then change back the database.conf.dist
Revision
6654 -
Directory Listing
Modified
Tue Dec 28 03:47:48 2010 UTC (2 years, 4 months ago) by
gage
replace many warnings by $self->addbadmessage
move some actions into the pre_header_initialize initialize routines so that
the error messages appear properly at the top of the page.
This commit may still have some bugs.
Revision
6653 -
Directory Listing
Modified
Tue Dec 28 03:45:42 2010 UTC (2 years, 4 months ago) by
gage
don't ask -- just automatically assign newly created set to current user
Revision
6652 -
Directory Listing
Modified
Tue Dec 28 03:44:12 2010 UTC (2 years, 4 months ago) by
gage
automatically assign newly created sets to current user
Revision
6651 -
Directory Listing
Modified
Tue Dec 28 03:40:29 2010 UTC (2 years, 4 months ago) by
gage
insure that dates are numeric in comparison
Revision
6628 -
Directory Listing
Modified
Wed Dec 8 00:01:49 2010 UTC (2 years, 5 months ago) by
gage
changed all references to Safe to WWSafe just to be "safe"
fixed security hole in file paths for Problem Set Detail
uploaded changes to setmaker 2 from dg_dev. includes holding shift key down (before)
you move a file in order to move it rather than to add it.
Revision
6623 -
Directory Listing
Modified
Sat Dec 4 00:20:39 2010 UTC (2 years, 5 months ago) by
gage
upload corrections from dg_dev
Revision
6614 -
Directory Listing
Modified
Fri Dec 3 16:53:09 2010 UTC (2 years, 5 months ago) by
gage
added latest features for the library browser 2 from dg_dev
Revision
6611 -
Directory Listing
Modified
Fri Dec 3 01:42:34 2010 UTC (2 years, 5 months ago) by
gage
initialize some things to prevent error messages.
Revision
6583 -
Directory Listing
Modified
Tue Nov 30 19:27:13 2010 UTC (2 years, 5 months ago) by
gage
remove warning message
add suggestion for server_root_url and so forth.
Revision
6580 -
Directory Listing
Modified
Sat Nov 27 14:42:24 2010 UTC (2 years, 5 months ago) by
gage
fixed use APR::Request::Error problem
merged fixes from dg_dev
Revision
6575 -
Directory Listing
Modified
Fri Nov 26 18:53:39 2010 UTC (2 years, 5 months ago) by
gage
merged with dg_dev -- added problem counter
Revision
6571 -
Directory Listing
Modified
Thu Nov 25 20:28:12 2010 UTC (2 years, 5 months ago) by
gage
changing from use Safe.pm to use WWSafe.pm
Revision
6566 -
Directory Listing
Modified
Thu Nov 25 19:19:30 2010 UTC (2 years, 5 months ago) by
gage
merge with trunk
Revision
6558 -
Directory Listing
Modified
Tue Nov 23 22:20:41 2010 UTC (2 years, 6 months ago) by
gage
changed WWSafe.pm back to Safe.pm
updated library browser 2
Revision
6543 -
Directory Listing
Modified
Sun Nov 21 00:18:35 2010 UTC (2 years, 6 months ago) by
gage
updates merged from Trunk
Revision
6522 -
Directory Listing
Modified
Fri Nov 12 13:43:17 2010 UTC (2 years, 6 months ago) by
gage
comment out print statment
Revision
6511 -
Directory Listing
Modified
Thu Nov 11 16:19:36 2010 UTC (2 years, 6 months ago) by
gage
moved Safe.pm to WWSafe.pm
added support for SetMaker2.pm
Revision
6491 -
Directory Listing
Modified
Sat Nov 6 20:38:03 2010 UTC (2 years, 6 months ago) by
gage
cosmetic changes
Revision
6478 -
Directory Listing
Modified
Thu Nov 4 01:22:28 2010 UTC (2 years, 6 months ago) by
gage
changes to configuration for external editor. Should make setup easier.
Revision
6469 -
Directory Listing
Modified
Wed Oct 13 15:18:32 2010 UTC (2 years, 7 months ago) by
gage
remove conflict chevrons from revision copy of Hardcopy.pm
Revision
6468 -
Directory Listing
Modified
Wed Oct 13 15:17:21 2010 UTC (2 years, 7 months ago) by
gage
modify configuration code for independent editor
Revision
6464 -
Directory Listing
Modified
Tue Oct 12 00:41:53 2010 UTC (2 years, 7 months ago) by
gage
fixed formatting
Revision
6462 -
Directory Listing
Modified
Tue Oct 12 00:20:57 2010 UTC (2 years, 7 months ago) by
gage
enable MathJax
Revision
6461 -
Directory Listing
Modified
Tue Oct 12 00:20:23 2010 UTC (2 years, 7 months ago) by
gage
protect against bug in CGI.pm -- one of these two lines should work depending on verison of CGI.
the symptom is that when editing a student their permission level reverts to guest. It is because
the level of "student" is 0 and pop-up menu has difficulties dealing with that.
Revision
6447 -
Directory Listing
Modified
Tue Sep 28 12:32:18 2010 UTC (2 years, 7 months ago) by
gage
updated changes in Save and Save AS button from trunk
Revision
6445 -
Directory Listing
Modified
Tue Sep 28 00:17:00 2010 UTC (2 years, 7 months ago) by
gage
removed some warning messages that are no longer needed.
Revision
6443 -
Directory Listing
Modified
Tue Sep 28 00:03:21 2010 UTC (2 years, 7 months ago) by
gage
Factored out some of the grading aspects in Grades.pm and StudentProgress.pm
The grade_sets routines in those two files are not quite compatible yet but they are getting closer.
In tandem with this I also created a module for WebworkSOAP.pm which ships grades for gateway quizzes
to Moodle in addition to grades from homework sets. It chooses the last of the versioned sets
if one has taken more than one auiz. (A useful enhancement would be to change this to allow one to take the
maximum of the tests taken.)
In the process I commented out the "Ind" Indicator column in the displays since this does little except
confuse people.
There is still room for more consolidation among the grading routines in Grades.pm, StudentProgress.pm,
Scoring.pm and probably Statistics.pm and WebworkSOAP.pm
Revision
6435 -
Directory Listing
Modified
Thu Sep 16 15:38:35 2010 UTC (2 years, 8 months ago) by
gage
Cleaning things up by replacing references to psvnNumber by psvn (which is less redundant)
Revision
6425 -
Directory Listing
Modified
Tue Sep 14 14:44:55 2010 UTC (2 years, 8 months ago) by
gage
added mathJax code
Revision
6414 -
Directory Listing
Modified
Tue Sep 7 20:16:48 2010 UTC (2 years, 8 months ago) by
gage
This check keeps the gateway quiz from hanging when bad data has been entered.
This may not be the optimal fix.
Revision
6413 -
Directory Listing
Modified
Tue Sep 7 20:08:24 2010 UTC (2 years, 8 months ago) by
gage
check "print student answers" by default.
Revision
6409 -
Directory Listing
Modified
Fri Sep 3 17:42:49 2010 UTC (2 years, 8 months ago) by
gage
added comment to ProblemsSets.pm
changed calls in GatewayQuiz to uniformly call
the formatDateTime() in ContentGenerator.pm (by inheritance)
Revision
6401 -
Directory Listing
Modified
Thu Sep 2 13:31:59 2010 UTC (2 years, 8 months ago) by
gage
allow printStudentAnswers at any time (separated from showCorrectAnswers)
Revision
6358 -
Directory Listing
Modified
Mon Jul 12 04:10:52 2010 UTC (2 years, 10 months ago) by
gage
merged the feature which allows instructor to archive his own course (from trunk).
Revision
6356 -
Directory Listing
Modified
Mon Jul 12 03:59:39 2010 UTC (2 years, 10 months ago) by
gage
Fixed minor bugs in fformatting the timestamp to conform to the local time zone.
Simplified use of formatDateTime
corrected address in the link to bugzilla
Revision
6320 -
Directory Listing
Modified
Wed Jul 7 01:30:33 2010 UTC (2 years, 10 months ago) by
gage
Provide new channels for reporting warnings in Problem.pm, allow @ in user ids in DB.pm and clean up alarm for TIMEOUTS in Local.pm
Revision
6310 -
Directory Listing
Modified
Tue Jun 29 12:24:14 2010 UTC (2 years, 10 months ago) by
gage
Corrected typo which prevented the course names listed on the front page of admin from
being linked to their courses.
Revision
6304 -
Directory Listing
Modified
Tue Jun 22 20:42:23 2010 UTC (2 years, 11 months ago) by
gage
corrected an issue in Problem.pm where answers which were not MathObjects didn't have a prepared
correct_ans_latex string. In this case use the unformatted correct_ans string instead
Revision
6299 -
Directory Listing
Modified
Tue Jun 22 14:46:58 2010 UTC (2 years, 11 months ago) by
gage
test development branch
Revision
6285 -
Directory Listing
Modified
Sat May 29 12:43:20 2010 UTC (2 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
check that a tex output actually exists before typesetting the correct answer.
This effort is still a hack. Problem.pm needs to be written from the ground up.
Revision
6284 -
Directory Listing
Modified
Fri May 28 21:29:48 2010 UTC (2 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added tooltip for the answer preview -- this shows the actual entry -- with this we could get rid of the
first "parsed" entry in each row, saving some space. Something similar (but more complicated) would give
us a tooltip showing the typeset version of the correct answer. (We want the untypeset version to be
available for cutting and pasting when instructors are checking problems for correctness so the method ("title" attribute) used
for the answer preview won't work.
Revision
6282 -
Directory Listing
Modified
Thu May 27 14:02:19 2010 UTC (2 years, 11 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
6272 -
Directory Listing
Modified
Thu May 20 12:11:23 2010 UTC (3 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Insure that error files can be read from the web even if the files are served using
lighttpd and port 8080 instead of the main server.
This adds group readable and executable permissions to the working directory for creating the tex files.
Revision
6260 -
Directory Listing
Modified
Sat May 15 18:22:35 2010 UTC (3 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added useless reference to @LimitedPolynomial::BOP::ISA to the end of the dispatcher in WeBWorK.pm
to stop warning messages such as these:
[Sat May 15 14:33:35 2010] [warn] [client 127.0.0.1] [/webwork2/gage_course/test_set/6/] Can't locate package LimitedPolynomial::BOP for @LimitedPolynomial::BOP::power::ISA at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 115., referer: http://localhost/webwork2/gage_course/test_set/6/
No explanation for the warning messages nor as to why this stops them.
contextLimitedVector.pl is similar and does not create similar warning messages.
Revision
6186 -
Directory Listing
Modified
Sat Jan 23 21:48:26 2010 UTC (3 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Corrects bug (uncovered by newer versions of CGI.pm after version 3.29 and before 3.42) which defaulted
students to "guests" in the permission popup menu used for editing the student record. It showed up
only for student because there default value was 0 -- which can be treated ambiguously -- as opposed to
2 or 10 which is not.
Adding the override switch forces the default value generated in the perl code to override other default
values for the popupmenu and provides the expected behavior.
The default value is set as [$default] so that [0] is properly recognized. This notation is usually used to select several
defaults however just using $default did not work in CGI.pm 3.42.
This should fix the bug where students were mysteriously reassigned as guests and lost their "submit answer" buttons.
sites with older versions of CGI.pm will not have observed this problem.CVS: ----------------------------------------------------------------------
Revision
6180 -
Directory Listing
Modified
Mon Jan 11 18:28:13 2010 UTC (3 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fix to prevent the error messages that occur when the problem set has
not yet been assigned to a user.
Still a bit fragile and under tested but it at least stops the error
messages from being issued.
Revision
6173 -
Directory Listing
Modified
Thu Dec 17 03:55:01 2009 UTC (3 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Minor change to PGProblemEditor.pm to define DEFAULT_SEED
Major bug fix for ProblemSetDetail (but 1725)
Enforces all files assigned in ProblemSetDetail module to be accessible
through the course temp directory.
Fix is one line change near, line 1576
Revision
6149 -
Directory Listing
Modified
Sat Oct 17 15:53:19 2009 UTC (3 years, 7 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Implement a Reduced Scoring Period. The Reduced Scoring Period is a period before the due date during which all additional work done by the student counts at a reduced rate.
Revision
6115 -
Directory Listing
Modified
Wed Sep 30 14:22:09 2009 UTC (3 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Corrects bug (uncovered by newer versions of CGI.pm after version 3.29 and before 3.42) which defaulted
students to "guests" in the permission popup menu used for editing the student record. It showed up
only for student because there default value was 0 -- which can be treated ambiguously -- as opposed to
2 or 10 which is not.
Adding the override switch forces the default value generated in the perl code to override other default
values for the popupmenu and provides the expected behavior.
This should fix the bug where students were mysteriously reassigned as guests and lost their "submit answer" buttons.
sites with older versions of CGI.pm will not have observed this problem.
Revision
6114 -
Directory Listing
Modified
Fri Sep 25 00:39:49 2009 UTC (3 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Hide from students most of the errors created when the hardcopy version can't be
TeX'd or created for some other reason. The professor still gets the errors.
A value in global.conf
download_hardcopy_view_errors =>"professor",
adjusts who sees the hardcopy errors. global.conf.dist has been changed to
include this entry.
Revision
6097 -
Directory Listing
Modified
Sat Aug 29 16:12:16 2009 UTC (3 years, 8 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
This fixes the bug reported Blake Thornton
Hardcopy Error
by Blake Thornton - Thursday, 27 August 2009, 09:47 PM
# when students don't select any sets the size of @setIDs is 1 with a null character in $setIDs[0].
# when professors don't select any sets the size of @setIDs is 0.
# the following test "unless ((@setIDs) and ($setIDs[0] =~ /\S+/))" catches both cases and prevents
# warning nessages in the case of a professor's empty array.
Revision
6088 -
Directory Listing
Modified
Thu Jul 23 13:52:56 2009 UTC (3 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added buttons with onClick javaScript code that will
(1) Check all checkboxes in user list or in homework set list
or (2) uncheck all the checkboxes in user list or in homework set list
Revision
6086 -
Directory Listing
Modified
Sat Jul 18 02:52:51 2009 UTC (3 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Aded effectivePermissionLevel to the PG environment
-- the permission level of the effectiveUser, the user to which the question has been assigned.
Changed the printing of the path to files in
beginproblem() so that it is shown if the effectivePermissionLevel is higher than
the "PRINT_FILE_NAMES_PERMISSION_LEVEL" value. This responds to user requests that make it easier for an
instructor to print hardcopy for the student.
Revision
6084 -
Directory Listing
Modified
Sun Jul 12 23:56:16 2009 UTC (3 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added changes to the save modes:
prepend the suggested save string with local
add the choice of saving this to a new file and adding it on to the end of the current set.
Revision
6041 -
Directory Listing
Modified
Thu Jun 4 01:34:53 2009 UTC (3 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a feature which allows connection of "email instructor" feature to MathNerds.
Specifically the reference to the $pg object is passed back to the feedbackMacro as a parameter.
Revision
6007 -
Directory Listing
Modified
Sat Feb 14 16:51:56 2009 UTC (4 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Reverse the order in which site_info and login_info appear on the page.
Once again login_info appears first.
This was inadvertently switched when I updated Login a few days ago.
Revision
5986 -
Directory Listing
Modified
Wed Feb 4 03:15:51 2009 UTC (4 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added code to check the directory structure of the courses (make sure all standard
directories are present and have rwx privileges available to the webserver.
No automatic repair of the directory structure is performed. (We'll see how annoying that is.)
Revision
5966 -
Directory Listing
Modified
Wed Jan 14 13:39:47 2009 UTC (4 years, 4 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make the Prob. List. button inactive when used on an Undefined_Set
(i.e., in the Library Browser). This prevents an error page when an
instructor clicks on the button rather than going back to the Library
Browser page.
Revision
5846 -
Directory Listing
Modified
Thu Jul 10 15:00:31 2008 UTC (4 years, 10 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
ProblemSetDetail: correct typo in grouping set message, don't show
problem seeds for usersets of gateway assignments (because the seeds
there aren't used for anything; only the version's seeds matter).
Revision
5836 -
Directory Listing
Modified
Tue Jul 1 13:18:52 2008 UTC (4 years, 10 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
SetMaker: update to make problems that are "tried" display according
to the assignment type of the selected set. We may want to back this
change out at some point: because the set type is determined when the
page is built, changing the selected set doesn't change how viewed
problems are displayed until the page is reloaded. I think the
behavior introduced by this patch is better than showing all problems
as homework problems, but it may be otherwise.
Revision
5715 -
Directory Listing
Modified
Sat Jun 21 16:33:53 2008 UTC (4 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Pass permissionLevel to the PG question environment
allows the question to behave differently if the actual viewer is an
instructor. (The effectiveUser is the student for whom the
question was constructed -- the user -- is the person viewing the problem
which might be the student or it might be an instructor acting as the student
The permissionLevel is the one assigned to the "user".
Revision
5712 -
Directory Listing
Modified
Fri Jun 20 19:55:21 2008 UTC (4 years, 11 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
5710 -
Directory Listing
Modified
Fri Jun 20 19:52:55 2008 UTC (4 years, 11 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow instructors to edit versions of an assignment. This requires
that the input setID have ,vN appended, where N is the version number
to edit. The ability to edit and try problems from gateway tests
remains problematic, however.
Revision
5704 -
Directory Listing
Modified
Thu Jun 19 19:05:00 2008 UTC (4 years, 11 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Gateway cleanup: make mark correct function mark all set versions
correct for gateway tests, take max attempts option out of problem
selectors for gateways (this should be strictly a function of the
set-level versions_per_interval).
Revision
5679 -
Directory Listing
Modified
Fri May 23 14:54:46 2008 UTC (5 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Moved trim_spaces utility from AddUsers.pm to Utils.pm (data munger section)
CourseAdmin page now calls trim_spaces to clean up data entered when creating
a new course (spaces at beginning and end of entry are trimmed). This addresses
bug #1442
Revision
5678 -
Directory Listing
Modified
Fri May 23 14:51:03 2008 UTC (5 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
modifications to the <body> tag and to the
submit tag so that applets are triggered upon submission of the
problem. This is still a work in progress -- the timing issues
with applets appear to be significant.
Revision
5666 -
Directory Listing
Modified
Fri May 9 11:55:17 2008 UTC (5 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a few more cosmetic tweaks to the text and to the execution flow.
This registration is now acceptable except that the questions asked in the email
need to be examined more closely.
A later version might allow for automatic registration.
Revision
5664 -
Directory Listing
Modified
Fri May 9 00:27:04 2008 UTC (5 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a banner which asks users to register production servers.
Clicking on the "register button" brings up a page with a mailto: link.
and a "server site registered" button. Clicking on the mailto link brings
up the administrator's email application with suggested information to be emailed
to gage@math.rochester.edu (for now -- later we can replace this with an alias mail
address and eventually with some sort of form and a database for the recipient.)
Clicking on the "server site registered" button creates an empty file
courses/admin/registered_2.4.5
where 2.4.5 is the current version number found in WeBWorK.
if this file is present the "please register" banner goes away.
It's just a first cut at tackling this problem.
p
Revision
5644 -
Directory Listing
Modified
Sat Apr 26 23:13:59 2008 UTC (5 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed join("\0",....) to join(\0, ....) since I'm pretty sure that what was desired
was a string separated by nulls. If one of the items in the list began with a number eg 14
you would get \014....\0name...\0 etc. I think \0name evaluates properly but I'm pretty
sure that \014 does not.
Revision
5637 -
Directory Listing
Modified
Tue Apr 22 11:44:27 2008 UTC (5 years, 1 month ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed references to "feedback" to "email instructor", "cancel email" and so
forth for consistency. This was in response to a suggestion by Bob Palais at
University of Utah.
-- Mike
Revision
5636 -
Directory Listing
Modified
Tue Apr 22 11:40:18 2008 UTC (5 years, 1 month ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed bug #1435 which prevented showHints and showSolutions from working.
Added -value =>1 to the checkbox items so that they return numeric
values rather than "on".
Revision
5629 -
Directory Listing
Modified
Fri Apr 4 19:22:30 2008 UTC (5 years, 1 month ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
When viewing a file-based problem library, don't show to problem
library's prefix in the "select a problem collection" popup. This can
significantly shorten the length of the options in that popup, making
them more managable.
Revision
5617 -
Directory Listing
Modified
Thu Mar 13 22:22:23 2008 UTC (5 years, 2 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add $feedback_by_section option:
# If this value is true, feedback will only be sent to users with the same
# section as the user initiating the feedback.
$feedback_by_section = 0;
Revision
5605 -
Directory Listing
Modified
Fri Jan 25 23:34:23 2008 UTC (5 years, 3 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add "disabled" previous and next buttons so that a student who clicks
on the next button on the first problem and then clicks again
(expecting another next) doesn't get "up" by accident.
Revision
5507 -
Directory Listing
Modified
Fri Sep 14 15:21:54 2007 UTC (5 years, 8 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Bug fix. Both the proctored test template and all taken versions of the
test were being dropped from the ProblemSets page when the user didn't
have the auth level to view proctored tests.
Revision
5466 -
Directory Listing
Modified
Sat Sep 8 21:15:16 2007 UTC (5 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fix DOS and Mac line endings, and make the detection of non-text files
a little more strict (DOS files were being marked as non-text).
Also, localize the file handles.
Revision
5412 -
Directory Listing
Modified
Fri Aug 24 18:39:49 2007 UTC (5 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Extended the set definition file format to support commas in the
source_file field (as well was the value and max_attempts fields).
Commas are backslash escaped: \,
To get a literal backslash: \\
Revision
5326 -
Directory Listing
Modified
Tue Aug 14 20:16:16 2007 UTC (5 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
bug fix: somehow I seem to have mixed up the logic in the message that
gets displayed on the sets page for tests that are still open/over time.
Sam: if you can get this into 2.4, that'd be great. Thanks.
Revision
5322 -
Directory Listing
Modified
Tue Aug 14 13:50:34 2007 UTC (5 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
bug fix. when updating to hide set header display I assumed that
the $db->getMergedSet($userToShow, $setID) would succeed, which isn't
the case for a set that isn't assigned to any users (in particular,
which isn't assigned to the instructor who is editing the set). this
bug fix resolves that by instead using the global set to determine if
headers should be displayed when the call to get the merged set fails.
Revision
5314 -
Directory Listing
Modified
Mon Aug 13 14:16:11 2007 UTC (5 years, 9 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Backing out of Mike's change to previewAnswers. Setting that to 0
means the grader will not be run when the problem is first shown, and
that means the notes provided by the grader (like "You can earn
partial credit on this problem") won't be shown until the student
first provides an answer. These messages are important, particularly
for sequential problems, and so need to appear even when the problem
is first shown, not just when answers have been submitted.
If Mike had another reason than just efficiency for not processing
answers on the first invocation of a problem, that will need to be
handled in a more sophisticated way.
Revision
5258 -
Directory Listing
Modified
Thu Aug 9 17:24:33 2007 UTC (5 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
forward-port (gage): Don't processAnswers the first time a page is
viewed. (Process answers only if the submitAnswers, previewAnswers or
checkAnswers button has been pressed.)
Revision
5254 -
Directory Listing
Modified
Thu Aug 9 14:55:23 2007 UTC (5 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update ProblemSet editing to take out editing of set headers for
gateway tests; this is a bit of a hack to deal with the problem
that editing/trying the set header fails for a gateway test. In
that the set header file isn't used for gateway tests I think this
is probably reasonable behavior.
Revision
5221 -
Directory Listing
Modified
Thu Jul 26 18:53:08 2007 UTC (5 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Construct additional course environments using %WeBWorK::SeedCE, which
will always have all necessary values in it. The old way broke when we
moved the definitions of $webwork_courses_* and $webwork_htdocs_* out of
global.conf and into webwork.apache[2]-config (and therefore into
SeedCE).
Revision
5202 -
Directory Listing
Modified
Sat Jul 21 16:32:45 2007 UTC (5 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Stop a recurring error on hosted2 -- unfortunately I'm not sure what was triggering this error.
I couldn't generate it but an undefined set_id warning occured in many log entries
from one course.
Revision
5028 -
Directory Listing
Modified
Mon Jun 25 12:09:58 2007 UTC (5 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changes to make unarchiving possible with a choice names for the unarchived files.
To do: Provide updating of the database. Currently there may be difficulties if the database is upgraded
between the time the course is archived and the course is unarchived.
The behavior with sql_moodle data schemas has not been tested.
Revision
4932 -
Directory Listing
Modified
Thu Apr 19 22:17:13 2007 UTC (6 years, 1 month ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added directory listing when a directory is being deleted. The
listing will show the total number of files in the direcotry, and the
top level contents of the directory (with numbers of items in the each
subdirectory listed, but not the contents). This resolves bug #1246.
Revision
4926 -
Directory Listing
Modified
Mon Apr 9 21:01:51 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Bug fixes. $urlPath->arg("setID") isn't always defined in our calls to
Authz::invalidIPAddress, and FormatRecords needs to know about versioned
sets. The latter fixes the bug in Hardcopy that just (didn't) get fixed
with the previous (not well enough tested) fix.
Revision
4923 -
Directory Listing
Modified
Wed Apr 4 15:06:01 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4922 -
Directory Listing
Modified
Mon Apr 2 20:58:49 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update ProblemSetDetail to set both hide_score and hide_score_by_problem
set fields with a single selector. This is general, in the sense that
it should allow other combinations of fields to be set if that's
appropriate. This is a tentative commit; we may choose to back out the
changes later, especially if the data model for hiding scores is
changed.
Revision
4918 -
Directory Listing
Modified
Fri Mar 30 19:07:55 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Some bugfixes, preliminary commit of relax_restrict_ip function. this
commit
- adds relax_restrict_ip and hide_score_by_problem columns to the set
and set_user tables
- adds the corresponding fields to the Set and UserSet DB Records
- patches 'no location' handling in the location management routine
in CourseAdmin.pm
- improves Authz->checkSet's handling of the case of location
restriction when no addresses exist for a location, makes it
use any cached set that may be available, and makes it honor
relax_restrict_ip
- corrects a typo and some comments in DB.pm
- allows ip restriction fields in ProblemSetList when importing from
or exporting to set definition files
- updates ProblemSetDetail.pm to handle the relax_restrict_ip field
The relax_restrict_ip function has not been well tested.
hide_score_by_problem isn't yet used.
Revision
4915 -
Directory Listing
Modified
Fri Mar 30 12:39:47 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Back out error checking of input data fields. This doesn't work with
the initial conversion of a set to a gateway/test assignment, because
at that point the fields have to be zero or empty.
Revision
4914 -
Directory Listing
Modified
Thu Mar 29 19:48:58 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4910 -
Directory Listing
Modified
Wed Mar 28 18:32:11 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Follow up commit of IP address restriction code. This adds IP address
location management to CourseAdmin.pm, corrects a typo for location
address management in DB.pm, and makes ProblemSetDetail.pm prettier
when displaying locations for restrictions.
Revision
4909 -
Directory Listing
Modified
Tue Mar 27 20:12:14 2007 UTC (6 years, 1 month ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Second preliminary commit of changes to move set-level valid checks to
Authz. This makes ProblemSet.pm and Problem.pm use the
$self->{invalidSet} value set by ContentGenerator.pm, and means that
regular homework assignments may now be restricted to specific IP
addresses. This commit also corrects $userName/$effectiveUserName
errors I had in Authz->checkSet() and moves the actual IP address
checking to a separate subroutine in Authz. Hardcopy.pm uses that
routine to filter sets to be sure it doesn't generate hardcopies for
a IP address restricted set.
Revision
4908 -
Directory Listing
Modified
Tue Mar 27 17:15:19 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4904 -
Directory Listing
Modified
Tue Mar 27 17:04:02 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Preliminary commit of code to restrict access to assignments by client
IP address. This commit adds the database tables for IP address
restriction, updates check_modules.pl to require Net::IP for address
matching, adds database calls in DB.pm for manipulating locations and
addresses, and adds location restriction to the set editing in
ProblemSetDetail.
This commit does not add actual restriction to sets, nor the ability
to create locations to which to restrict access.
Revision
4893 -
Directory Listing
Modified
Thu Mar 22 13:39:50 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add support for external authentication systems. This is appropriate
if something like an apache directory or location based authentication
system (such as cosign, basic or digest auth) is used. In these cases,
WeBWorK may not handle the logout procedure, and we need information
from the Authentication module to determine the correct action. We
allow for the case of redirects here, but this could easily be
extended if needed.
Implementation: pre_header_initialize() checks for $authen->{redirect}
to be defined and true after calling $authen->forget_verification().
If to, we set $self->reply_with_redirect to the value of returned by
$authen->{redirect}.
This update also moves key deletion from body() to
pre_header_initialize(), so that those actions take place before any
redirect.
Revision
4892 -
Directory Listing
Modified
Thu Mar 22 13:35:42 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add support for external authentication systems. This is appropriate
if something like an apache directory or location based authentication
system (such as cosign, basic or digest auth) is used. In these cases,
by the time the user gets to a ContentGenerator in the WeBWorK system
she has successfully authenticated against the external authentication
system, and so if there was an error it indicates that the user was
not allowed to enter the course for some other reason. Thus, in this
case we print an error message and skip the WeBWorK login form.
Implementation:
body() checks for $authen->{external_auth} to be defined and true;
if so, only the authentication error and an informational message
about the external authentication system is printed. If undefined
or false, any authentication error is printed and the login form,
as usual.
Revision
4884 -
Directory Listing
Modified
Thu Mar 15 22:06:16 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4880 -
Directory Listing
Modified
Wed Mar 14 22:50:36 2007 UTC (6 years, 2 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
error handler in the post-connection subroutine that sends the error to
the professor by email and also logs it to the apache log.
resolves bug #1120, sort of.
Revision
4873 -
Directory Listing
Modified
Tue Mar 13 15:45:31 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update to make hardcopy generation respect a set's hide_work setting,
allow those with permission to generate hardcopies for multiple sets
to print versioned sets.
Revision
4872 -
Directory Listing
Modified
Tue Mar 13 15:44:21 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4861 -
Directory Listing
Modified
Fri Mar 9 21:05:37 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update set editing to allow new gateway options, fix display of options
with labels when editing for users, make more gateway parameters editable
for users, add override checkboxes for drop down menus for parameters
when editing for users.
Revision
4860 -
Directory Listing
Modified
Thu Mar 8 21:50:05 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4837 -
Directory Listing
Modified
Mon Mar 5 23:05:56 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update to use new newSQL versioning API. Also fixes display of correct
answers so that correct answers to a versioned set are visible if the
available attempts on the set are exhausted and the version's answer
date has been reached, but not before.
Revision
4812 -
Directory Listing
Modified
Fri Mar 2 21:36:00 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update for NewSQL new versioning API, make a lot of indenting more
uniform, make display of versioned sets that are assigned to a user
but haven't been taken better.
Revision
4802 -
Directory Listing
Modified
Thu Mar 1 22:18:56 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4796 -
Directory Listing
Modified
Tue Feb 27 16:16:41 2007 UTC (6 years, 2 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add conditional to check whether set assignment/unassignment needs to
be done before making a database call to do so. Resolves a problem I
was having with duplicate entries in set_user being created before a
database error was returned warning about duplicate sets.
Revision
4782 -
Directory Listing
Modified
Wed Feb 14 19:29:32 2007 UTC (6 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Set SMTP envelope sender to $ce->{mail}{smtpSender} rather than user's
from address. This prevents some mailservers from rejecting the mail for
having a forged sender address.
Revision
4778 -
Directory Listing
Modified
Wed Feb 14 18:16:46 2007 UTC (6 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Set SMTP envelope sender to $ce->{mail}{smtpSender} rather than user's
from address. This prevents some mailservers from rejecting the mail for
having a forged sender address.
Revision
4763 -
Directory Listing
Modified
Thu Feb 1 22:43:07 2007 UTC (6 years, 3 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make sure that something gets passed to renderProblems() for the userSet
even when a global set is being edited and it isn't assigned to any
users. Gets rid of "odd number of elements in hash assignment" errors
in renderProblems. Because renderProblems plugs in a fake set if it
gets a false value in for the userSet, sending in '' appears to solve
the problem.
Revision
4735 -
Directory Listing
Modified
Wed Jan 3 22:47:30 2007 UTC (6 years, 4 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed incorrect lookup of which set to view when viewing problems
"From This Course". The problem was introduced in version 1.69.
Similar errors were also in the other viewing modes, but were
corrected for "Local Problems" in 1.70 and for "Set Definitions Files"
in 1.73.2.1 (though I have updated the latter to be consistent with
the other cases).
Revision
4695 -
Directory Listing
Modified
Fri Dec 1 17:19:30 2006 UTC (6 years, 5 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4693 -
Directory Listing
Modified
Fri Dec 1 17:11:18 2006 UTC (6 years, 5 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add hide_score and hide_work fields to set editing. Currently these are
sequestered in the Gateway Parameters section of the edit form, because
the fields are only used by gateway/quiz assignments. In the long run
they want to be moved out to apply to assignments more generally.
Revision
4561 -
Directory Listing
Modified
Tue Oct 10 10:58:54 2006 UTC (6 years, 7 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed problem where ShowPast Answers would incorrectly includes
answers for students whose login name have the current student's login
name as a suffix. (Fixes bug #1102)
Revision
4515 -
Directory Listing
Modified
Mon Sep 25 16:10:36 2006 UTC (6 years, 8 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4514 -
Directory Listing
Modified
Mon Sep 25 16:05:31 2006 UTC (6 years, 8 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Gateway update: report tests graded in the grace period after the due
time as having been completed at exactly the maximum allowed time.
Thus, if a test allows 20 min and there is a grace period (defined in
global.conf) of 2 min, a test submitted after 21 min will be reported
here as having been completed in 20 min, not 21. This avoids some
confusion for instructors who aren't aware of the grace period.
This update doesn't have any effect on the presentation of non-
versioned sets.
Revision
4463 -
Directory Listing
Modified
Fri Sep 8 21:01:19 2006 UTC (6 years, 8 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Gateway debug: correct code allowing multiple problems to be drawn
from the same problem group. I think this is correct now (the original
code I wrote was odd enough that it's not at all clear what I was
thinking...).
Revision
4462 -
Directory Listing
Modified
Fri Sep 8 20:28:54 2006 UTC (6 years, 8 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Gateway update to Hardcopy: correct generation of hardcopies including
student solutions to allow the correct answers to be shown before the
due date if the student has used up all attempts on the set.
Revision
4412 -
Directory Listing
Modified
Fri Aug 25 18:47:47 2006 UTC (6 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Gateway update of ProblemSetEditor; add problems_per_page verbiage.
I think this is moot, given that (barring an interpretive error
on my part) this file isn't being used, but hopefully it is at least
now consistently moot rather than inconsistently so.
Revision
4389 -
Directory Listing
Modified
Tue Aug 22 18:37:22 2006 UTC (6 years, 9 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make the target for the "Show Past Answers" window be WW_Info so that
it is named in a similar way to the other windows used (WW_Editor,
WW_View). This reduces possible classes with other sites using the
more generic "information".
Revision
4317 -
Directory Listing
Modified
Fri Jul 28 20:10:28 2006 UTC (6 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
GatewayQuiz Hardcopy update: change random ordering of problems in
Gateway tests to use PGrandom (avoids calling srand() repeatedly),
add student answers to completed gateway tests when correct answers
are shown. Also cleans up presentation of gateway tests.
Revision
4308 -
Directory Listing
Modified
Thu Jul 27 20:43:04 2006 UTC (6 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
GatewayQuiz Hardcopy update: preliminary commit to add checks for
versioned sets to allow generation of hardcopies of versioned sets.
Still needs checking to avoid generation of hardcopies for the
template set.
Revision
4306 -
Directory Listing
Modified
Thu Jul 27 15:49:23 2006 UTC (6 years, 9 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
4290 -
Directory Listing
Modified
Thu Jul 20 23:21:44 2006 UTC (6 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
fixed syntax of call to radio_group -- leading dashes are required.
the rule is (as defined by CGI::Util::rearrange):
* if the first argument is a hashref, interpret its contents as named
parameters. leading dashes can be used, but are not required.
* otherwise, if the first parameter begins with a dash, interpret the
argument string as named parameters. a leading dash is technically only
required on the first item, but you'd be nuts to mix dash and no-dash.
* otherwise, treat the argument list as non-named parameters.
Revision
4280 -
Directory Listing
Modified
Tue Jul 18 13:10:54 2006 UTC (6 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Formatting corrections (including adding some {}). Checbox_groups does not yet work correctly.
Removed support for sql template in rename, (it's still present in delete).
Revision
4234 -
Directory Listing
Modified
Wed Jul 12 01:19:15 2006 UTC (6 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Mostly replace use CGI; with use WeBWorK::CGI
Files with additional changes to CGI calls are
SendMail, SetMaker PGProblemEditor Instructor::Index and FileManager
Revision
4207 -
Directory Listing
Modified
Sat Jul 8 17:00:28 2006 UTC (6 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changes that make it possible to browse this course and the set definition files. (I think I mislabeled the local_sets
parameter to library_sets)
There is still a problem with viewing local problems. A directory labeled set0 is interpreted as 0, which in this instance is
not the right thing. This might not be a new problem.
Revision
4206 -
Directory Listing
Modified
Sat Jul 8 16:26:34 2006 UTC (6 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Have placed -override=>1 in every CGI::hidden(). So far this seems to fix the problem with misleading sticky behavior.
I have no clue why use CGI qw(-nosticky) didn't work for hidden. Possibly a bug. So far the fix continues to work for
apache1.3
without changing the behavior.
After further testing this file should have at least some of the annoying debug statements removed.
Revision
4201 -
Directory Listing
Modified
Sat Jul 8 01:52:01 2006 UTC (6 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed some of the param problems by adding , override=>1 to the CGI::hidden() calls.
This means that CGI ignores any param() values when assigning value to the field. We have been
assigning our own updated values in any case, so this is probably what should have been done
from the start. I'm not 100% sure of this yet however, so I've only fixed a couple of places
in SetMaker.pm where the behavior is weird. I'd like to here of other weird behavior that could
be attributed to values in forms sticking or not sticking correctly.
Revision
4192 -
Directory Listing
Modified
Thu Jun 29 23:20:48 2006 UTC (6 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Progress on Apache2 compatibility -- doesn't work yet.
I've gotten to the point where the login screen can be displayed, but
login will still fail. The issue that i'm currently working on is that
we modify $r->param values extensively in WeBWorK, and that is not
supported in Apache2::Request. I'm not sure why, and no workaround is
given. One solution is to wrap override param() in WeBWorK::Request, but
this would slow things down since the Apache2::Request param method is
written in C.
Revision
4168 -
Directory Listing
Modified
Mon Jun 26 18:16:26 2006 UTC (6 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The last message was garbled. I've added code that copies auxiliary files when you make a local copy or
an extra copy of a problem file of the form prob4/prob4.pg
This copy mechanism is not yet used when viewing one of these problems from a temporary file in tmpEdit. If you
have viewed a problem before you start editing it, your browser will probably use cached images and you
will not have any errors. If you start editing a problem with auxiliary files before viewing it once in its original
state, then some of the auxiliary images might be missing.
Revision
4167 -
Directory Listing
Modified
Mon Jun 26 18:05:52 2006 UTC (6 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
and copy auxilliary files when making a copy of a problem. This does not do anything about the creation of temporary files
for viewing. If you have already viewed the file before you start editing it youthen the temporary links will work.
Make
File::Copy available
Revision
4165 -
Directory Listing
Modified
Sat Jun 24 22:23:30 2006 UTC (6 years, 11 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed a couple more issues with blank problems. Allow files to be
copied even when we can't write the original (this lets you make a
copy of the blank problem or default headers).
Attempt to overcome the copy/rename problem by making it not be a menu
and instead use a checkbox that says whether the problem or header
will replace the one in the current set. This makes it clear that a
copy is still being made (not that the original is being renamed), but
that the homework set is being altered. Those are really two
different actions, and it seems to make sense to separate them. The
default is still to link into the homework set, if there is one.
Revision
4164 -
Directory Listing
Modified
Sat Jun 24 21:12:29 2006 UTC (6 years, 11 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed messages that refer to 'Save as' to use 'Create a copy'
instead (which is the current wording for that function).
Problem: Since the default in that pop-up menu us "Rename file"
rather than "Create a copy", it is not immediately clear what this
message refers to.
I still think "Create a copy" should be the default rather than
"Rename file", since the latter only makes sense when you got to the
editor from a file linked to a homework set, which is not always the
case (e.g., when you use the Library Browser). It would also make
these error messages refer to something visible rather than a menu
item that is not showing.
Revision
4163 -
Directory Listing
Modified
Sat Jun 24 21:04:13 2006 UTC (6 years, 11 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Handle blank problems correctly (they were being flagged as unsafe in
some cases, and produced as many as 3 error messages indicating that
the file had to be "Saved as" before editing). Also fixed a typo with
hardcopy header checking.
Revision
4129 -
Directory Listing
Modified
Thu Jun 15 14:48:19 2006 UTC (6 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Implemented unarchiving function to complement archiving function.
Archive exports the course database to courseName/DATA and then tas and gzips the directory courseName to
courseDirectory/courseName.tar.gz
Unarchive allows one to choose files of the type courseDirectory/courseName.tar.gz and then
ungzip, untar them to courseDirectory/courseName -- the database record in courseName/DATA is
then loaded into the webwork database.
So far there is only minimal error checking about whether all or part of the course exists when unarchiving.
There are not yet features for archiving and then deleting a course -- these two operations have to be done
separately for now.
Revision
4108 -
Directory Listing
Modified
Thu May 25 16:37:15 2006 UTC (7 years ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
improvements to URL handling.
* use use_abs_url option of systemLink to generate URLs, rather than
hardcoding logic.
* don't generate a full URL for the return to your work link. it isn't
needed.
* in the "This feedback message was automatically generated by the
WeBWorK system at" message, give the URL to the webwork home module,
rather than just the host and port.
Revision
4096 -
Directory Listing
Modified
Tue May 23 17:38:29 2006 UTC (7 years ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
changed how activity is determined. previously, check_session was being
called with updateTimestamp=1, which would cause all active sessions to
be "touched" so as to prolong their validity. also, it's not really
approriate to call check_session in this way to begin with. we already
grabbed the key, and we know it matches, so we don't want to grab it
again. so instead i just put the timestamp comparison directly into this
file.
see also UserList.pm 1.79.
Revision
4051 -
Directory Listing
Modified
Mon Apr 17 21:17:12 2006 UTC (7 years, 1 month ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Resolve bug #994 ("Try it" yields: sourceFilePath is unsafe!)
SetMaker uses a relative path for sourceFilePath, which is nice, but
which path_is_subdir didn't account for. Added thrid argument,
$allow_relative, to that utility which causes $dir to be prepended to
$path. Modified Problem.pm to trigger this behavior.
Revision
4042 -
Directory Listing
Modified
Sun Apr 2 12:32:02 2006 UTC (7 years, 1 month ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
When a file is uploaded and there is an error opening the destination
file, the error message now includes the system error report and the
file is no longer printed (causing a WeBWorK error).
Revision
4015 -
Directory Listing
Modified
Tue Feb 7 21:03:25 2006 UTC (7 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3997 -
Directory Listing
Modified
Wed Feb 1 00:24:22 2006 UTC (7 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
forward-port from rel-2-2-dev: (Use File::Path::mkpath to create the
hardcopy directory. mkpath() functions like ``mkdir -p'' in that it will
create multiple directory elements if needed. Closes bug #950.
Use the standard File::Temp::tempdir function instead of
makeTempDirectory() to create the actual working directory.
Add spaces after the "[edit]" links when PG errors are reported.)
Revision
3973 -
Directory Listing
Modified
Wed Jan 25 23:13:56 2006 UTC (7 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Tue Jan 24 23:27:02 2006 UTC (7 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3925 -
Directory Listing
Modified
Fri Jan 20 00:17:39 2006 UTC (7 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3894 -
Directory Listing
Modified
Tue Jan 10 00:08:59 2006 UTC (7 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Resolves bug #942, in which a missing permission level field causes a
warning:
This is in fact due to UserList assuming that $record{permission} is
defined when it is allowed to be undefined (as per the format of
classlist files).
I added a case that sets is to $default_permission_level if it is not
defined.
FIXED in branch rel-2-2-dev revision 1.75.2.1.
Forwarded-ported with no modifications to HEAD in this revision.
Revision
3890 -
Directory Listing
Modified
Mon Jan 9 19:15:01 2006 UTC (7 years, 4 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed the following bug: if you are importing multiple sets and (stupidly) include the line "the following file(s)" in your multiple selection (which can happen if you are trying to get everything), then you would get a cryptic error and nothing would be imported.
Revision
3873 -
Directory Listing
Modified
Mon Jan 2 23:24:48 2006 UTC (7 years, 4 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3863 -
Directory Listing
Modified
Thu Dec 29 01:40:38 2005 UTC (7 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed error in POST url which caused user and key to become multiply defined.
This may also cure some other anomolies such as the can't call method "psvn" without a package or object error
because that error sometimes included a reference to the key. ??? Not sure about this part, but it definitely
causes the multiple user and key definition.
Revision
3857 -
Directory Listing
Modified
Mon Dec 26 22:04:31 2005 UTC (7 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
This file replaces the SetsAssignedToUser.pm module. It allows you to
change the dates on several homework sets for a single student from one page.
This is a common activity, particularly when adding students, and is now a
much faster procedure.
Revision
3856 -
Directory Listing
Modified
Mon Dec 26 22:02:58 2005 UTC (7 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The major change is to replace Sets assigned to user by UserDetail.pm. (Originally
written by Rob Van Dam and completed by Mike Gage.) It has undergone a significant
amount of testing, but has not yet been used in a course. We can back out of
these changes before creating a release if problems are found.
Revision
3851 -
Directory Listing
Modified
Thu Dec 22 18:49:40 2005 UTC (7 years, 5 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Gateway update: revise display of versioned and non-versioned sets. Now
all regular sets are sorted to the top of the list, with gateway tests
at the bottom. Use view_proctored_tests parameter to decide if proctored
tests should be hidden. Now uses new listUserSets and listUserSetVersions
routines from DB.
Revision
3842 -
Directory Listing
Modified
Wed Dec 21 23:23:58 2005 UTC (7 years, 5 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3818 -
Directory Listing
Modified
Fri Dec 16 18:19:00 2005 UTC (7 years, 5 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed the permission setting for whether or not hardcopy can show correct answers before the answer date. The old value was really for the "Show Past Answers" button, not for being able to see correct answers early.
Revision
3811 -
Directory Listing
Modified
Wed Dec 14 00:16:50 2005 UTC (7 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3802 -
Directory Listing
Modified
Thu Dec 8 19:16:09 2005 UTC (7 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow reordering to succeed even if some UserProblems are missing.
Addresses bug #878.
By the way, I found the reordering code really hard to read, so I added
a lot of comments and replaced multidimensional array accesses with a
shorter form. ($sortme[$j][0] rather than $sortme[$j]->[0].) I'd like to
maybe rewrite this code sometime to eliminate some indirection and make
things clearer.
There are two substantive changes:
(1) When a UserProblem has to get reordered, we only reorder it if a
UserProblem record actually exists. If it doesn't exist, we figure out
where it would have moved to, and delete that problem instead.
(2) When moving a UserProblem, the target location either contains or
doesn't contain a record. Previously, the code checked whether a
GlobalProblem existed in this location, assuming that if a global
problem existed the corresponding UserProblem would as well. Now, it
checks whether a UserProblem exists, which allows for missing
UserProblem records.
Lingering questions:
(1) When multiple problems are assigned the same number, this results in
the last one ending up first in the new ordering. I think it would be
more natural for the first one to end up first. This would be an easy
fix.
(2) $force always gets set if reordering needs to be done, so we aren't
able to delete a problem, reorder some other problems, and end up with a
hole where where the deleted problem was. We can either fix this by
mentioning this next to the force checkbox, or change it so that
particular holes (i.e. those left by deleted problems) are allowed when
reordering.
Revision
3788 -
Directory Listing
Modified
Fri Dec 2 23:35:15 2005 UTC (7 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
1-liner adding course hiding support. place a file named
"hidden_directory" in a course directory and it will not show up in the
courses list on the WeBWorK home page. it will still appear in the
CourseAdmin module. The file can be added/removed via UNIX access or by
using the FileManager module.
Revision
3779 -
Directory Listing
Modified
Tue Nov 22 01:44:55 2005 UTC (7 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3751 -
Directory Listing
Modified
Thu Nov 10 16:12:07 2005 UTC (7 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Create the [HTML_TMP]/hardcopy directory if it doesn't exist. This is something of
a hack done in Hardcopy.pm at the moment. I think this should be moved over
to makeTempDirectory in Utils, but that would require more checking than I can
do right at the moment.
-- Mike
Revision
3750 -
Directory Listing
Modified
Tue Nov 8 20:47:12 2005 UTC (7 years, 6 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
this commit fixes quite possible the stupidest thing i've ever done.
wondering where messages like this
$GlobalSets[1] (ID Sec9.2ParametricEq) not defined -- skipping
at /ww/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
line 286.
were coming from?
the answer is:
$GlobalSets[1] = undef;
which is a line i put in there for testing and never removed. i am very
sorry. :-(
Revision
3736 -
Directory Listing
Modified
Tue Nov 1 01:51:32 2005 UTC (7 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3734 -
Directory Listing
Modified
Wed Oct 26 16:46:04 2005 UTC (7 years, 6 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
cleaned up error reporting for status methods. if arguments are not
defined and non-empty, a warning is given (using "carp") and an
undefined value is returned.
Revision
3721 -
Directory Listing
Modified
Mon Oct 17 17:36:29 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
rearrange addition, deletion, change-saving, and "mark correct" code.
Order is now:
- save changes to existing problems
- mark specified problems correct
- delete specified problems
- add blank problem
This ensures consistencey if multiple operations are performed at once,
and also prevents the values set in the new problem from being
overwritten with empty values when changes to existing problems are
saved.
Revision
3719 -
Directory Listing
Modified
Mon Oct 17 13:58:07 2005 UTC (7 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Mon Oct 17 03:42:42 2005 UTC (7 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3711 -
Directory Listing
Modified
Fri Oct 14 19:10:04 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
show first pdflatex error (bug #850), HTML escaping.
- generate_hardcopy_pdf() now reports the first error encountered in
hardcopy.log in the list of errors.
- variables substituted into errors strings are now displayed inside
<code>..</code> tags, and their values are escpaed with CGI/pm's
escapeHTML() function.
Revision
3690 -
Directory Listing
Modified
Sat Oct 8 21:55:41 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
modify usage of user status to take advantage of new status system. the
most extensive change is in UserList, where the names of statuses are
now shown in the status column along with the abbreviation that's
actually set in the database, and the edit popup shows the actual names
that are defined in global.conf.
Revision
3688 -
Directory Listing
Modified
Wed Oct 5 18:16:52 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Implemented status system as per bug #743.
The status system consists of a new hash in the course environment,
%statuses, that maps status names (like "Enrolled", "Drop", "Audit") to
(a) a list of allowed abbreviations for the status and (b) a list of
behaviors the system should have when dealing with users who have the
status.
I didn't want to have to mangle that hash-of-hashes-of-arrays myself in
many modules, but I also didn't want to devote an entire module
(Status.pm) to it. So, I'm trying a little experiment: I've added them
as methods to WeBWorK::CourseEnvironment. My thinkint is that since all
the data for these operations comes from the course environment, so why
not have them be course environment methods? Here they are:
status_abbrev_to_name($status_abbrev)
Given the abbreviation for a status, return the name. Returns undef
if the abbreviation is not found.
status_name_to_abbrevs($status_name)
Returns the list of abbreviations for a given status. Returns an
empty list if the status is not found.
status_has_behavior($status_name, $behavior)
Return true if $status_name lists $behavior.
status_abbrev_has_behavior($status_abbrev, $behavior)
Return true if the status abbreviated by $status_abbrev lists
$behavior.
Since I removed the previous $siteDefaults{status} hash from
global.conf, I have already switched modules that formerly used that
hash over to using the new methods:
Authen.pm: use status_abbrev_has_behavior($status, "allow_course_access")
to determine if a user should be allowed to log in.
Feedback.pm: look up status abbreviation using status_abbrev_to_name()
and print the result for the status field in the email.
Instructor.pm: use status_abbrev_has_behavior($status, "include_in_assignment")
to determine if a user should be included in an assignment.
UserList.pm and UsersAssignedToSet.pm: use status_abbrev_to_name() to
get name of CSS class.
Revision
3685 -
Directory Listing
Modified
Mon Oct 3 04:29:56 2005 UTC (7 years, 7 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow basic types to specify the width of their input fields, and changed the handling of the long doc strings. The long string is no longer sent as a parameter where it might be truncated.
Revision
3682 -
Directory Listing
Modified
Sun Oct 2 19:51:45 2005 UTC (7 years, 7 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
New Config module. It will put its course settings in a file simple.conf
along side course.conf. Changes are:
URLPath.pm: wiring so the Config module can be called
ContentGenerator.pm: link in left panel to Config module
CourseEnvironment.pm: evaluate simple.conf. File name can be specified
when creating a new CourseEnvironment. This allows it to be bypassed
(which is currently used), or to test a simple settings file (not
used now, but it might be useful).
Constants.pm: all data about configuration is stored here. New values
can just be added here, unless they are a new type.
Config.pm: new module for limited course configuration.
Note, it might be better to move the new variable in Constants.pm to
another file. Committing changes to Constants.pm can be an extra
hassle since it contains some site specific configuration.
Revision
3675 -
Directory Listing
Modified
Fri Sep 30 19:36:57 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added manage_course_files activity. changed FileManger to use new
activity. added hasPermissions() checks to Index and Contentgenerator to
only show File Manger when user has permission.
Revision
3667 -
Directory Listing
Modified
Thu Sep 29 01:57:56 2005 UTC (7 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3666 -
Directory Listing
Modified
Thu Sep 29 01:25:20 2005 UTC (7 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Simplified the interface for users (who can only download one set at a time and can only download one user).
It could be made slightly more general -- it currently implicitly assumes that either one can edit both
multiple sets and multiple users or one can edit only a single user and a single set.
Removed an error in the [edit] link when there is an error. The anchor HTML tags were wrapped two layers deep
around the reference.
Can probably still use some more tweaks in the interface.
-- Mike
Revision
3663 -
Directory Listing
Modified
Wed Sep 28 21:46:26 2005 UTC (7 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
fixed problem with `!' in set IDs, improved error reporting.
the `!' poblem was caused by passing UserSets to ScrollingRecordList
instead of passing GlobalSets. UserSets have a two-part key (user ID and
set ID), and ScrollingRecordList concatenates them with a `!' to create
the value names. This is a desireable behavior, but not one that I
remembered. Whoops.
Revision
3653 -
Directory Listing
Modified
Sat Sep 24 00:51:58 2005 UTC (7 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Prevent empty answers that are marked as correct from being counted as
unanswered blanks. This avoids the "all the above are correct/at
least one of the above are NOT correct" problem, and suppresses the "n
questions remain unanswered" message when the empty questions are
counted as correct.
Revision
3649 -
Directory Listing
Modified
Fri Sep 23 23:26:35 2005 UTC (7 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Extensive refactor/rewrite.
There are probably going to be bugs here that we squished in the old
version of Hardcopy, but it seems to be pretty robust after an evening
of testing. Alert me if you see problems.
Features:
* standard ScrollingRecordLists are used for user and set selection.
* TeX source is written incrementally instead of being accumulated in
memory.
* arguments to shell commands are now quoted using String::ShellQuote
* modular design allows adding additional formats easily (i.e. dvi, ps)
* error reporting code is simplified.
* if errors/warnings occur, user will see them on screen instead of
getting the hardcopy file.
* on the error screen, user can click to get (possibly broken) hardcopy
if it exists.
* on the error screen, user can click to get interesting temporary
files. (for PDF format these are hardcopy.{tex,log,aux} and
pdflatex.std{out,err}.)
* on the error screen, if an error concerns a particular problem, an
"edit problem" link is included.
* probably more stuff i'm forgetting
Revision
3646 -
Directory Listing
Modified
Thu Sep 22 18:06:52 2005 UTC (7 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
since the subject line can be changed now, email filters would be wise
to rely on something more static. i've added X-WeBWorK-* headers to
accomodate this:
X-WeBWorK-Module
X-WeBWorK-Course
X-WeBWorK-User
X-WeBWorK-Section
X-WeBWorK-Recitation
X-WeBWorK-Set
X-WeBWorK-Problem
Revision
3645 -
Directory Listing
Modified
Thu Sep 22 17:48:38 2005 UTC (7 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
implement customizable feedback subject line. The following escape
sequences are recognized:
%c = course ID
%u = user ID
%s = set ID
%p = problem ID
%x = section
%r = recitation
%% = literal percent sign
Revision
3640 -
Directory Listing
Modified
Mon Sep 19 17:11:26 2005 UTC (7 years, 8 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fix bug 819. This adds a method to DB for getting all merged problems
for a (student,set) combination so that the problem value can be
correct. See bug 819 for additional comments on how this affects
scoring when an individual student is given an override value for
"weight".
Revision
3639 -
Directory Listing
Modified
Mon Sep 19 16:25:41 2005 UTC (7 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added nice custom formatting routines for user/set/problem data:
* uses "yes" and "no" for true/false values
* formats dates
* uses "unlimited" for -1 max_attempts
* uses pretty names for the status
* decodes the answer string
* lines up output
Revision
3627 -
Directory Listing
Modified
Fri Sep 16 19:08:17 2005 UTC (7 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
feedback is now sent to users with receive_feedback permission
regardless of the contents of the feedbackRecipients list in
global.conf. Comments in global.conf now read:
By default, feeback is sent to all users who have permission to
receive_feedback. If this list is non-empty, feedback is also sent to
the addresses specified here.
* If you want to disable feedback altogether, leave this empty and set
submit_feeback => $nobody in %permissionLevels below. This will
cause the feedback button to go away as well.
* If you want to send email ONLY to addresses in this list, set
receive_feedback => $nodoy in %permissionLevels below.
It's often useful to set this in the course.conf to change the
behavior of feedback for a specific course.
Revision
3609 -
Directory Listing
Modified
Fri Sep 9 20:51:21 2005 UTC (7 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed a bug in which, if the Hardcopy call was the first one to
need to create the directory at (e.g.) /ww/htdocs/tmp/myCourse
then the creation of myCourse would fail. If /ww/htdocs/tmp/myCourse/gif already
existed things would go fine.
I think that more has to be done here. We need to look at how myCourse is
created when storing a gif or html is the first action and handle these
all the same. One of the difficulties is that the tmp directory might
be located anywhere -- it is not guaranteed to be under /ww/webwork/webwork2/htdocs
-- at least as we have defined it at the moment.
Revision
3607 -
Directory Listing
Modified
Thu Sep 8 02:54:48 2005 UTC (7 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Sam changed open(LOG,...) to open(my $log, ...), but didn't change the
usages of LOG to $log, so the show answers page was always reporting
no past answers available. Now the values are being shown. (I'm not
sure why it is necessary to make a local variable for LOG, but
at least it works now.)
Revision
3595 -
Directory Listing
Modified
Fri Sep 2 00:06:21 2005 UTC (7 years, 8 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed bug in use of advanced display panel which prevented it from displaying
problems. Default values like "All Textbooks" needed to be cleared so it
wouldn't be mistaken for actual textbook names.
Revision
3594 -
Directory Listing
Modified
Thu Sep 1 01:10:35 2005 UTC (7 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Implemented Mike's suggestion of combining a directory upward only
when the directory contains one pg file and the name of the file is
the same as the name of the directory containing it. I have removed
the condition that there need to be other (non-pg) files in the
directory, as the check takes time, and is no longer necessary.
Revision
3583 -
Directory Listing
Modified
Sun Aug 28 20:54:51 2005 UTC (7 years, 8 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow use of an activity log which logs every click, stored on a
per-course basis. It is turned off by default. It can be turned
on/off for individual courses. The three pieces here:
global.conf.dist: adds a place to define the log file. Here an
empty value signals to not do this logging.
ContentGenerator.pm: check to see if the log file is defined (and
(non-trivial), and if so, write a log entry. We check if it is
defined at this point to both save some time, and because if we
get to writeCourseLog and the log isn't defined, we get a pink
screen.
The bulk of the text of the log entry is performed by a new method
prepare_activity_entry. By default, this gives the url, and a list
of all the cgi parameters (except for key and passwd). This method
can be overridden by individual modules. The default format may
change. It may take some fine tuning to see what is best.
Also, this is one of the first functions called by go. We may want
it to go after the action has taken place if we want instructor
modules to be able to report results of their work through this log.
SetMaker.pm: gives an example of overriding prepare_activity_entry.
SetMaker has lots (and lots and lots) of data stored in cgi
parameters. We probably don't want to log that. We might want to
log a little more in SetMaker than we do here (target set), but
this gives a start.
Revision
3580 -
Directory Listing
Modified
Fri Aug 26 17:30:05 2005 UTC (7 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
When dealing with showOldAnswers defaults, allow control of who get get the system default after the due date instead of hard-wiring it. Default value is that students don't initially get old answers after the due date, but professors do.
Revision
3564 -
Directory Listing
Modified
Wed Aug 24 20:22:32 2005 UTC (7 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make it so that by default, practice users don't see saved answers. That can be controlled in global.conf.dist. Also, default to not showing saved answers after the due date. In all cases, the Apply options button can adjust what you want.
Also fixed a bug with showOldAnswers related to '', 0, and undef being similar in perl.
Revision
3551 -
Directory Listing
Modified
Mon Aug 22 19:55:40 2005 UTC (7 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Previously, the "Unassign selected sets from selected users" button did
not work. Now it works. To help avoid inadvertant unassignments, the button
was moved lower on the page and put in the "danger" background color. I
also made the assign and unassign buttons the same length for better
aesthetics.
Some things still to do in this module:
- maybe move unassign even lower
- maybe have a safety radio button to unassignments like on other
unassign pages
- move the action from body() to pre_header_initialize() so that
addgoodmessage/addbadmessage will work like on other pages
- get return values from the assignment/unassignment commands in
case something goes wrong. Right now, the system can explode and it
will still say "All assignments were made successfully".
- it could also report some information on assignments/unassignments
actually made vs. combinations which were skipped.
Revision
3528 -
Directory Listing
Modified
Sun Aug 14 16:52:11 2005 UTC (7 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add the beginnings of a facility for archiving a course. This method uses mysqldump
and therefore will work only with a mysql database. Many things are still hardwired
In particular mysqldump is hardwired.
The database name is hardwired to "webwork"
Archiving consists of dumping the tables associated to the course to a file
$courseID/DATA/$courseID_mysql.database (this file can be used
to created a new database for the course. it will not overwrite existing
tables however.)
Then the entire course directory is tarred and gzipped and placed
in the courses directory with the naem $courseID.tar.gz
Currently nothing is deleted from the database and no directories are deleted.
So the implementation is fairly safe, but not yet very useful for course management.
There is not yet a facility for automatically importing the archived course.
Revision
3485 -
Directory Listing
Modified
Fri Aug 12 02:47:30 2005 UTC (7 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3461 -
Directory Listing
Modified
Wed Aug 10 18:02:31 2005 UTC (7 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
make .def searching thread-safe (resolves bug #814).
changed @found_set_defs to be a lexical local to get_set_defs().
replaced get_set_defs_wanted() with a closure over @found_set_defs
defined in get_set_defs().
output is identical to the previous case, but no global(-ish) variables
are used.
Revision
3451 -
Directory Listing
Modified
Thu Aug 4 00:58:39 2005 UTC (7 years, 9 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Can't separate the form into two separate forms (as in the previous
update) otherwise the values of the checkboxes in the lower section
are lost when a button in the upper section is clicked. So we'll have
to assume that if a user selects a file, he really wants it to be
uploaded. (He can always use the BACK button on the browser to back
out of it if necessary.)
Revision
3437 -
Directory Listing
Modified
Sun Jul 31 17:27:21 2005 UTC (7 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Updating the user interface. The checkbox to include webwork administrators in s
a course is now on by default.
The default templates course to copy when creating a new course can now be set in global.conf.
This is the course that automatically comes up by default in the pop-up menu.
Revision
3434 -
Directory Listing
Modified
Sun Jul 31 15:26:18 2005 UTC (7 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
User interface changes added. All courses are sorted without regard to case.
The main page now lists all available courses and their database type -- finding the
database type slows things down a bit, so this might not be a desirable feature when
there are many courses.
It also discovers missing course.conf files. If the course.conf file is missing then it's more
likely that the database type is not accurate.
Revision
3433 -
Directory Listing
Modified
Sat Jul 30 17:26:45 2005 UTC (7 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3432 -
Directory Listing
Modified
Sat Jul 30 01:49:44 2005 UTC (7 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
I've changed errorOutput($error,$details) to accept a reference to a string
or to an array for $details. These are automatically converted to the proper form.
References should be used when the $details points to a large number of bytes, such
as the contents of a file.
This version is not faster than the original method where $details was always a
string, sometimes a very long string. It does seem to save memory however.
Further savings in memory could be obtained by print directly, but there are a few instances
which call errorOutput and then do further formatting before printing.
At the moment it doesn't seem to be worth it to make the change from return to print.
Revision
3414 -
Directory Listing
Modified
Wed Jul 27 17:04:53 2005 UTC (7 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed column label of Id to Login Name to be consistent with other pages.
Also aligned the headers to top, which looks nicer if needed for a narrow
browser window.
Revision
3413 -
Directory Listing
Modified
Wed Jul 27 16:43:19 2005 UTC (7 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
More changes for problem library version 2: changed interface for getting
lists of problems so variable amounts of data can be passed. Also removed
an unneeded button.
Revision
3410 -
Directory Listing
Modified
Wed Jul 27 16:30:41 2005 UTC (7 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Mainly improvements for problem library version 2. Also removed comments
and added "Edit it" link back in for library problems. These were not the
only read-only problems in a course, and being able to Edit it, and then
save as is pretty useful.
Revision
3406 -
Directory Listing
Modified
Tue Jul 26 20:49:09 2005 UTC (7 years, 10 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Update Scoring.pm to deal with versioned (gateway) sets. For sets with
assignment_type of 'gateway' or 'proctored_gateway' we report the user's
score to be the score s/he attained on her or his most successful
version of the set.
Revision
3402 -
Directory Listing
Modified
Mon Jul 25 17:29:31 2005 UTC (7 years, 10 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add browsing by set definition files. It will do a full search for these
files, and do some work to find the actual pg files. Also, a minor fix
in the lists of sets in the current course (the "Select ..." line was being
added twice in some cases), some indentation fixing in the souce, and
renamed a variable. Long ago, SetMaker used set definition files, and
then that was replaced with database lookup but a variable still had
setdef in its name. Now that it uses both, this needing fixing.
Revision
3394 -
Directory Listing
Modified
Wed Jul 20 22:35:04 2005 UTC (7 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add a check box that determines whether the csv entries are padded
with spaces. Padding with spaces makes the text easier to read
but it interfers with some spread sheets which expect the csv entries
to contain no extraneous spaces.
We are still not using the CPAN standard CVS input/output mechanisms.
The code is in this module but it is not being used.
-- Mike
Revision
3391 -
Directory Listing
Modified
Wed Jul 20 18:14:58 2005 UTC (7 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changes to the reports of a problem status. This closes bug #631. It
also reports blank errors differently from incorrect answers to support
sequential problem graders. Finally it adds a "state_summary_msg" field
to the problem state which can be used to completely replace the
report on the current problem state usually printed at the bottom of a
problem page.
Revision
3377 -
Directory Listing
Modified
Thu Jul 14 13:15:27 2005 UTC (7 years, 10 months ago) by
glarose
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3362 -
Directory Listing
Modified
Wed Jul 6 15:38:06 2005 UTC (7 years, 10 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make tth use unicode for the preview (as it does for the calls within
the body of the problem). Also, do the preview in display mode, but
fix the tables so that they won't have unwanted borders (really need
to fix the ur.css to get this right) and remove the unneeded initial
<BR> that tth produces.
Revision
3356 -
Directory Listing
Modified
Tue Jul 5 18:20:24 2005 UTC (7 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added support for the tthPreamble.tex file. The effect of this code is
the same as the corresponding code in dangerousMacros.pl:tth(), but the
technique is slightly different.
This is a hack. Eventually, we'd like to have a common out-of-sandbox
method of calling TTH.
Closes bug #799.
Revision
3330 -
Directory Listing
Modified
Sat Jul 2 16:52:31 2005 UTC (7 years, 10 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Major updates to the file manager to allow it to:
1. Show dates and sizes of files (optionally, since some browsers
don't handle the CSS to change to a monospaced font).
2. Provide better control over renaming of uploaded files whose
names already exist (there is a checkbox for overwriting them
automatically; if unchecked, the user is prompted for a new name).
3. Allow the creation or gzipped tar archives from files in the
course directory. Multiple files and directories can be selected
to be included in the archive. If only one file is selected, the
archive will have it's name with ".tgz" appended; if mulitple
files are selected, the archive will get a unique name starting
with the course ID.
4. Provide a checkbox that controls whether uploaded .tgz archives
are unpacked automatically, and a second that controls whether the
unpacked archive file is deleted afterward. Files from the
archive will be unpacked into the current directory, and will
overwrite existing files silently.
5. Follow symbolic links that are to files or directories within the
course hierarchy. In addition, there is a new variable in
global.conf that provides a list of "valid links"; these are
directories to which the FileManager is allowed to follow symbolic
links. The system administator can add directories to this list
in order to allow professors to access limited areas outside their
course directory (but they still need to have a symblic link
within their course to those areas in order to view them).
I think this covers all the current FileManager requests, and this
closes bug#791.
Revision
3329 -
Directory Listing
Modified
Fri Jul 1 23:52:12 2005 UTC (7 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Moved the task of sending the emails to the students to a post_processing portion of the
request handling.
When you email a class, an HTML message is returned informing you that the messages will
be sent. Once the process is completed an email notification is sent to the user (instructor)
sending the email.
This has been lightly tested.
Revision
3321 -
Directory Listing
Modified
Wed Jun 29 02:46:08 2005 UTC (7 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed a problem with showing answers when printing hardcopy
(no idea why this wasn't reported earlier). The CGI::checkboxes
use "on" and nothing to denote whether a checkbox is checked.
We expect 1 or 0 (or undef).
Revision
3316 -
Directory Listing
Modified
Mon Jun 27 00:06:30 2005 UTC (7 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Removed warning message about "users" . We closed the bug defining
multiple users awhile ago so we don't need this anymore. It's
causing trouble
with UserList.pm which now has fields
visible_users and prev_visible_users.
Revision
3304 -
Directory Listing
Modified
Tue Jun 21 19:43:59 2005 UTC (7 years, 11 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Put in hacks to get around: Maximum URL Length Is 2,083 Characters in Internet
Explorer. When sorting by clicking labels we use the GET method and send the
user_id's of the visable users so that we only sort visable users but for over
about 110 students this is above MSIE's limit. If the total URL is under the
limit we will pass visable users. If it is over, we will not pass any and all
users will be displayed. The is almost enought to amke me use FireFox.
Maybe we should replace the GET method by POST but that requires a greater change.
Arnie
Revision
3303 -
Directory Listing
Modified
Tue Jun 21 14:48:02 2005 UTC (7 years, 11 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
When exporting classlist to a file, tell the user the name and location of the
resulting file (e.g. templates/math1.lst) so they can find it in the File Mannager
Arnie
Revision
3287 -
Directory Listing
Modified
Fri Jun 10 18:02:24 2005 UTC (7 years, 11 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added the ability to change passwords on the classlist page and fixed up sorting a bit.
For example commented out sorting by permission which didn't work. I'll work on sorting
next fixing the above and allowing profs to sort by clicking on heading as on the
Student Progress page.
Arnie
Revision
3252 -
Directory Listing
Modified
Thu Jun 2 15:18:50 2005 UTC (7 years, 11 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
1. Don't put any spaces before any numerical data in .csv output. Excel
doesn't have a problem with this but other spreadsheets do according to Mike.
2. Keep backups of all totals files and never overwrite a backup. The File
Manager can be used to delete any unwanted backups.
Arnie
Revision
3247 -
Directory Listing
Modified
Tue May 31 19:53:44 2005 UTC (7 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow periods in set names. This has been tested for a while without
ill effects. Such sets already exist - they can be created
in the Library Browser, but when they were exported, they could not be
re-imported.
Revision
3244 -
Directory Listing
Modified
Fri May 27 16:34:29 2005 UTC (7 years, 11 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The sorting order in scoring files is now never random. It is by last name,
then first name, and then by user_id and is case insensitive. Before it
was by last name only and case sensitive.
Arnie
Revision
3242 -
Directory Listing
Modified
Thu May 26 18:18:40 2005 UTC (8 years ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow sorting by first name, last name, or email address. Also default
sorting is by last name, then by first name, then by user_id where as before
it was by last name only.
Revision
3236 -
Directory Listing
Modified
Fri May 20 16:31:33 2005 UTC (8 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The info section of the login picks up HTML text contained in the
webwork2/htdocs/site_info.txt file. This allows a site administrator
to post a message of the day or urgent site information which is
read by everyone logging into webwork.
The contents of the
course/templates/login_info.txt file is printed after
the site_info.txt message.
Revision
3233 -
Directory Listing
Modified
Thu May 19 20:53:18 2005 UTC (8 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed problems with calculating the average grade correctly.
Regularized the code in Stats and StudentProgress
the next step is to a good chunk of the code which does the actual
arithmetic to a spot in Utils/ so that it can be called by
both Stats and StudentProgress.
This fixes bug 784
Revision
3215 -
Directory Listing
Modified
Sat Apr 16 02:31:20 2005 UTC (8 years, 1 month ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Providing an initial fix for bug 784. I'd like to
continue to work on this module and factor out some of
the calculation loops in order to place them in Utils.
For now this hack (which involves splitting
$num_of_attemts into two variables so it can be updated
and used for two different purposes) should work.
--Mike
Revision
3160 -
Directory Listing
Modified
Sun Feb 13 17:50:55 2005 UTC (8 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Initialize dates to be now+ one week for the open date and
now + two weeks for the due and answer dates. This makes
it less likely that the date will be undefined.
Revision
3129 -
Directory Listing
Modified
Sat Jan 29 01:29:41 2005 UTC (8 years, 3 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Removes starting and ending whitespace from most of the form field entries
when adding users. Some instructors add students by doing copy/paste from
elsewhere. This frequently picks up whitespace which causes the user id
field to fail in checkKeyFields.
Revision
3128 -
Directory Listing
Modified
Sat Jan 29 01:23:57 2005 UTC (8 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3127 -
Directory Listing
Modified
Sat Jan 29 01:21:19 2005 UTC (8 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
CourseID is now part of the subject line when feedback is sent.
This allows you to filter out feedback by course, which is handy
for those of use receiving lots of feedback emails.
Revision
3123 -
Directory Listing
Modified
Fri Jan 28 01:04:06 2005 UTC (8 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
I believe this will fix the bug which sometimes causes multiple users
to appear in the parameters. The problem is that Login.pm filters out
user, key, passwd values and then passes the remaining values to
hidden_fields to be printed on the "relogin" page. Unfortunately if
hidden_fields is passed an empty array then it prints ALL values in the
parameter hash as hidden fields. So if only user and key are present
they will be printed as hidden fields. If user, key and a non-filtered
paramter value are present then only the non-filtered parameter value
will be printed.
The current fix is a conditional which doesn't call hidden_fields at all
if there are no parameters left after the filtering operation.
--Mike
Revision
3111 -
Directory Listing
Modified
Thu Jan 27 04:26:37 2005 UTC (8 years, 3 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added Text/Binary/Automatic buttons for conversion of line-breaks on
file uploads. (Downloaded files are not modified, since we don't know
the user's platform. Could try to use the HTTP_USERAGENT environment
variable to determine this.)
Also produce a warning message if a file is put in the wrong directory
(e.g., .def files should be put in templates).
Fixed some incorrect indenting.
Revision
3102 -
Directory Listing
Modified
Tue Jan 25 21:22:35 2005 UTC (8 years, 4 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
display mode was inadvertently reset with other problem/set elements
that are safe to reset (rather than keep sticky) since they will be updated
from the newly saved database record or thrown away as expected
Revision
3086 -
Directory Listing
Modified
Sat Jan 8 16:42:10 2005 UTC (8 years, 4 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed a bug with the file editor that did not process the file name
correctly in the top-level directory.
Fixed a bug in uploading a file where the name was given a sequence
number even when one was not needed.
Revision
3060 -
Directory Listing
Modified
Tue Dec 21 15:29:55 2004 UTC (8 years, 5 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added the following features:
* Searching on any user data field
* Sorting by any two fields
* Reports duplicate names on classlist import
Closes #654, #664, and #684
Revision
3059 -
Directory Listing
Modified
Tue Dec 21 04:41:03 2004 UTC (8 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added course renaming to CourseManagement, CourseAdmin.
It works like this:
- move the course directory
- move any course subdirectories that are still at their old locations
(like if they were outside the course directory)
- create a new database using addCourseHelper()
- copy the course data into the new course database using
copyCourseDataHelper() (INSERT INTO $new SELECT * FROM $old)
- delete the old course database using deleteCourseHelper()
TODO:
* write helpers for gdbm and sql layouts
* write command-line script
Revision
3044 -
Directory Listing
Modified
Sat Dec 18 20:31:46 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added summary column for the total value of webwork problems done (sum
of the weights of each of the problems correctly completed)
Added column for percentage correct (total weight of correct problems
divided by the total weight of all of the problems).
This set still needs major dehackifying!!!!!!
This fixes bug #747. I hope that I've put in enough
checks to satisfy bug #746 as well. I will close that bug.
Revision
3041 -
Directory Listing
Modified
Sat Dec 18 16:09:54 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed some UI features. In particular the scrolling list is now
used both for selecting students to send mail to AND for selecting
the preview message (if multiple students are selected the first is used
as the preview). The "command table" is now one line taller than it
was, but it it now effectively narrower (just two columns) -- the last
column has only the row and column options and is not used that much.
Revision
3037 -
Directory Listing
Modified
Fri Dec 17 17:08:37 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
3035 -
Directory Listing
Modified
Fri Dec 17 17:02:37 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added code to display {status_message} when call is redirected from
PGProblemEditor.pm
If course_info.txt does not exist as a file create it (using `echo "">course_info.txt`)
Hope that's not too dangerous, but I didn't feel like opening the file :-)
This keeps unnecessary warnings from occuring later when a user would be warned that the
course_info.txt file didn't exist.
Revision
3034 -
Directory Listing
Modified
Fri Dec 17 16:59:48 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Move options subroutine up to ContentGenerator.
Cleanup commented out code
Add facility for reading {status_message} to display messages when a call
is redirected from PGProblemEditor.pm
Revision
3033 -
Directory Listing
Modified
Fri Dec 17 16:57:53 2004 UTC (8 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Thu Nov 18 16:00:37 2004 UTC (8 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
2998 -
Directory Listing
Modified
Thu Nov 18 01:45:29 2004 UTC (8 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Made modifications to the user interface so that "show saved answers"
can now be turned off. If the default mode was on, then this feature
could never be turned off. (Unchecked check boxes don't return 0, they
are simply not defined.)
Revision
2996 -
Directory Listing
Modified
Thu Nov 11 15:52:08 2004 UTC (8 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added line to shift column numbers so that they start at 1 instead of
0 (this brings this in line with the modifications made to SendMain.pm)
To do: merge the two procedures used in sendmail and in grades.pm which
merge scoring data with the message. Then future updates won't break
the code.
Revision
2942 -
Directory Listing
Modified
Wed Oct 20 21:52:06 2004 UTC (8 years, 7 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The lines of data were being sorted incorrectly due to the time-stamp
that is being added to the line, and due to the correct/incorrect
answer data that was added in order to color-code the answer display.
Revision
2939 -
Directory Listing
Modified
Wed Oct 20 16:45:34 2004 UTC (8 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
add check for undefiend user param (closes bug #714). use $userID for
variable containing the ID of a user (not $User, which is typically used
for a user RECORD).
Revision
2913 -
Directory Listing
Modified
Wed Oct 13 01:55:15 2004 UTC (8 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
optimizations in database access (makes a big difference).
My notes:
Here's the initial timing data for a set with 10 problems:
TIMING 57300 2 1097622363.881851 (16.734902) mth162: END (assumed)
$mergedRecord is never used in FieldHTML(). However, it is populated
with a merged set or problem, which requires two database calls and a
merge operation. It appears to be OK to get rid of these calls
altogether.
TIMING 57582 0 1097624803.340321 (11.219321) mth162: END (assumed)
i'm not as worried about the several DB calls in
handle_problem_numbers(), since that only happens when "Save Changes" is
clicked. not looking at those for now...
in initialize(), the global set is fetched from the database at the
beginning (and put into $setRecord). then it is fetched again in two
places, first in a conditional if the "submit_changes" param is defined,
and then in the following conditional, when "submit_changes" is defined
and there was no error. taking this out...
(those conditionals are pretty weird to begin with. i would have
expected something more like "if (submit_changes) { ... unless (error) {
... } }". probably from grafting code together?)
ok, the big one is getting pre-fetched records into FieldHTML. I added
$setRecord and $problemRecord parameters to FieldHTML (and $Set and
$Problem parameters to FieldTable to pass through to FieldHTML), and
pre-fetch GlobalProblems, UserProblems, and MergedProblems en masse
before going through the problem IDs in body().
TIMING 58456 0 1097632191.012939 (4.516615) mth162: END (assumed)
And it's only a little more than that when viewing for a particular
user:
TIMING 58453 0 1097632169.074723 (6.513201) mth162: END (assumed)
Revision
2902 -
Directory Listing
Modified
Tue Oct 12 02:30:14 2004 UTC (8 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Made changes to the way $r->param("user") is handled, so that it
is always called in a scalar context.
This avoids errors caused if user is defined more than once.
Revision
2894 -
Directory Listing
Modified
Mon Oct 11 19:37:42 2004 UTC (8 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed error reporting when there is an error in date/time. This
specifies what the subroutine thinks date and time are, making it
easier to discover the error in the format of the input
I also removed a line which tried to remove the "at" from a format --
such hehelpfuness being unappreciated by the unformatDateTime
subroutine.
Revision
2892 -
Directory Listing
Modified
Mon Oct 11 13:32:01 2004 UTC (8 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Evaluate $r->param("user") in a scalar context in case user has been
defined more than once.
It would also be nice to find where the double definitions are coming
from.
Revision
2834 -
Directory Listing
Modified
Mon Sep 27 19:08:47 2004 UTC (8 years, 7 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Preserves sticky values on all form submissions
Added reset form button to delete any unsaved changes
Added file error messgaes for headers and problems with
non-existant, invalid, or duplicate filenames
Revision
2810 -
Directory Listing
Modified
Tue Sep 21 20:08:51 2004 UTC (8 years, 8 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added ability to duplicate a set.
Removed header files, now viewable/editable from ProblemSetEditor
Changed links to ProblemSetDetail
Lists skipped sets when importing.
Revision
2809 -
Directory Listing
Modified
Tue Sep 21 20:07:48 2004 UTC (8 years, 8 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
2808 -
Directory Listing
Modified
Tue Sep 21 20:05:16 2004 UTC (8 years, 8 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed ProblemSetEditor calls to ProblemSetDetail
Added Davide Cervone's patches
- Fixes formatting
- Made usage more consistent
- Added appropriate error messages
Closes #663.
Revision
2779 -
Directory Listing
Modified
Tue Sep 14 18:55:58 2004 UTC (8 years, 8 months ago) by
apizer
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make $COL[1], not $COL[0], the first column of the merge file.
Also stop negative indexes from cycling, e.g. $COL[-12] should
not give $COL[8] in a 10 column merge file.
Arnie
Revision
2755 -
Directory Listing
Modified
Fri Sep 10 02:35:19 2004 UTC (8 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
replaced hand-rolled header listing code with calls to
listFilesRecursive(). Libraries defined in $courseFiles{problibs} will
not be scanned, cutting down on time to list. Closes bug #623.
Revision
2738 -
Directory Listing
Modified
Sun Sep 5 18:00:23 2004 UTC (8 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
2736 -
Directory Listing
Modified
Sun Sep 5 01:03:13 2004 UTC (8 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed a null character to \000 which caused the file to be
considered a binary file by CVS. I don't know why it is there in the
first place, however. Anyone know?
Revision
2735 -
Directory Listing
Modified
Sun Sep 5 00:54:31 2004 UTC (8 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Modified ShowAnswers.pm so that the individual answsers are colored coded to
indicate whether they are correct or not. I also added a permission
level called "dont_log_past_answers" that is true for professors (so
the answer log won't be cluttered up with professors answers, which we
don't really care about seeing).
While I was at it, I converted ShowAnswers.pm to use the CGI package
rather than explicit HTML.
Revision
2734 -
Directory Listing
Modified
Sat Sep 4 23:31:46 2004 UTC (8 years, 8 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
When a pg file has auxiliary files (like .gif images), it is often
stored in a separate directory in order to keep all the files
together. In this case, the Library Browser will show the
subdirectory as a separate entry in the problem directory list, even
though the problem is logically part of its parent directory.
This patch modified the Library Browser so that these single-pg-file
directories are merged with their parents, as long as they also
include other non-pg-files.
It also provides a method of controling the library browser on a
directory-by-directory basis using specially named files. If a
directory contains a file named "=library-ignore", then the directory
is never shown in the directory menu. If it contains a file called
"=library-combine-up", then its contents are considered to be part of
the parent directory, even if it has more than one pg file. If it
contains one called "=library-no-combine", then the directory is
always listed separately in the menu, even if it has only one pg file.
Revision
2724 -
Directory Listing
Modified
Thu Sep 2 22:53:00 2004 UTC (8 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
cleaned up mike's permission level patch to Feedback.pm:
- added receive_feedback permission (conf/global.conf.dist)
- use standard hasPermissions() function (lib/WeBWorK/ContentGenerator/Feedback.pm)
- check for undefined and empty string in permission field (lib/WeBWorK/Authz.pm)
Revision
2703 -
Directory Listing
Modified
Mon Aug 30 19:32:57 2004 UTC (8 years, 8 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
fixed bad logic that caused problems if user selected
"import multiple sets" but then chose only one set
(in this case handler erroneously expected a filename)
also tweaked sorting by name to be properly alphanumeric
Revision
2686 -
Directory Listing
Modified
Thu Aug 26 02:38:08 2004 UTC (8 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed bug in computation of average number of attempts (counter was not
being reset). Also made display of average number of attempts display
tenths (these are small numbers as it is, it emphasizes that it is an
average, and it fits well below 2 digit percentages in the same table).
Revision
2685 -
Directory Listing
Modified
Thu Aug 26 01:34:30 2004 UTC (8 years, 9 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed logic for the check/submit buttons. Previously, if a student had 1
attempt remaining, they only got a check button. The problem was that
can{recordAnswers} was used for both deciding record/submit and for whether
or not to produce the Submit button. On the last submission, these are
different. So, this adds a new field to can/must/will so that one field
says whether we can record the current attempt, and another says if we
can generate a Submit button.
Revision
2652 -
Directory Listing
Modified
Thu Aug 19 15:45:52 2004 UTC (8 years, 9 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added special handling of ' Top' directory for problem templates
now selecting top will show files in top directory not literal "Top" directory
fixes bug #630
Revision
2635 -
Directory Listing
Modified
Tue Aug 17 18:51:46 2004 UTC (8 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Actually record answers of zero in the answer log. An EMPTY string was
logged if the student answer was not a TRUE VALUE. Thus, answers of zero
were not being logged (although they were still in the transaction log).
Revision
2562 -
Directory Listing
Modified
Fri Jul 30 22:57:25 2004 UTC (8 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Merged changes from the following commit to rel-2-1-a1.
Revision 1.41.2.4, Tue Jul 27 22:36:57 2004 UTC (3 days ago) by gage
Branch: rel-2-1-a1
Changes since 1.41.2.3: +4 -2 lines
Allows .html, .gif, .png, .txt as well as .pg files to be uploaded and
downloaded from the template directory and files under it. Still can't
upload/download to the html directory
This is not a final solution, but a hack that make workarounds for many
operations possible for those who do not have direct unix access. It's
still too clunky, but it's a start.
Revision
2539 -
Directory Listing
Modified
Mon Jul 19 22:17:46 2004 UTC (8 years, 10 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
before, after, between did not cover all cases. The choice of the marginal
cases was decided by the best behavior when displaying problems from outside
an actual problem set (in which case the dates may all equal now).
Revision
2479 -
Directory Listing
Modified
Sat Jul 10 16:28:56 2004 UTC (8 years, 10 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
an ugly hack to convince safari to download the damn file! apparently
just sending a "Content-Disposition: attachment" header isn't enough. it
has to be a BINARY FILE! WTF! better solutions welcome.
Revision
2465 -
Directory Listing
Modified
Thu Jul 8 14:53:47 2004 UTC (8 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added routines allowing the uploading, downloading and deletion of
.pg files under the templates directory. Links are not followed.
It's probable that more checks and user interface messages will be
needed.
Revision
2456 -
Directory Listing
Modified
Wed Jul 7 18:42:03 2004 UTC (8 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
2455 -
Directory Listing
Modified
Wed Jul 7 18:15:20 2004 UTC (8 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
2450 -
Directory Listing
Modified
Wed Jul 7 14:37:32 2004 UTC (8 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed the misnamed problem_header to hardcopy_header which is a more accurate
description of the variables use.
Hardcopy.pm now consults hardcopy_header as opposed to set_header
This addresses some of the concerns in bug #556
Revision
2431 -
Directory Listing
Modified
Thu Jul 1 20:31:13 2004 UTC (8 years, 10 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Provide mechanism for adding extra problem library buttons
to the Library Browser.
These changes allow you to specify (via course.conf or global.conf)
that certain subdirectories of the templates directory are to have
separate buttons in the top panel of the Set Maker. These buttons
only appear if the directories actually exist, and any other
directories are listed in the "Local Problems" button as usual. If
the list of these directories is empty (the default), then the results
are just like they currently are, but it allows one more level of
separation of the hierarchy for those who want it.
The idea is to make symbolic links to the problem libraries from
Rochester, ASU, etc., and have separate buttons for these. This
avoids having one monster menu with all the problems in it. (Of
course, you could make buttons for any directories you want.) There
are instructions in global.conf.dist that exmplain how to do configure
this.
Revision
2429 -
Directory Listing
Modified
Thu Jul 1 16:37:39 2004 UTC (8 years, 10 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Adjusted test for whether a value is really an override. Before it was
just whether the value was defined, but now we automatically promote
undef to empty strings.
Revision
2426 -
Directory Listing
Modified
Wed Jun 30 15:18:49 2004 UTC (8 years, 10 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Error.pm will now serve as 404 not found page
so far only used for bad course names
fedhecks for bad course names
should work now for ww1 courses (bug #584)
Cvs: ----------------------------------------------------------------------
Revision
2415 -
Directory Listing
Modified
Sat Jun 26 16:12:16 2004 UTC (8 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Altered course in how to set vertical alignment of images, so this
undoes calls for javascript, and passes more arguments to imagegenerator
(which can be used someday soon).
Revision
2394 -
Directory Listing
Modified
Thu Jun 24 21:06:22 2004 UTC (8 years, 11 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Moved problem-separation snippet to ABOVE the problem (to get the
line above the first problem and simultaneously avoid having to check
for being the last problem).
Also put the correct answers in verbatim mode to avoid having to make
and-hoc adjustments to the answer string (the result will be exactly
what the instructor typed, no matter what).
This also avoids a problem when the correct answer begins with "[",
where LaTeX would think this was part of an optional parameter to
\item and either eat the answer (up to the "]") or fail to run
entirely (if the answer were "[1,infinity)" for example).
If you don't like the verbatim, you can take it out, but then add {}
or \relax after the \item to avoid this problem.
Revision
2378 -
Directory Listing
Modified
Wed Jun 23 23:10:44 2004 UTC (8 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
cleaned up form layout and improved error handling. also, instead of
having a separate set of field
for the "admin user", implemented an option to "add the WeBWorK
administrators to the new course".
Revision
2355 -
Directory Listing
Modified
Mon Jun 21 19:51:49 2004 UTC (8 years, 11 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
redid permissions checks
stopped professor from deleting or altering own record
(to avoid accidentally locking oneself out of a course)
Added column for login status
Revision
2351 -
Directory Listing
Modified
Fri Jun 18 20:48:46 2004 UTC (8 years, 11 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added export functionality with new export mode
redid permissions checks with hash
took out links for users that don't have permissions to view the linked pages
Revision
2340 -
Directory Listing
Modified
Thu Jun 17 16:52:24 2004 UTC (8 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
A better fix for the "add user" link problem.
this still calls AddUser module. That will soon
be replaced by a call to UserList module once
Robert is done with his work.
--Mike
Revision
2338 -
Directory Listing
Modified
Thu Jun 17 14:35:05 2004 UTC (8 years, 11 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added permissions checks
it may be necessary to give someone (like a TA) that does not have
the ability to assign sets, the ability to view how sets/users are
assigned for troubleshooting purposes but for now, they cannot
Revision
2321 -
Directory Listing
Modified
Wed Jun 16 01:27:07 2004 UTC (8 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added hack for allowing exporting of set definition files.
If there is a conflict the earlier files are backed up. So set 0 is
always exported to set0.def and a previous set0.def file moves to
set0.def.bak. There is only one backup.
The messages need work and the utilities, particularly saveProblem should be
moved to the Utils files.
--Mike
Revision
2314 -
Directory Listing
Modified
Tue Jun 15 14:46:37 2004 UTC (8 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Closed up the two lines of instruction at the top of the page
Added a link to "Add users". will eventually modify this to
a button so that it matches the rest of the page.
Revision
2279 -
Directory Listing
Modified
Tue Jun 8 17:13:45 2004 UTC (8 years, 11 months ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
removed ability to delete "visible" users
change red background to ResultsWithError class
CVS ----------------------------------------------------------------------
Revision
2269 -
Directory Listing
Modified
Mon Jun 7 02:50:52 2004 UTC (8 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added success message when creating a new set. Also,
added requested feature - when creating a new set, allow the user to assign
it to themselves. This is done through javascript. Only users with js
turned on get it, but it is kind of a frill. Non-js users see just the old
behavior.
Revision
2256 -
Directory Listing
Modified
Sun Jun 6 00:20:14 2004 UTC (8 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added comments -- should we enter the contact person as a student in the admin class
so that we can use the email facility to contact people hosted on this server?
Revision
2252 -
Directory Listing
Modified
Fri Jun 4 23:21:48 2004 UTC (8 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Allow students to check answers between the due date and the answer date. This doesn't let them see the correct answers, but it does let them enter values to see if those are right without recording them.
Revision
2250 -
Directory Listing
Modified
Fri Jun 4 19:10:30 2004 UTC (8 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed the following bug: if you change a student's status on a problem to 1 and give them a correct attempt, but then go to the stats page or student progress page, you won't see the change. The reason is that those pages check "attempted" which cannot be changed through this page directly. Now this page updates attemted fields based on if (correct+incorrect attempts) > 0.
Revision
2242 -
Directory Listing
Modified
Wed Jun 2 18:21:38 2004 UTC (8 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed formatting of the "Add course" sub page.
When a new course is created the course name, id, institution and so forth
are logged in hosted_courses.log in admin/logs
This logging facility must be defined in the admin/course.conf file.
--Mike
Revision
2241 -
Directory Listing
Modified
Wed Jun 2 14:54:26 2004 UTC (8 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Rearranged stats table. "good" results are now always to the right
(high scores, low number of attempts).
Use dashes when numbers are repeated in order to prevent confusion.
Revision
2230 -
Directory Listing
Modified
Mon May 31 02:20:27 2004 UTC (8 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed "Act on" button to say "Update" in bold. Also, added mark all button. Also, added clear all marks button. Also, "Add me" checkboxes are now sticky, unless you update and they are added. Then you get an additional message by the add box. Mayble we should flip the css class of the "Add me" line too to signal who was added. Hidme boxes aren't sticky since their problems usually get hidden anyway.
Revision
2225 -
Directory Listing
Modified
Fri May 28 23:15:44 2004 UTC (8 years, 11 months ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added two more controls next to View Problems: choice of display mode, which includes none for those who don't like to see their problems displayed, and one to choose how many problems you get at once. Also, problems who's rendering cause an error get their message displayed with ResultsWithError.
Revision
2207 -
Directory Listing
Modified
Mon May 24 18:05:26 2004 UTC (9 years ago) by
mschmitt
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Edited Labels to make clear that "All students" meant all students in the course,
not all students shown after filtering. This should eventually be fixed so that
"All students" only refers to those who pass the filtering.
Revision
2205 -
Directory Listing
Modified
Mon May 24 16:05:10 2004 UTC (9 years ago) by
toenail
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
the published field is always defined but is empty if not yet set to 1 or 0
now if the published field is empty it is set to 1
this change can be undone once all sets have a published field set to 1 or 0
Revision
2148 -
Directory Listing
Modified
Sat May 22 01:08:09 2004 UTC (9 years ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added ability to import the contents of another course's templates
directory when creating a new course. this is supported in bin/addcourse
with the --templates-from=COURSEID switch and in the web interface with
an additional form field.
Revision
2113 -
Directory Listing
Modified
Fri May 14 21:20:56 2004 UTC (9 years ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed bug 485. The problem occured because with a gdbm database, the global_user is used for both global information, and appears as a user. We have to avoid modifying its information twice. This seems to work, but the "right" fix is probably to work on the database code. With a gdbm database, the global_user should be filtered out of calls dealing with users and only be used on calls about global information. That would mimic the sql behavior better. It would also supress the global_user from appearing in user lists (which I think would be better).
Revision
2104 -
Directory Listing
Modified
Thu May 13 20:49:18 2004 UTC (9 years ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
several changes towards closing bug #481. (1) removed database "multiple
source" warnings. (2) if sql database name is blank, "webwork_$courseID"
is used. (3) removed sql execution warnings. (4) allowed blank sql admin
password.
Revision
2081 -
Directory Listing
Modified
Tue May 11 19:06:23 2004 UTC (9 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Sat May 8 19:35:21 2004 UTC (9 years ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
2051 -
Directory Listing
Modified
Sat May 8 17:59:13 2004 UTC (9 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
More user interface work on SendMai.pm
Resolved bug #390 Now we simply report the number of students
to which we have attempted to send email, rather than list the email addresses.
Revision
2039 -
Directory Listing
Modified
Fri May 7 20:59:30 2004 UTC (9 years ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed urlpath->new to urlpath->newFromModule. Also added check for when
using the problem library, that the Library directory exists, and if not,
try to fix it ourselves.
Revision
2038 -
Directory Listing
Modified
Fri May 7 20:09:01 2004 UTC (9 years ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
If the instructor sets the set header file to a file which doesn't
exist, then we copy the default to that file. Having no set header
is an error, and it is easier to edit something than it is to start
from scratch. Also, balanced the size of the two buttons on the page.
Revision
2024 -
Directory Listing
Modified
Fri May 7 06:07:58 2004 UTC (9 years ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed bug #477 and similar problems when there are no local sets; fixed bug
where top level local files were not detected, made "Edit it" link come back
if you are not looking at a library file, and floated "Try it" and "Edit it"
to the right.
Revision
2001 -
Directory Listing
Modified
Wed May 5 01:53:51 2004 UTC (9 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
re-fixed getRecord subroutine to properly handle blank fields at the end
of lines. (Adding a delimiter is not enough, perl deletes all terminal
blank elements at the end of a list -- as far as I can determine.) One
needs to add "$delimeter___" so that the last field is non-blank.
This appears to fix bug #471
Revision
1980 -
Directory Listing
Modified
Wed Apr 28 15:51:25 2004 UTC (9 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1953 -
Directory Listing
Modified
Wed Apr 7 01:17:58 2004 UTC (9 years, 1 month ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed problem where a success message was issued even when
a mail merge file was not correctly saved.
Also made cosmetic modifications to the error message format
so that it doesn't look as frightening and the important
error message is highlited more than the boiler plate message
Revision
1950 -
Directory Listing
Modified
Mon Apr 5 20:52:54 2004 UTC (9 years, 1 month ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed a line return that was causing troubles one webwork, but not on
webwork3. "<br>\n" produced two line breaks within <pre> on webwork,
but only one on webwork3, "\n" produced no line breaks on webwork3
and one on webwork.
It seems safest to go with "<br>" which seems to produce a single line
break on each machine.
Revision
1939 -
Directory Listing
Modified
Sun Apr 4 15:18:25 2004 UTC (9 years, 1 month ago) by
jj
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
On a multiple checkbox question, the different checked boxes are separated
by ^@ in the log file. They don't look nice on a web page, show they are
now switched to commas in showHTML.
Revision
1920 -
Directory Listing
Modified
Tue Mar 23 01:55:14 2004 UTC (9 years, 2 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
rewritten:
* no duplicated code (no copy-n-paste)
* error messages if the wrong objects are selected
* uses $self->reply_with_redirect()
* uses ScrollingRecordList
* more descriptive button names, values
Revision
1889 -
Directory Listing
Modified
Mon Mar 15 21:35:12 2004 UTC (9 years, 2 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
conformance with unified request object, etc.
SMALL formatting cleanups.
this module needs some work, and there is stuff to factor out -- there
is a lot of copy-n-paste from other modules.
Revision
1887 -
Directory Listing
Modified
Mon Mar 15 21:12:48 2004 UTC (9 years, 2 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Welcome to the ContentGenerator skeleton!
This module is designed to help you in creating subclasses of
WeBWorK::ContentGenerator. Follow the instructions marked "SKEL" below
to create your very own module.
When you've finished, I recommend you do some cleanup. These modules are
much easier to maintain if they doesn't contain "vestigal" garbage code.
Remove the "SKEL" comments and anything else that that you're not using
in your module.
Revision
1881 -
Directory Listing
Modified
Mon Mar 15 03:50:05 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1878 -
Directory Listing
Modified
Sat Mar 13 05:09:20 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Temporary fix for problem with hardcopy.
#my $singleSet = $r->urlpath->args("setID");
my $singleSet; #FIXME trace down how sets are being passed to hardcopy.
$singleSet was receiving the notion 1/8
@sets was getting the correct value of the number of the set.
Looks like $singleSet is receivinv a hash??
The calling code needs to be checked over and reconciled with the responding code.
Revision
1863 -
Directory Listing
Modified
Sun Mar 7 02:29:25 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a primitive file reading capability to Grader.pm.
Now you can attach the message from an email file
called report_grades.msg in the email directory which is merged with the
file report_grades_data.csv in the scoring directory.
there is a lot of code borrowed from SendMail and from Instructor which can be factored out.
It provides a primitive version of a feature that has been requested --
to report exam scores as well as webwork scores.
Revision
1858 -
Directory Listing
Modified
Sat Mar 6 18:50:31 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added support for the new module Grades.pm which supports student grades
Also changed ProblemSets.pm so that it welcomes the effectiveUser rather than the user.
Revision
1847 -
Directory Listing
Modified
Sat Mar 6 15:55:07 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added more statistics on how students are doing.
There is still a lot o code to be cleaned up.
Once the calculation and the display are better separated it will be easier to
create statistics that count studnets appropriately. e.g. dropped stduents and professors aren't counted.
Revision
1846 -
Directory Listing
Modified
Sat Mar 6 00:48:16 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changes to the ways links are constructed on this, the front page,
of WeBWorK. I believe this is where links missing webwork2 or missing
the course name started to appear. In fact I'm surprised it worked at
all.
the current patches are hacks. This page needs to be adapted to
URLpath.
It would be a good script to do next.
--Mike
Revision
1843 -
Directory Listing
Modified
Fri Mar 5 05:01:37 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Some cosmetic changes in the table
Added a safety switch for deleting sets.
Added a call to Compatibility::update_global_user to fill in
global_user records if no globa_user has yet been assigned.
Revision
1833 -
Directory Listing
Modified
Thu Mar 4 17:40:04 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1775 -
Directory Listing
Modified
Wed Feb 4 00:32:12 2004 UTC (9 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Made changes at line 552 which check that the original student answer has actually been
defined. This should be guaranteed by the answer evaluators but ........
Revision
1773 -
Directory Listing
Modified
Tue Feb 3 00:53:31 2004 UTC (9 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Corrected sorting by user_id. Code now works correctly. Before the sorting for this case was occuring by accident
with the SQL database.
Made changes to the interface in SendMail. The radio buttons are now horizontal to match the
radio buttons on the Instructor::Index page. Changed Id to Login to make the sorting parameter clearer.
changed the format of the popmenu on the Instructor::Index page to match the format used on the SendMail page.
Revision
1770 -
Directory Listing
Modified
Mon Feb 2 23:11:13 2004 UTC (9 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed the code that retrieves all problem records for a set. Now, the
only call made (per set) is getAllUserProblems(). The extraneous call to
listUserProblems() has been removed.
Revision
1769 -
Directory Listing
Modified
Sat Jan 31 14:47:44 2004 UTC (9 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Replaced "getuserProblems by getAllUserProblems when printing statistics for a single user (many sets)
The time when from 178 to 35 using GDBM. It went from 15sec to 16sec (on a different course)
when using sql.
--Mike
Revision
1768 -
Directory Listing
Modified
Sat Jan 31 14:46:18 2004 UTC (9 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed the size of the font for printing out the results of the scoring file.
This file needs to be reviewed carefully. There is a lot of crufty code.
The use of s{tyle=>'.....' should be replaced by items in the template in
this file and throughout the Instructor modules.
Revision
1766 -
Directory Listing
Modified
Sat Jan 31 04:08:57 2004 UTC (9 years, 3 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Made major modifications to user interface on Instructor/Index page.
Added use of getAllUserProblems in main loop for Stats.pm problems when displaying
statistics for a given set. This speeds GDBM from 8 sec to 2. SQL stays at around 22-23 seconds.
Also addded code to sort_method which checks that the number of attempts has been defined.
If not it returns 0.
--Mike
Revision
1750 -
Directory Listing
Modified
Sun Jan 25 18:20:14 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Sun Jan 25 15:53:23 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1744 -
Directory Listing
Modified
Fri Jan 23 21:46:37 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Make sure that if one message is reported for answers then all
messages are reported (even if some of the messages are blank).
This was clearly a typo in the original code where a decision was
made on $answerMessages instead of $showAnswers.
This fixes bug #370
Revision
1739 -
Directory Listing
Modified
Fri Jan 23 16:49:09 2004 UTC (9 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
moved Assigner to UsersAssignedToSet. created new Assigner module, and
wired it to /$courseID/instructor/assigner/. It doesn't do anything yet,
but it will allow the assignment of multiple sets to multiple users, all
in one shot.
Revision
1725 -
Directory Listing
Modified
Mon Jan 19 04:23:42 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Put "guest user" button in a separate form.
Despite the fact that it was the second button
a return (in most browsers) would trigger
the practice login rather than the standard one,
much to the users surprise.
--Mike
Revision
1722 -
Directory Listing
Modified
Sun Jan 18 00:11:13 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
A link to the instructor tools is placed prominately at the top of the page.
It is identical to the link to instructor tools on the left.
This responds to bug #325, but may not close it completely.
Revision
1712 -
Directory Listing
Modified
Thu Jan 15 22:45:34 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added warnings to Assigner so that folks don't unassign students
by accident.
You can now select the number of users you would like to add.
You still cannot immediately assign sets to students, but there
is written warning about this.
Revision
1711 -
Directory Listing
Modified
Thu Jan 15 19:42:44 2004 UTC (9 years, 4 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Add users will now handle 5 users at once.
Add a device for allowing this number to change.
The userlist pop-down now defaults to add users with matching ids.
--Mike
Revision
1687 -
Directory Listing
Modified
Fri Dec 26 15:00:02 2003 UTC (9 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Modified print out so that the problem totals and index totals
have %4.1f format. The field width is 4 and the number of decimal points is 1.
This closes bug #284
--Mike
Revision
1684 -
Directory Listing
Modified
Wed Dec 24 00:59:25 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added automatic guest logins:
With the presence of a "login_practice_user" paramter, Authen.pm will
log the user in using the first unused practice user account. Login.pm
now displays a "Guest Login" button that sends the above parameter, but
only when the course has practice users. Currently, cookies are not sent
for practice users.
Revision
1683 -
Directory Listing
Modified
Tue Dec 23 06:03:33 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added cookie support for authenticaion. the "WeBWorKAuthentication"
cookie is used to retrieve the "user" and "key" parameters. the cookie
is sent if a "send_cookie" parameter is present, and persists for 30
days unless canceled by an explicit "logout".
Revision
1681 -
Directory Listing
Modified
Thu Dec 18 23:15:34 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
- Assigner and SetsAssignedToUser now refuse to unassign sets from the
GlobalTableEmulator's "global user". Closes bug #283.
- New "unassign from all users" button in Assigner.
- Cosmetic changes to path() and title() in several modules.
Revision
1675 -
Directory Listing
Modified
Wed Dec 17 21:45:17 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
I wrote a really great log message, and then I lost it.
So now I'm a little pissed off.
Added code to pre-fetch users, global problems and user problems outside
of the main processing loop of scoreSet(). This allows the use of
getAllGlobalProblems() and getAllUserProblems(), which is much more
efficient than what was being done before:
For a course with 154 problems in 9 sets, all of which are assigned to
all users, scoring all sets with "IncludeIndex" and "Record Scores for
Single Sets" took the following times:
Original code: 34.07 sec
New code: 8.68 sec
This is around four times as fast.
I initially attemped to rewrite the main loop to allow the use of
getAll*Problems(), but this proved to be time consuming and error prone.
I eventually decided to leave the main loop alone, except to replace the
DB calls inside it with accesses to pre-fetched records.
Revision
1667 -
Directory Listing
Modified
Fri Dec 12 02:24:30 2003 UTC (9 years, 5 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1661 -
Directory Listing
Modified
Mon Dec 8 23:07:46 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Implemented a schema-level "count" function in the WW1Hash schema.
Added countSetUsers and countProblemUsers to DB.
Replaced SCALAR calls to listSetUsers with calls to countSetUsers.
Update Schema documentation.
The immediate advantage of this is to make ProblemSetList MUCH faster.
Revision
1639 -
Directory Listing
Modified
Wed Nov 19 18:48:57 2003 UTC (9 years, 6 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1627 -
Directory Listing
Modified
Sat Nov 8 02:54:56 2003 UTC (9 years, 6 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
this module allows you to change which sets are assigned to a given
user. it is not yet accessible via the WW UI, but you can access it with
a URI like "/webwork2/$courseID/instructor/users/$userID/sets/"
Revision
1623 -
Directory Listing
Modified
Sat Nov 8 02:51:34 2003 UTC (9 years, 6 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
changed some variable names to make them more readable.
I've been calling variables that contain the names of courses, users,
sets, or problems things like "$courseID", "$userID", "$setID", and
"$problemID", and lists of said names "@courseIDs", "@userIDs",
"@setIDs", and "@problemIDs".
On the other hand, I call variables that contain ACTUAL RECORD OBJECTS
things like "$User", "$Set", and "$Problem", and lists of them "@Users",
"@Sets", and "@Problems". (Note the capitalization!)
This makes it totally clear whether we're talking about an OBJECT or and
ID. This is a Good Thing.
Revision
1619 -
Directory Listing
Modified
Tue Nov 4 23:18:40 2003 UTC (9 years, 6 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added problem numbers along top when viewing all sets for a given user.
unfortunately, this slows down display, since nothing can be sent to the
client until all sets are processed. closes bug #272.
Revision
1611 -
Directory Listing
Modified
Mon Oct 27 13:04:09 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Modified the way timers were controlled. Timers must now be defined
before they will be called in this script. This fixes a bug that
appeared only on webwork.math.rochester.edu where the timers were
turned off.
--Mike
Revision
1605 -
Directory Listing
Modified
Wed Oct 22 17:05:49 2003 UTC (9 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
resolves bug #268:
This is a problem with the naming of the popup menu options.
"selected users" refers to the users checked in the user table, below
the action options. "users with matching user IDs:" refers to the list
of user IDs entered into the text field to the right of the popup menu.
(note the colon.)
The reporter was attempting to specify "selected users" by entering
their user IDs into the text field intended for "users with matching
user IDs".
I have changed the name of the "selected users" option to "users
selected below", which makes the distinction easier to grok.
Revision
1595 -
Directory Listing
Modified
Mon Oct 20 15:29:37 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added timing code for Instructor::Index to Instructor::Index.pm and
also to WeBWorK.pm. We can remove this once we have finished testing
various database configs.
--Mike
Revision
1594 -
Directory Listing
Modified
Mon Oct 20 05:20:46 2003 UTC (9 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
reworked UserList.pm to have a more modular structure:
1. all modification of user list happends in action_handler routines
2. the whole page is one form
3. view properties (what is shown? what is selected?) survive actions
4. can choose to apply actions to all/selected/visible users
this is more useful than the old UserList, and can be seen as a
prototype for additional refactoring.
also fixed Index.pm to work with the new UserList interface.
Revision
1593 -
Directory Listing
Modified
Sun Oct 19 21:24:26 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added note to title of scrolling lists which indicates the initial
number of users or sets which have been selected. This is useful
since the initial selections are often hidden on the list.
Updating this number would require javaScript, which we would prefer to
avoid. This closes bug #257
--Mike
Revision
1591 -
Directory Listing
Modified
Sat Oct 18 20:46:01 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1590 -
Directory Listing
Modified
Fri Oct 17 03:42:07 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added various sorting methods to the statistics page. This makes
the sorting more flexible, but it also slows down the process somewhat.
This results bug #153
--Mike
Revision
1582 -
Directory Listing
Modified
Sun Oct 12 19:31:36 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixes bug #254. The showHints check box will not be shown unless
the number of incorrect attempts is greater than or equal to the
value of showHints.
The showHints checkbox now appears in red (and in a new <div> which
means a new paragraph on some browsers) This helps alert a student that
a hint is now available.
--Mike
Revision
1579 -
Directory Listing
Modified
Sun Oct 12 04:09:14 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
A new version of the index page for instructor functions with a better
layout. All of the buttons now do something appropriate, although
several of the functions should be rewritten to be more efficient.
For example it should be possible to change many students/dates at one
time. There are other functions that should be added as well --
assigning students to sets for example.
--Mike
Revision
1577 -
Directory Listing
Modified
Sun Oct 12 04:03:08 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The beginnings of a module that will allow you to add new users
efficiently. For now it is just a copy of the old index page,
including links to the webwork 1.9 tools
-- Mike
Revision
1576 -
Directory Listing
Modified
Sun Oct 12 02:43:12 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
This module is a candidate to replace the Index.pm page and module.
The displayed "control panel" is set up. Only the
"become student" control works right at the moment.
You can access it by replacing instructor by instructor2 in the url
for the instructor index page.
--Mike
Revision
1542 -
Directory Listing
Modified
Sat Sep 27 19:24:32 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Replaced table and check box display of sets and users with scrolling list
display of sets and users.
Used the new getObjects commands whenever possible.
--Mike
Revision
1539 -
Directory Listing
Modified
Sat Sep 27 16:44:53 2003 UTC (9 years, 7 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
When recording answers the answer strings are now obtained directly from the original
formField entries, rather than from the processed version in the answer hashes.
This insures that the memorized answers will be identical with the ones that would
have been submitted from the form.
This is important for answers with multiple values which are represented by
null separated strings. The answer evaluation process converts these strings
to references to arrays, and -- in order to have good display properties -- the
original_student_answer slot in the AnswerHash contains a representation such as
( 4, 5, 6).
This is NOT suitable for resubmitting as an answer in a form field and is therefore not the
right thing to store in the data base when saving answers.
--MIke
Revision
1507 -
Directory Listing
Modified
Fri Sep 19 02:17:48 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changed logic of what is shown about answers when
"submit Answers" and "check Answers" are clicked.
In particular you can't see the answers responses at
all unless one of these two or "preview answers" is cliced.
Hopefully this will not upset preflight uses.
-- Mike
Revision
1502 -
Directory Listing
Modified
Thu Sep 11 02:03:06 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1499 -
Directory Listing
Modified
Thu Sep 11 00:05:25 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Submit answer button is now hidden when you are acting to prevent
accidental submission of data for a student. The checkAnswer button
is still active.
--Mike
Revision
1495 -
Directory Listing
Modified
Tue Sep 9 02:56:49 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added logic to show the checkAnswer button when you are
a professor or TA acting as a student. This allows you
to check the answer without recording results. (I think)
--MIke
Revision
1480 -
Directory Listing
Modified
Fri Sep 5 03:25:29 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a kludge which, if $showPartialCorrectAnswers is negative, will not show
the answer field at all until the "showCorrectanswers" button is checked.
For students this also must be after the due date.
--Mike
Revision
1479 -
Directory Listing
Modified
Fri Sep 5 03:09:14 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Fixed messages after the answer box so that it doesn't give away
how many answers were correct. Fixes bug #176.
Removed some hidden inputs from the main form that were making it
impossible to uncheck "show correct answers" (and probably doing
the same for show hints and show solutions.)
--Mike
Revision
1473 -
Directory Listing
Modified
Thu Aug 28 14:45:29 2003 UTC (9 years, 8 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added sorting to class list. Sorted alphabetically first
and then by section. This is a temporary fix. The code
should be cleaned up and increased functionality, such as
that provided in the listing of sets, should be added.
--Mike
Revision
1469 -
Directory Listing
Modified
Sat Aug 16 01:32:10 2003 UTC (9 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Login reads material from
login_info(.txt) in the top
directory of the course and places
on the right side of the page.
ProblemSets does the same from
a file called course_info.txt
--Mike
Revision
1467 -
Directory Listing
Modified
Sat Aug 16 00:48:12 2003 UTC (9 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Moved show hints and show solutions to
spots just above the submit buttons. This
is closer to the old webwork style and I
think it is more appropriate. Particularly
since these options are sticky only as long
as you stay on the same problem
Revision
1464 -
Directory Listing
Modified
Fri Aug 15 18:12:32 2003 UTC (9 years, 9 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a note alerting the login user to the existence of practice1,
practice2 accounts. This is a temporary fix for the bug report asking
for a login_info.txt window.
--Mike
Revision
1440 -
Directory Listing
Modified
Fri Jul 25 20:47:22 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Don't show both check answers and submit answers button at the same time.
If the submit answers button can be shown then the check answers button
is not shown.
--Mike
Revision
1435 -
Directory Listing
Modified
Fri Jul 25 12:44:03 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
This may not be necessary, but it is a parallel development
of creating scoring files. The idea is to go directly to the
totals files with creating .csv files for each set.
--Mike
Revision
1413 -
Directory Listing
Modified
Mon Jul 21 23:07:03 2003 UTC (9 years, 10 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Now generates scoring data files in response to requests from the set
list. There is no confirmation that this has been done, yet, though.
If it returns an "empty" page, it worked, and you can see the scoring
files.
Revision
1397 -
Directory Listing
Modified
Wed Jul 16 12:58:29 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Abstracted "read directory" functions in SendMail and moved them
to Instructor. The instructor calls WeBWorK::Utils::readDirectory
and then filters the output according to a pattern match. Sorts as well.
Also move read_scoring_file to instructor since it will need to be used
in other scripts as well.
--Mike
Revision
1395 -
Directory Listing
Modified
Tue Jul 15 19:36:25 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added ShowAnswers.pm module which reads the log file of the students answers
Modifications to WeBWorK (dispatcher) and Problem (the Show Past Answer button
had to be redirected) were also made.
--Mike
Revision
1387 -
Directory Listing
Modified
Tue Jul 15 00:56:50 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Changes made to make show Past answers work. Basically I duplicated
writeLog with writeCourseLog which writes to the courses log directory.
I also defined answer_log in that directory.
Revision
1371 -
Directory Listing
Modified
Sat Jul 12 21:31:03 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
backups work now. The list of merge files can be found.
To do:
1.. Get better list of students (with entire names)
2. Get view of merge file
3. Get preview working
--Mike
Revision
1359 -
Directory Listing
Modified
Fri Jul 11 19:02:23 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1352 -
Directory Listing
Modified
Fri Jul 11 16:58:09 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Fri Jul 11 13:47:27 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1347 -
Directory Listing
Modified
Fri Jul 11 13:11:26 2003 UTC (9 years, 10 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1233 -
Directory Listing
Modified
Fri Jun 20 01:23:03 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Move towards more intelligent formatting and editing in Professor Pages,
starting with the UserList. The only current manefestation is that the
classlist fields are now formatted based on what they will contain.
Revision
1197 -
Directory Listing
Modified
Wed Jun 18 16:35:22 2003 UTC (9 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
cleaned up mike's editor support functionality. it now stores the source
file override and seed override in the $problem object. this eliminates
special logic further down the line. (eventually, i would like to have a
separate frontend to PG for the editor, like Instructor::PGPreview.pm)
Revision
1180 -
Directory Listing
Modified
Tue Jun 17 02:20:15 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Hardcopy now moves the pdf file to the tempDir/hardcopy
and sends the browser a redirect to pick it up.
Cleaned up the logic of latex2pdf and generateHardcopy to
some extent. More remains to be done. In particular
tempDir can be generated within latex2pdf. Possibly
it could be passed a file name as well, rather than a tex
string.
this process is a good candidate for testing the timing
mechanisms once they are done. How much faster is
redirect? How much faster is passing a long tex string
rather than a pointer? etc.
--Mike
Revision
1175 -
Directory Listing
Modified
Mon Jun 16 21:51:59 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added ability to get TeX output .
Still to do.
(1) Make tex output only available to instructors and TA's
(2) Streamline some code
(3) Store pdf code and redirect instead of outputting the pdf
code directly -- hopefully this will speed up the output?
--Mike
Revision
1157 -
Directory Listing
Modified
Fri Jun 13 14:26:10 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Hardcopy now appends a copy of the tex output to error message.
Clean up of temp files is pretty good.
The output needs some cosmetic work.
It still seems a little slow to me.
This answers the bulk of bug #82. Resubmit cosmetic details,
feature requests, etc. as new bug.
--Mike
Revision
1156 -
Directory Listing
Modified
Fri Jun 13 13:53:19 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
This is a fairly stable version of Hardcopy. It reports
part of the TeX log errors along with whater pdf was
produced. This partially satisfies the requests in
bug #82
--Mike
Revision
1153 -
Directory Listing
Modified
Fri Jun 13 02:20:06 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Hardcopy now does a reasonable job of reading the TeX log file, cutting
off the initial errors.
If there are tex errors then these are reported and one can optionally
download a pdf file if this was created.
Have not yet added the TeX file output -- Need to see how this is
handled in 1.8 first.
Good stopping point. Good night.
--Mike
Revision
1138 -
Directory Listing
Modified
Thu Jun 12 19:02:59 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1131 -
Directory Listing
Modified
Wed Jun 11 20:40:11 2003 UTC (9 years, 11 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Made many changes:
- turned off PG warning catching in conf/global.conf.dist
- added warning reporting to conf/templates/ur.template (but not to
other templates!)
- modified a couple of error messages in WeBWorK.pm
- made failure to create course environment and failure to find course
directory fatal errors in WeBWorK.pm
- added warning queueing and call stack storing to Apache::WeBWorK
- added "warnings" and "if_warnings" template escapes to
WeBWorK::ContentGenerator
- removed warning handling from WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::PG::ImageGenerator
-sam
Revision
1129 -
Directory Listing
Modified
Wed Jun 11 19:30:51 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
Revision
1113 -
Directory Listing
Modified
Wed Jun 11 02:04:13 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
(1) Moved order in which snippets are assembled. Only one preamble and one postamble are used
for a single download (also a single run of TeX). The postamble ends the document and nothing
else in the file will be read by TeX.
(2) Modified the getSetTeX and getProblemTeX subroutines to include a username (for sets)
and a user object (for problems) so that problems and sets can be made for different students.
The new identifier is the first arguement.
$self->getSetTeX($effectiveUserName, $setName);
and
$self->getProblemTeX($effectiveUser,$setName, 0, $setHeader);
It seems to work pretty well, but perhaps a bit slow still.
--Mike
Revision
1107 -
Directory Listing
Modified
Tue Jun 10 19:40:45 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1105 -
Directory Listing
Modified
Tue Jun 10 17:29:27 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1063 -
Directory Listing
Modified
Sun Jun 8 21:15:30 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
1045 -
Directory Listing
Modified
Fri Jun 6 19:13:51 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Took out the redundant "confirm email address" from user options.
Also, added a Util function "backtrace", which can be passed one of
"die", "warn", "print", or "return". I'm just showing off, but it might
prove useful in debugging.
-Dennis
Revision
1040 -
Directory Listing
Modified
Fri Jun 6 12:54:41 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a CGI::end_form() to the options section of Problem.pm.
I believe this is is the root cause of the multiple key parameters. I
haven't done all of the testing needed to verify this for sure.
Bug #50 is probably comotose, but needs to be watched.
--Mike
Revision
1039 -
Directory Listing
Modified
Fri Jun 6 02:28:13 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
replaced $r->param('key') with my $key = $r->param('key'); and then used $key in call
to PG. $r->param('key') was returning a two item list in list context. I don't know
where the extra entry into the key param was coming from.
This stuns bug #50, but doesn't kill it.
-- Mike
Revision
1017 -
Directory Listing
Modified
Wed Jun 4 23:47:35 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Instructor pages now only let instructors view and edit the database.
phew.
NOTE that there are new directives in global.conf.dist. You won't be
able to use the professor pages until you've made that change.
Also, I added new template escapes and updated the barebones and ur
templates.
-Dennis
Revision
1015 -
Directory Listing
Modified
Wed Jun 4 20:19:27 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The UserList module now has a single button, "Assign to all users", that
does what it says it does. This should allow people to create new
problems and problem sets and edit them without ever needing the old
system, assuming that they are importing an existing course into
webwork2.
-Dennis
Revision
1007 -
Directory Listing
Modified
Wed Jun 4 03:04:07 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a section to handle the case where the problem has not yet been
assigned to a user. This might occur when the problem template is
called form the problem editor before the sets have been assigned
to students. The problem is obtained as a global problem
then converted to a user_problem with default values. The problem
is not saved. This code should be reviewed to make sure there are no
hidden behaviors. Perhaps a group reading is in order once things
settle down. This squashes bug #34.
--Mike
Revision
1000 -
Directory Listing
Modified
Tue Jun 3 22:27:16 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The conversion of set and problem from global to global-user now works.
You will get "pink screen" errors for now because not all of the vaules
in problem have been given correct defaults.
I'll do that next.
--Mike
Revision
993 -
Directory Listing
Modified
Tue Jun 3 20:20:16 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Made small modifications to allow Problem.pm to read a problem that has
not yet been assigned.
TO DO (and I'll need help with this)
Convert a global set to a global user set (and the global problem to a
global user problem). I need to know how to specify the appropriate
classes.
Once we are guaranteed a record of the type returned by getGlobalUser
....
stuff missing defaults (e.g. psvn for set, and num_correct (answers) for
problem) in the newly created global_user record objects.(this part I
can do.)
At that point the rest of Problem.pm should be able to proceed as before
without any changes.
--Mike
Revision
983 -
Directory Listing
Modified
Tue Jun 3 17:48:35 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Tue Jun 3 00:28:28 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
960 -
Directory Listing
Modified
Sat May 31 00:02:46 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
A bug fix: the "attempted" record for a UserProblem is now calculated
from the num_correct and num_incorrect fields.
Send me feedback: should it be displayed in the table anyway, and just
not editable?
-Dennis
Revision
959 -
Directory Listing
Modified
Fri May 30 23:59:35 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The problem set editor now works for 0 users (global only) or 1 user.
Multi-user functionality is coming over the weekend.
To cause the editor to give you the ability to edit a student's record,
add editForStudent=name (where name is the student's login) to the
parameters sent to the ProblemSetEditor content generator.
Note that if you are using the GDBM backend, editing the "default"
professor records is the same as editing the global values, which can
surprise you if you're not ready for it.
-Dennis
Revision
947 -
Directory Listing
Modified
Fri May 30 00:27:27 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The set-specific data now displays the per-user override if the
editForUser param is set. It does not yet save changes back to the
database.
-Dennis
Revision
942 -
Directory Listing
Modified
Thu May 29 20:30:56 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Display options are now sticky (they are repeated as hidden options in the main problem body).
Changed name of submit button from redisplay to "save options"
fixes bug #27 at least to some extent.
these saved options may not persist from one problem to another. In order to solve that problem
we need a storage place for user options, or else many more hidden inputs to save state as one
moves from one request to another.
this fix will work for now.
-- Mike
Revision
940 -
Directory Listing
Modified
Thu May 29 20:02:35 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added a new template hook "options" which allows one to reset the display options.
Modified viewOptions to conform to a "vertical" look for the radio buttons in the redisplay options.
Modified some of the labels for the same reason.
The horizontal spacing is a bit of kludge (I can't guarantee no line breaks for each of the radio button
labels). Using underbars instead of spaces in the labels would fix this, but...
--Mike
Revision
935 -
Directory Listing
Modified
Wed May 28 21:28:08 2003 UTC (9 years, 11 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
A start on the final version of the problem set editor. The code from
the previous version is still in the file as mike_body, becuase it will
be added in (with modifications) as the file progresses.
-Dennis
Revision
926 -
Directory Listing
Modified
Wed May 28 03:31:07 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
925 -
Directory Listing
Modified
Wed May 28 03:30:45 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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 -
Directory Listing
Modified
Fri May 23 13:14:51 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
884 -
Directory Listing
Modified
Thu May 22 20:16:31 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Editor now fills a blank textarea from the named problem set if
it exists.
There are a number of user interface issues to be tackled here.
The behavior is: if the textarea is empty and a setName is defined
then the textarea is filled from the setNAme.def file (eventually
it will be filled from the database ) This behavior will probably
not be transparent to the user.
Revision
875 -
Directory Listing
Modified
Wed May 21 18:41:51 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Factored some code into gatherInfo() method.
The three dates are now sticky
a problem address of the form /prob1.pg won't enter into the set def textarea
This solves the problem that the directory might not yet be defined (but not elegantly).
-- Mike
Revision
872 -
Directory Listing
Modified
Tue May 20 18:35:22 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added comments. There is still an annoying problem
that it is possible for the user to insert a problem
that has an empty directory address (e.g /prob3.pg, 1)
if they use "Choose problem" before ever using "Select set"
Viewing the entire set, saving the set and viewing individual problems from the local library (as opposed to the problem library on webhost) remain to be implemented.
-- Mike
Revision
869 -
Directory Listing
Modified
Tue May 20 02:37:44 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
The select set and the choose problem button now work fairly well.
There is a static link allowing you to view the last chosen problem
via the problem library at webhost. This works for now, but will break
if the class template file is out of sync with the template file used
by the "problem library" program at webhost.
The save button, which involves checking the syntax of the problem list has not been implemented. (There is code in profBuildProbSets to help with this.)
The view entire problem set (in pdf form) is not been implemented.
It should be possible to redirect this to the hardcopy feature somehow?
or to the PDF feature of the "problem library".
Other aspects of the user inface are still problematic. We'll need to
play with it for awhile to see which behaviors must be changed.
--Mike
Revision
868 -
Directory Listing
Modified
Mon May 19 21:02:19 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Considerable progress has been made. The select definition button and
choose problem buttons work now, although the code needs to be de-crufted.
For some reason Safari will not recognize \r\n (newlines) in the textarea
although iCab does. What is the accepted way to enter text with newlines into
the data for a textarea?
The view problem button doesn't work yet. i want this to come up in a new window.
Must I use javaScript for this or is there another way to force a new target window
for the result of pusing the view problem button? How can one redirect to a particular
problem?
There is still considerable debugging code in this file.
--Mike
CVe: ----------------------------------------------------------------------
Revision
860 -
Directory Listing
Modified
Sun May 18 03:26:22 2003 UTC (10 years ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
This is the shell of an editor which will construct a "set definition file".
It shows a list of the problems which are available in the templates
directory.
To do: 1 - Detect the selected setDirectory and display its problems. Currently
the setDirectory is permanently set to setAlgebra10Intervals.
2 - Implement the problem viewing action of the form
3 - Implement the save definition action of the form.
-- MIke
Revision
809 -
Directory Listing
Modified
Thu Apr 17 21:30:57 2003 UTC (10 years, 1 month ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
765 -
Directory Listing
Modified
Fri Feb 28 23:56:35 2003 UTC (10 years, 2 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
removed "nowrap" from barebones.template because it wasn't doing
anything anyway, and every byte counts ;-)
Changed "Logged in as:" to "User:" in ContentGenerator and killed the
CGI::br calls in that message and the "Acting as:" message
Added more context to the context URL in Feedback, and properly
obfuscated some code.
--Dennis
Revision
750 -
Directory Listing
Modified
Thu Feb 27 12:31:06 2003 UTC (10 years, 2 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
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
748 -
Directory Listing
Modified
Wed Feb 26 18:39:07 2003 UTC (10 years, 2 months ago) by
malsyned
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
Added the <!--#if loggedin="1"--> template escape. It evaluates to true
on every content generator except Login.pm and Logout.pm. Used it to
make the barebones template look cleaner on the login page.
-Dennis
Revision
740 -
Directory Listing
Modified
Fri Feb 21 21:16:48 2003 UTC (10 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
1. the new global.conf key {mail}->{feedbackVerbosity} controls the
verbosity level of Feedback.pm messages.
2. Feedback includes a URL when ever the user is logged in.
-sam
Revision
739 -
Directory Listing
Modified
Fri Feb 21 20:49:49 2003 UTC (10 years, 3 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
1. fixed some formatting in Problem
2. hardcopy allows correct answers, hints, solutions to be shown
3. privileged users are allowed to view/download "not yet open" sets
-sam
Revision
692 -
Directory Listing
Modified
Tue Jan 7 21:19:38 2003 UTC (10 years, 4 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
DONE effectiveUser for at least Problem.pm
DONE write a template escape for printing $user, $effectiveUser, &c. nicely
also added additional timing log points: timing is now logged:
1. when WeBWorK::PG::new starts
2. after all the initialization-type stuff happens
3. when WeBWorK::PG::new ends
Getting it to log the entire request time might be a little harder.
-sam
Revision
646 -
Directory Listing
Modified
Sat Nov 23 00:25:40 2002 UTC (10 years, 6 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added REAL logout support. keys now get invalidated at logout.
also, fixed a bug in classlist (see the diff).
also, added a sub to Utils (see the diff).
-sam
Revision
607 -
Directory Listing
Modified
Fri Oct 25 20:56:49 2002 UTC (10 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
re-formatted &alias (in dangerousMacros) so that it's more readable.
mostly just made sure indentations where correct and tabs and spaces
were used where apprropriate.
-sam
Revision
562 -
Directory Listing
Modified
Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
The translator no longer shares IO.pm's functions with the safe compartment.
This is a BAD THING, and should be reconsidered when the Translator is
revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
&dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
of uninitialized value in null operation" warning in template(), tho.
Still to come:
- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password
Revision
558 -
Directory Listing
Modified
Fri Sep 20 22:47:22 2002 UTC (10 years, 8 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
* fixed multiple-calls-to-&handler problem
* fixed if-else-endif code in &template
* added code to catch warnings in PG evaluation
* added "pink screen" and warning reporting
* started work on logging code (see Utils.pm, commented out)
-sam & dennis
Revision
492 -
Directory Listing
Modified
Wed Aug 21 15:34:35 2002 UTC (10 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
made progress towards working hardcopy generation. next, i have to fix
the call to pdflatex. screw pip. it's not working right, and it doesn't
give me any speed gain, since latex has to goofily write the WHOLE DAMN
FILE in whatever order it pleases before letting me have it.
-sam
Revision
478 -
Directory Listing
Modified
Tue Aug 20 01:10:31 2002 UTC (10 years, 9 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator
added Hardcopy.
TODO:
&getMultiSetTeX
figure out what to do about making several sets into 1 TeX \doc
make PDF generation code (minimize temp file use!)
(to this end, module-ize pip? haha.)
-sam