[system] / trunk / webwork2 / lib / WeBWorK / ContentGenerator / Instructor / SendMail.pm Repository:
ViewVC logotype

Log of /trunk/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm

Parent Directory Parent Directory


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

Revision 3377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 14 13:15:27 2005 UTC (7 years, 10 months ago) by glarose
File length: 39444 byte(s)
Diff to previous 3329
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 3329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 1 23:52:12 2005 UTC (7 years, 10 months ago) by gage
File length: 40061 byte(s)
Diff to previous 3041
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 3041 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 18 16:09:54 2004 UTC (8 years, 5 months ago) by gage
File length: 36149 byte(s)
Diff to previous 2787
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 2787 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 16 19:44:44 2004 UTC (8 years, 8 months ago) by apizer
File length: 35150 byte(s)
Diff to previous 2786
Remove extraneous evals and also clean up email if no record exists in
merge file.

Arnie

Revision 2786 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 16 18:59:01 2004 UTC (8 years, 8 months ago) by apizer
File length: 35191 byte(s)
Diff to previous 2779
Changed substitution as suggested by Sam

Arnie

Revision 2779 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 18:55:58 2004 UTC (8 years, 8 months ago) by apizer
File length: 35184 byte(s)
Diff to previous 2388
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 2388 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 18:08:43 2004 UTC (8 years, 11 months ago) by dpvc
File length: 34976 byte(s)
Diff to previous 2320
Added default from, reply-to and subject values.

The subject probably needs improvement, but will do for now.

Revision 2320 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 20:43:53 2004 UTC (8 years, 11 months ago) by toenail
File length: 34775 byte(s)
Diff to previous 2207
added permissions checks

Revision 2207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 24 18:05:26 2004 UTC (9 years ago) by mschmitt
File length: 35337 byte(s)
Diff to previous 2203
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 2203 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 24 15:32:11 2004 UTC (9 years ago) by mschmitt
File length: 34807 byte(s)
Diff to previous 2095
Updated to allow record filtering when selecting students

Revision 2095 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 12 14:36:43 2004 UTC (9 years ago) by toenail
File length: 32957 byte(s)
Diff to previous 2084
addmessage() used for success messages

Revision 2084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 11 19:56:27 2004 UTC (9 years ago) by toenail
File length: 32729 byte(s)
Diff to previous 2051
dded use of addmessage() instead of warn and submitError

Revision 2051 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 17:59:13 2004 UTC (9 years ago) by gage
File length: 31544 byte(s)
Diff to previous 2050
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 2050 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 17:19:58 2004 UTC (9 years ago) by gage
File length: 31429 byte(s)
Diff to previous 2049
Modified user interface for choosing message to preview.

Unresolved is the issue of bringing the preview up in a new window.

Revision 2049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 16:48:43 2004 UTC (9 years ago) by gage
File length: 31281 byte(s)
Diff to previous 2035
Modifications to remove extraneous error messages.

This resolves bug 410

Revision 2035 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 18:49:40 2004 UTC (9 years ago) by sh002i
File length: 31214 byte(s)
Diff to previous 2001
failure messages now given with addmessage() -- fixes bug #447 (sort of)

Revision 2001 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 5 01:53:51 2004 UTC (9 years ago) by gage
File length: 31101 byte(s)
Diff to previous 1953
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 1953 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 7 01:17:58 2004 UTC (9 years, 1 month ago) by gage
File length: 31060 byte(s)
Diff to previous 1950
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 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 5 20:52:54 2004 UTC (9 years, 1 month ago) by gage
File length: 31272 byte(s)
Diff to previous 1948
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 1948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 5 20:16:41 2004 UTC (9 years, 1 month ago) by gage
File length: 31276 byte(s)
Diff to previous 1947
Fixed spacing in preview of merge file data

