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

Log of /trunk/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm

Parent Directory Parent Directory


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

Revision 4910 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 28 18:32:11 2007 UTC (6 years, 1 month ago) by glarose
File length: 73424 byte(s)
Diff to previous 4841
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 4841 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 6 01:33:21 2007 UTC (6 years, 2 months ago) by sh002i
File length: 58164 byte(s)
Diff to previous 4642
better error reporting for external program calls

Revision 4642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 10 17:56:01 2006 UTC (6 years, 6 months ago) by sh002i
File length: 57803 byte(s)
Diff to previous 4527
complete the fix for the undefined problibs hash problem.

Revision 4527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 26 15:57:41 2006 UTC (6 years, 7 months ago) by sh002i
File length: 57830 byte(s)
Diff to previous 4518
remove several useless "use Data::Dumper" lines

Revision 4518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 25 22:14:54 2006 UTC (6 years, 7 months ago) by sh002i
File length: 57848 byte(s)
Diff to previous 4377
tons of "DBFIXME" notes -- how to make database access more efficient

Revision 4377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 14 18:21:52 2006 UTC (6 years, 9 months ago) by sh002i
File length: 57633 byte(s)
Diff to previous 4357
make course title and institution optional

Revision 4357 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 8 16:03:25 2006 UTC (6 years, 9 months ago) by sh002i
File length: 57503 byte(s)
Diff to previous 4312
removed vestigal gdbm/sql options. fix how dblayout radio buttons are
generated, so that the default layout or selected is selected correctly.

Revision 4312 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 28 02:13:25 2006 UTC (6 years, 9 months ago) by sh002i
File length: 72015 byte(s)
Diff to previous 4311
only show import/export warning when those functions are selected.

Revision 4311 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 28 02:10:33 2006 UTC (6 years, 9 months ago) by sh002i
File length: 71923 byte(s)
Diff to previous 4295
allow for courses with no contact people in the admin course when
deleting or archiving courses.

Revision 4295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 24 23:28:41 2006 UTC (6 years, 9 months ago) by gage
File length: 71903 byte(s)
Diff to previous 4280
Fixed CGI::radio call (replaced with CGI::radio_group

Fixed   name parameter in Options  (replaced name by -name as required by CGI)

Revision 4280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 18 13:10:54 2006 UTC (6 years, 10 months ago) by gage
File length: 71895 byte(s)
Diff to previous 4246
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 4246 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 13 14:55:46 2006 UTC (6 years, 10 months ago) by gage
File length: 71782 byte(s)
Diff to previous 4244
Fixed checkbox CGI glitch

Revision 4244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 13 14:47:21 2006 UTC (6 years, 10 months ago) by gage
File length: 71779 byte(s)
Diff to previous 4235
Made calls to CGI::    use named parameters so that WeBWorK::CGI handles them properly

Revision 4235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 12 01:23:54 2006 UTC (6 years, 10 months ago) by gage
File length: 70835 byte(s)
Diff to previous 4202
Converting from use CGI to use WeBWorK::CGI

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

I believe that change is correct.

Revision 4202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 8 14:07:35 2006 UTC (6 years, 10 months ago) by gage
File length: 70809 byte(s)
Diff to previous 4136
Try using the -nosticky pragma to see if this fixes the problem.

Revision 4136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 19 15:57:24 2006 UTC (6 years, 11 months ago) by gage
File length: 70806 byte(s)
Diff to previous 4129
Allow delete option after archiving course.

Revision 4129 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 14:48:19 2006 UTC (6 years, 11 months ago) by gage
File length: 69457 byte(s)
Diff to previous 4127
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 4127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 10 14:18:56 2006 UTC (6 years, 11 months ago) by gage
File length: 63982 byte(s)
Diff to previous 4087
Add contact person for a new course to the admin course as a student.
Student's have no access to CourseAdmin features.

Revision 4087 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 19:52:12 2006 UTC (7 years ago) by sh002i
File length: 61797 byte(s)
Diff to previous 3973
replace @DB_LAYOUT_ORDER and %DB_LAYOUT_DESCRIPTIONS with values from
course environment. remove form fields for 'sql' and 'gdbm' layouts.

Revision 3973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 23:13:56 2006 UTC (7 years, 3 months ago) by sh002i
File length: 65436 byte(s)
Diff to previous 3744
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 3744 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 7 21:21:01 2005 UTC (7 years, 6 months ago) by sh002i
File length: 65434 byte(s)
Diff to previous 3621
stop using CGI::Pretty, for speed and output size.

Revision 3621 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 15 20:24:44 2005 UTC (7 years, 8 months ago) by gage
File length: 65449 byte(s)
Diff to previous 3528
Modifications to the directions for archiving courses.

Revision 3528 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 14 16:52:11 2005 UTC (7 years, 9 months ago) by gage
File length: 65555 byte(s)
Diff to previous 3437
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 3437 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 31 17:27:21 2005 UTC (7 years, 9 months ago) by gage
File length: 55785 byte(s)
Diff to previous 3435
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 3435 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 31 15:33:56 2005 UTC (7 years, 9 months ago) by gage
File length: 55155 byte(s)
Diff to previous 3434
Changed unordered list to ordered list.

Revision 3434 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 31 15:26:18 2005 UTC (7 years, 9 months ago) by gage
File length: 55155 byte(s)
Diff to previous 3377
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 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: 54144 byte(s)
Diff to previous 3284
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 3284 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 10 16:01:29 2005 UTC (7 years, 11 months ago) by gage
File length: 54144 byte(s)
Diff to previous 3235
Bring HEAD and rel-2-1-patches in line with each other.

Revision 3235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 20 16:28:25 2005 UTC (8 years ago) by gage
File length: 53983 byte(s)
Diff to previous 3059
Modifications that support import and export to gzipped disk files

Revision 3059 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 21 04:41:03 2004 UTC (8 years, 5 months ago) by sh002i
File length: 50759 byte(s)
Diff to previous 3054
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 3054 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 19 22:39:59 2004 UTC (8 years, 5 months ago) by gage
File length: 41898 byte(s)
Diff to previous 2887
Changed message passing when there is a duplicate administrator.

use addbadmessage() facility instead of warn

Revision 2887 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 10 21:04:47 2004 UTC (8 years, 7 months ago) by sh002i
File length: 41721 byte(s)
Diff to previous 2885
catch invalid course names in validation (bug #702). fix typo in
previous commit.

Revision 2885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 10 20:48:17 2004 UTC (8 years, 7 months ago) by sh002i
File length: 41543 byte(s)
Diff to previous 2853
added check for user ID collisions, closing bug #711.

Revision 2853 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 29 23:45:42 2004 UTC (8 years, 7 months ago) by sh002i
File length: 41574 byte(s)
Diff to previous 2844
don't send stupid header for safari, don't set feedbackRecipients.

Revision 2844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 29 16:19:37 2004 UTC (8 years, 7 months ago) by sh002i
File length: 41454 byte(s)
Diff to previous 2719
removed silly safari hack, added warning about this utility sucking.

Revision 2719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 21:21:43 2004 UTC (8 years, 8 months ago) by sh002i
File length: 41269 byte(s)
Diff to previous 2704
formatting fix (also comitted to rel-2-0-patches)

Revision 2704 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 31 01:15:53 2004 UTC (8 years, 8 months ago) by dpvc
File length: 41370 byte(s)
Diff to previous 2639
The variable for printing file names in course.conf was incorrectly
set up using email addresses instead of userIDs.

Revision 2639 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 18 01:41:39 2004 UTC (8 years, 9 months ago) by sh002i
File length: 41369 byte(s)
Diff to previous 2479
added ordering and descriptions for known database layouts

Revision 2479 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 10 16:28:56 2004 UTC (8 years, 10 months ago) by sh002i
File length: 39767 byte(s)
Diff to previous 2478
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 2478 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 10 16:07:02 2004 UTC (8 years, 10 months ago) by sh002i
File length: 39583 byte(s)
Diff to previous 2391
support incremental sending of exported databases (still slow though).

Revision 2391 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 20:54:52 2004 UTC (8 years, 10 months ago) by sh002i
File length: 38658 byte(s)
Diff to previous 2384
exported database now has content type "application/xml".,

Revision 2384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 24 17:43:32 2004 UTC (8 years, 10 months ago) by sh002i
File length: 38651 byte(s)
Diff to previous 2378
email handling. add email to user record, allowedRecipients, and
feedbackRecipients. Add userIDs of all added users to
PRINT_FILE_NAMES_FOR.

Revision 2378 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 23 23:10:44 2004 UTC (8 years, 11 months ago) by sh002i
File length: 38343 byte(s)
Diff to previous 2373
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 2373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 23 19:19:32 2004 UTC (8 years, 11 months ago) by sh002i
File length: 39173 byte(s)
Diff to previous 2322
added check for a course already existing

Revision 2322 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 01:58:03 2004 UTC (8 years, 11 months ago) by gage
File length: 39052 byte(s)
Diff to previous 2299
First and last names of new instructor as inserted in the new course.

The list of courses one can use as a template is not alphabetized.

Revision 2299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 13 01:29:03 2004 UTC (8 years, 11 months ago) by gage
File length: 38628 byte(s)
Diff to previous 2256
Changed the formatting of the add course form

Revision 2256 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 6 00:20:14 2004 UTC (8 years, 11 months ago) by gage
File length: 37898 byte(s)
Diff to previous 2254
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 2254 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 5 19:18:37 2004 UTC (8 years, 11 months ago) by gage
File length: 37795 byte(s)
Diff to previous 2242
Changed the layout of the form so that optional items are listed last.

Revision 2242 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 2 18:21:38 2004 UTC (8 years, 11 months ago) by gage
File length: 36563 byte(s)
Diff to previous 2189
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 2189 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 23 23:59:41 2004 UTC (9 years ago) by sh002i
File length: 32767 byte(s)
Diff to previous 2148
delete course improvements. can now have blank sql password and leave
database name blank for default value.

Revision 2148 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 01:08:09 2004 UTC (9 years ago) by sh002i
File length: 32600 byte(s)
Diff to previous 2138
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 2138 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 21 20:55:38 2004 UTC (9 years ago) by sh002i
File length: 31756 byte(s)
Diff to previous 2104
added missing "use" line.
"use WeBWorK::CourseEnvironment".

Revision 2104 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 13 20:49:18 2004 UTC (9 years ago) by sh002i
File length: 31721 byte(s)
Diff to previous 2045
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 2045 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 02:01:13 2004 UTC (9 years ago) by gage
File length: 31589 byte(s)
Diff to previous 2043
Sort the courseIDs in the scrolling lists.

Revision 2043 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 23:13:44 2004 UTC (9 years ago) by sh002i
File length: 31484 byte(s)
Diff to previous 2042
ripped out the rest of the skeleton

Revision 2042 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 22:26:49 2004 UTC (9 years ago) by gage
File length: 33444 byte(s)
Diff to previous 2026
Fixed typo where a hash was initialized using an anonymous hash reference.

Revision 2026 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 14:12:20 2004 UTC (9 years ago) by gage
File length: 33442 byte(s)
Diff to previous 2023
Only someone with professor privileges can use CourseAdministration.pm

Revision 2023 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 04:28:54 2004 UTC (9 years ago) by jj
File length: 33036 byte(s)
Diff to previous 2004
If there is more than one mysql source (which there is now thanks to
ProblemLibrary), then we look for the most commonly used source.  Fixed
a bug in this counting part.

Revision 2004 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 5 22:02:12 2004 UTC (9 years ago) by sh002i
File length: 33017 byte(s)
Diff to previous 1985
globalUserID is actually used in addCourse

Revision 1985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 29 22:22:33 2004 UTC (9 years ago) by sh002i
File length: 32830 byte(s)
Diff to previous 1960
implemented import and export, fixed some bugs

Revision 1960 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 9 20:19:25 2004 UTC (9 years, 1 month ago) by sh002i
File length: 23393 byte(s)
Diff to previous 1945
fixed interface to not be so sucky, added delete function.

Revision 1945 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Apr 5 03:58:30 2004 UTC (9 years, 1 month ago) by sh002i
File length: 14644 byte(s)
preliminary web-based course creation support

try it -- create a course called "admin" the usual way and then visit it
in your browser.

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