Revision 1947 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 5 19:33:03 2004 UTC (9 years, 1 month ago) by gage
File length: 31115 byte(s)
Diff to previous 1938
Fixed errors in creating urls. (It is important to set authen=>0
when creating links for forms -- they already contain hidden
authentication variables.

Revision 1938 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 4 04:00:10 2004 UTC (9 years, 1 month ago) by gage
File length: 31054 byte(s)
Diff to previous 1928
More changes in construction of urls.

Changed parameter acquistion in ShowAnswers

Revision 1928 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 28 03:25:47 2004 UTC (9 years, 1 month ago) by gage
File length: 30876 byte(s)
Diff to previous 1773
Cleanup -- moving toward using the Apache:Request object and URLpath.

It remains to use URLpath to construct new paths in these files.

Revision 1773 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 00:53:31 2004 UTC (9 years, 3 months ago) by gage
File length: 30960 byte(s)
Diff to previous 1730
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 1730 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 21 01:16:15 2004 UTC (9 years, 4 months ago) by gage
File length: 30830 byte(s)
Diff to previous 1720
Mail merge does not report error when the merge file selected is "None".

--Mike

Revision 1720 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 17 19:30:22 2004 UTC (9 years, 4 months ago) by gage
File length: 30896 byte(s)
Diff to previous 1681
Can now sort recipient list by section and rectation.  A few other user interface
cosmetics added.  This should close bug 309

Revision 1681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 18 23:15:34 2003 UTC (9 years, 5 months ago) by sh002i
File length: 29437 byte(s)
Diff to previous 1677
- 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 1677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 18 02:18:37 2003 UTC (9 years, 5 months ago) by sh002i
File length: 29426 byte(s)
Diff to previous 1667
users are now skipped if they don't have an email address.

Revision 1667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 02:24:30 2003 UTC (9 years, 5 months ago) by gage
File length: 29269 byte(s)
Diff to previous 1663
As best I can determine all "get" commands to the database are now
checked and appropriate action (usually "die") is taken if no
object is returned.

One exception.  The multiple "gets"  such as getGlobalSets(@setNames)
are not checked -- if a given setName is not found is an empty object
returned? in the list or is nothing returned?

--Mike

Revision 1663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by sh002i
File length: 28758 byte(s)
Diff to previous 1646
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 1646 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 2 16:41:16 2003 UTC (9 years, 5 months ago) by sh002i
File length: 27882 byte(s)
Diff to previous 1397
removed "use HTML::Entities", as it is not being used (commented out)
and no other modules use it.

Revision 1397 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 16 12:58:29 2003 UTC (9 years, 10 months ago) by gage
File length: 27881 byte(s)
Diff to previous 1381
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 1381 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 14 15:29:40 2003 UTC (9 years, 10 months ago) by gage
File length: 29873 byte(s)
Diff to previous 1376
Changed error message for merge template display
--Mike

Revision 1376 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 13 19:22:50 2003 UTC (9 years, 10 months ago) by gage
File length: 29783 byte(s)
Diff to previous 1375
Some more initialization fixes.  Still problems with the
best error reporting if merge file hasn't been found
or doesn't exist.
--Mike

Revision 1375 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 13 18:56:27 2003 UTC (9 years, 10 months ago) by gage
File length: 29819 byte(s)
Diff to previous 1373
Fixed some bugs where defaults were not always initialized.
--Mike

Revision 1373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 13 18:32:46 2003 UTC (9 years, 10 months ago) by gage
File length: 29614 byte(s)
Diff to previous 1372
SendMail now works -- probably with lots of bugs and certainly
without enough features, particularly error checks.  It's ready
for bug reports.
--Mike

Revision 1372 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 13 17:08:49 2003 UTC (9 years, 10 months ago) by gage
File length: 35889 byte(s)
Diff to previous 1371
Preview now works fairly well.  Only the actual send mail action
needs to be implemented
Followed by bug fixes and assignments.
--Mike

Revision 1371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 12 21:31:03 2003 UTC (9 years, 10 months ago) by gage
File length: 30946 byte(s)
Diff to previous 1370
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 1370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 12 19:04:25 2003 UTC (9 years, 10 months ago) by gage
File length: 28391 byte(s)
Diff to previous 1369
Save procedures are working pretty well although there
is no backup mechanism yet.
--Mike

Revision 1369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 12 03:13:32 2003 UTC (9 years, 10 months ago) by gage
File length: 23291 byte(s)
Diff to previous 1368
Massive changes -- formatting is now much better.
Functionality is not yet there.
--Mike

Revision 1368 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Jul 11 21:40:38 2003 UTC (9 years, 10 months ago) by gage
File length: 11048 byte(s)
First crack at writing a send mail script.  Not at all functional
--Mike

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9