[system] / branches / ghe3_dev / webwork2 / lib / WeBWorK / Utils Repository:
ViewVC logotype

Log of /branches/ghe3_dev/webwork2/lib/WeBWorK/Utils

View Directory Listing Directory Listing


Sticky Revision:

Revision 7107 - Directory Listing
Modified Sun Dec 4 04:52:26 2011 UTC (17 months, 2 weeks ago) by ghe3


Revision 7096 - Directory Listing
Modified Fri Nov 11 01:51:24 2011 UTC (18 months, 1 week ago) by ghe3


Revision 7069 - Directory Listing
Modified Tue Oct 11 20:27:10 2011 UTC (19 months, 1 week ago) by ghe3


Revision 6959 - Directory Listing
Modified Tue Jul 19 21:33:36 2011 UTC (22 months ago) by gage
reconciling with the localization code


Revision 6958 - Directory Listing
Modified Tue Jul 19 20:25:37 2011 UTC (22 months ago) by ghe3
commiting localizing changes

Revision 6957 - Directory Listing
Modified Tue Jul 19 20:24:30 2011 UTC (22 months ago) by ghe3
merging with localizing software

Revision 6956 - Directory Listing
Modified Tue Jul 19 20:07:52 2011 UTC (22 months ago) by gage
committing merge with localizing code

Revision 6812 - Directory Listing
Modified Wed May 11 18:50:34 2011 UTC (2 years ago) by ghe3
your log message

Revision 6775 - Directory Listing
Modified Sat Apr 2 01:37:48 2011 UTC (2 years, 1 month ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
changes inclued
   changing published to visible throughout (except for database entries which are not changed)
   adding library browser 2
   correct and incorrect answers are now color coded
   depths table is now in database.conf schema
   removed some extraneous files
   sets are automatically assigned to author when created (without alert message)
   misc fixes

Revision 6670 - Directory Listing
Modified Thu Jan 20 04:06:21 2011 UTC (2 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Add code to initialize depts, location and location_addresses when admin starts up

commented out utilities for dbExport and dbImport -- we aren't using those anymore.



Revision 6348 - Directory Listing
Modified Sat Jul 10 12:57:58 2010 UTC (2 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
merging changes from branch gage_dev into trunk

Added MAA logo

timestamp now gives local time, not server time

allow @ in user name

added support for alternative archive paths

added support for WARNING_MESSAGE and DEBUG_MESSAGE channels



Revision 6293 - Directory Listing
Modified Mon Jun 14 04:09:56 2010 UTC (2 years, 11 months ago) by Mgage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
backporting

Revision 6181 - Directory Listing
Modified Mon Jan 11 18:31:57 2010 UTC (3 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
correct typo

Revision 6166 - Directory Listing
Modified Thu Nov 5 21:22:43 2009 UTC (3 years, 6 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/Utils
In MySQL like state only find tables of the form coursename_* with the underscore

Revision 6158 - Directory Listing
Modified Mon Nov 2 16:58:43 2009 UTC (3 years, 6 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Allow reduced scoring to be enabled or disabled for individual assignments. Default is disabled.

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/Utils
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 6124 - Directory Listing
Modified Thu Oct 1 21:28:46 2009 UTC (3 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added some documentation

Revision 6109 - Directory Listing
Modified Thu Sep 24 17:31:17 2009 UTC (3 years, 7 months ago) by apizer
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Fixed a bug that occurs when you have courses with similar names with
a underscore such as math101 and math101_fall09. Before checking tables
for math101 would find tables for math101_fall09 and bring up false
warnings. See http://webwork.maa.org/moodle/mod/forum/discuss.php?d=6248

Revision 6089 - Directory Listing
Modified Thu Jul 30 20:40:31 2009 UTC (3 years, 9 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
replaced %WeBWorK::SeedCE with

get_SeedCE($ce)

because, if the webwork server hasn't been run recently
%WeBWorK::SeedCE might not be defined.
and  addcourse will fail

Revision 6043 - Directory Listing
Modified Thu Jun 4 01:37:44 2009 UTC (3 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
update certain tmp files for courses automatically -- this reduces the number of error messageswhen viewing old courses.

Revision 6003 - Directory Listing
Modified Wed Feb 11 03:30:56 2009 UTC (4 years, 3 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added ability to automatically create html_temp  directory -- which is often missing if the
course hasn't been used when preparing course for archival.

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/Utils
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 5985 - Directory Listing
Modified Mon Feb 2 03:18:10 2009 UTC (4 years, 3 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Streamlined the course integrity checking

Revision 5979 - Directory Listing
Modified Sun Jan 25 15:32:13 2009 UTC (4 years, 3 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Changes to support archiving courses.

Revision 5973 - Directory Listing
Modified Sun Jan 18 03:25:37 2009 UTC (4 years, 4 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
changes to support increased error checking when archiving courses

Revision 5778 - Directory Listing
Modified Wed Jun 25 14:41:40 2008 UTC (4 years, 10 months ago) by glarose
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Utils::Tasks: add fake_set_version for previewing gateway assignments.

Revision 5651 - Directory Listing
Modified Tue Apr 29 19:28:58 2008 UTC (5 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added fake_user, cleaned up formatting, expanded functionality of
renderProblems

Revision 5609 - Directory Listing
Modified Mon Feb 4 22:55:23 2008 UTC (5 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added $mail{smtp_timeout} setting

Revision 5561 - Directory Listing
Modified Mon Oct 15 15:55:16 2007 UTC (5 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
support hints and solutions in the library browser

Revision 5334 - Directory Listing
Modified Wed Aug 15 17:48:16 2007 UTC (5 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Textbook chapters and sections will now include their numbers in the
library browser, and be sorted accordingly.

Revision 5319 - Directory Listing
Modified Mon Aug 13 22:59:59 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
updated copyright dates

Revision 5308 - Directory Listing
Modified Fri Aug 10 18:25:44 2007 UTC (5 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Sort entries which will appear in the library browser (chapter titles,
section titles, etc.).

Revision 5278 - Directory Listing
Modified Fri Aug 10 01:04:09 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
fixes for upgrading an empty database

Revision 5276 - Directory Listing
Modified Fri Aug 10 00:27:14 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added missing newline at the end of the file

Revision 5244 - Directory Listing
Modified Wed Aug 8 00:33:07 2007 UTC (5 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Fix bug in keyword searching caused by not updating the name of related
tables in recent problem library database changes.

Revision 5234 - Directory Listing
Modified Tue Aug 7 01:06:31 2007 UTC (5 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Changes database access: now Problem Library tables are stored in the
webwork database.

Revision 5221 - Directory Listing
Modified Thu Jul 26 18:53:08 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
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 5219 - Directory Listing
Modified Wed Jul 25 23:37:49 2007 UTC (5 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
fixed typo :P

Revision 5211 - Directory Listing
Modified Sun Jul 22 05:24:22 2007 UTC (5 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
put most of wwdb_upgrade in a library so it can be accessed from elsewhere.

Revision 5207 - Directory Listing
Modified Sat Jul 21 19:13:10 2007 UTC (5 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use new dummp_table/restore_table code for course archiving/unarchiving

Revision 5201 - Directory Listing
Modified Sat Jul 21 16:30:38 2007 UTC (5 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
don't use hardwired  mysql and mysqldump commands.

find the location of these commands in global.conf (i.e. the course environment)

Revision 5029 - Directory Listing
Modified Mon Jun 25 12:10:49 2007 UTC (5 years, 10 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
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 upgradedbetween the time the course is archived and the course is unarchived.
The behavior with sql_moodle  data schemas has not been tested.

Revision 4970 - Directory Listing
Modified Fri May 25 22:11:24 2007 UTC (5 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Sync treatment of keywords to current version of loadDB2.

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/Utils
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 4842 - Directory Listing
Modified Tue Mar 6 01:33:53 2007 UTC (6 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use path to cp in course environment

Revision 4835 - Directory Listing
Modified Mon Mar 5 19:07:45 2007 UTC (6 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
replace system() calls with readpipe() calls -- arguments are escaped
and stdout/stderr are captured, and exit status is reported accurately.

Revision 4758 - Directory Listing
Modified Tue Jan 30 21:35:28 2007 UTC (6 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
alternate implementation of DelayedMailer that uses Mail::Sender rather
than Net::SMTP. This is somewhat more flexible, but currently doesn't
play well with Safe.pm. (I forget exactly how, but I have it on record
somewhere.)

Revision 4698 - Directory Listing
Modified Tue Dec 5 20:58:38 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
a stopgap solution to the PG/Net::SMTP problem

Revision 4697 - Directory Listing
Modified Tue Dec 5 20:57:53 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
move constituency_hash into Utils.pm

Revision 4696 - Directory Listing
Modified Tue Dec 5 20:56:58 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use croak instead of die in constructor

Revision 4676 - Directory Listing
Modified Mon Nov 27 18:36:21 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
wrapper for Mail::Sender that restricts the arguemnts that can be passed
to various "dangerous" methods. It is designed for use with
RestrictedClosureClass and Safe::Hole.

NOTE THAT THIS CLASS DOESN'T PROVIDE SAFETY ON ITS OWN. READ THE
COMMENTS FOR MORE INFO.

Revision 4675 - Directory Listing
Modified Mon Nov 27 18:34:56 2006 UTC (6 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
removed extra blank line

Revision 4540 - Directory Listing
Modified Fri Sep 29 19:41:36 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
update sql_moodle to reference remaining routines in sql_single

Revision 4539 - Directory Listing
Modified Fri Sep 29 19:39:55 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use $db->rename_tables for course renaming, remove addCourseHelper,
deleteCourseHelper, copyCourseDataHelper and associated infrastructure.
still have to do something about archive/unarchive -- they are not only
mysql specific, but they rely on the database being local, on the
default port, and named "webwork". :P

Revision 4535 - Directory Listing
Modified Fri Sep 29 16:52:23 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use $db->create_tables and $db->delete_tables, check for dblayout
existence even if we're using the default dblayoutname, make regex and
error message match for course id checking, removal of "sql" specific
information from POD, formatting fixes, additional warnings about bad
course existence checking code.

Revision 4527 - Directory Listing
Modified Tue Sep 26 15:57:41 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
remove several useless "use Data::Dumper" lines

Revision 4521 - Directory Listing
Modified Mon Sep 25 22:35:05 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use a single username/password for connecting to the SQL database. this
means that only one DBI handle is created instead of two, and the
Driver's connect/disconnect methods are no-ops.

Revision 4518 - Directory Listing
Modified Mon Sep 25 22:14:54 2006 UTC (6 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
tons of "DBFIXME" notes -- how to make database access more efficient

Revision 4501 - Directory Listing
Modified Fri Sep 15 22:09:36 2006 UTC (6 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
removed support module for deleted sql dblayout

Revision 4395 - Directory Listing
Modified Thu Aug 24 21:07:51 2006 UTC (6 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added class to protect objects from evil prying problem code.

Uses the closure-as-object technique to protect the self hash of the
underlying object from problem code. All that the problem code sees is a
blessed coderef. The coderef is a closure over the underlying object and
the list of allowed methods. You can invoke the coderef directly, with
the name of the method to invoke as the first argument, but the class
also provides an AUTOLOAD routine that calls the coderef for you, so you
can continue to use the class as usual.

Revision 4359 - Directory Listing
Modified Tue Aug 8 16:09:58 2006 UTC (6 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
remove vestigal gdbm/global_user related stuff.

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/Utils
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 4115 - Directory Listing
Modified Wed May 31 18:41:23 2006 UTC (6 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Fixed bug for selecting problems from the ProblemLibrary database.  Problems which have no associated textbook were mucking things up, even if no textbook was selected.

Revision 4084 - Directory Listing
Modified Thu May 18 19:32:53 2006 UTC (7 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
modifications necessary to support moodle tables:

* respect non_native flag in dbLayout

With these changes, courses with the sql_moodle dbLayout can be created,
deleted, renamed, and archived using the WeBWorK course management
tools.

Revision 4083 - Directory Listing
Modified Thu May 18 19:32:41 2006 UTC (7 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
modifications necessary to support moodle tables:

* respect non_native flag in dbLayout
* don't attempt to add users if user table is non_native
* rather than checking for the string "sql_single" in renameCourse and
  archiveCourse, and erroring out otherwise, we check to see if there is
  a copyCourseDataHelper or archiveCourseHelper implementation
  (respectively). new getHelperRef subroutine helps with this.

With these changes, courses with the sql_moodle dbLayout can be created,
deleted, renamed, and archived using the WeBWorK course management
tools.

Revision 4082 - Directory Listing
Modified Thu May 18 19:27:57 2006 UTC (7 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added stub for sql_moodle. this just copies the subroutines from sql_single.pm.

Revision 3975 - Directory Listing
Modified Thu Jan 26 21:45:42 2006 UTC (7 years, 3 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
forward-port from rel-2-2-patches: (make addCourse, deleteCourse more
robust.
- pre-check permissions before trying to mkdir/rmtree
- treat creation errors on directories other than the root as warnings
- treat deletion errors on all directories as warnings
- treat sql_single "drop table" errors as warnings
- supress DBI's error reporting for command-line addcourse/delcourse)

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/Utils
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 3892 - Directory Listing
Modified Mon Jan 9 23:57:28 2006 UTC (7 years, 4 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
I've modified the renameCourse code to simply issue a warning when a
course directory (other than the course root dir) is not movable. I've
also added error checking for some of the more common reasons for
directories to not be movable, so that the warning message is more
informative.

Resolves bug #943.
Originally committed to branch rel-2-2-dev.
Forward-ported without modification to HEAD.

Revision 3823 - Directory Listing
Modified Fri Dec 16 23:13:27 2005 UTC (7 years, 5 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
don't write globalUserID to course.conf file.

Revision 3665 - Directory Listing
Modified Wed Sep 28 23:26:06 2005 UTC (7 years, 7 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Changed the wording of the initial course.conf file.

Revision 3636 - Directory Listing
Modified Sat Sep 17 20:14:02 2005 UTC (7 years, 8 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Expanded information in error messages.

Revision 3552 - Directory Listing
Modified Tue Aug 23 22:53:25 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Allow snippets of html (or Tex) to be specified in global.conf to be inserted right before/after the body of a problem.  A commented out example which produces boxed problem in HTML is given.  In this approach, the added parts are not used for problems rendered in the Library Browser or Problem Set Detail.

This addresses bug 817.  This solution may not be suitable for inclusion of needed bits for modes such as asciimath or tth because the those bits of html are probably needed for display in the Library Browser.  It is hard to distinguish bits which are always wanted, and those which are only wanted for use by Problem.

To make use of this, you need to update your global.conf, and make the corresponding pg update.

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/Utils
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 3453 - Directory Listing
Modified Thu Aug 4 22:45:34 2005 UTC (7 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
fix bug #803: corrected typo that prevented course renaming from working.

Revision 3449 - Directory Listing
Modified Wed Aug 3 22:19:59 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added problem count to basic library panel, and text chapters/sections
to advanced library panel.

Revision 3439 - Directory Listing
Modified Sun Jul 31 19:49:51 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Update to match revision in database structure (chapter and section tables).

Revision 3427 - Directory Listing
Modified Fri Jul 29 20:45:41 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
More improvements on library - advanced panel.  Still a work in progress.

Revision 3425 - Directory Listing
Modified Thu Jul 28 21:25:44 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Fixed minor glitch from problems not associated to any textbook.

Revision 3424 - Directory Listing
Modified Thu Jul 28 21:12:53 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added advanced search panel for database library.  Still more features
to come.

Revision 3415 - Directory Listing
Modified Wed Jul 27 18:48:50 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Fixed bug for problem library version 2 - now it can select problems from
all sections, or all chapters and all sections, etc.

Revision 3412 - Directory Listing
Modified Wed Jul 27 16:42:27 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
More changes for problem library version 2.

Revision 3411 - Directory Listing
Modified Wed Jul 27 16:31:18 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Changes for problem library version 2 to support recent change to setmaker.

Revision 3408 - Directory Listing
Modified Tue Jul 26 22:28:16 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Update to support version 2 of the ProblemLibrary.

Revision 3404 - Directory Listing
Modified Tue Jul 26 17:35:54 2005 UTC (7 years, 9 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Lots of indentation fixup, and started adding code for new and improved
problem library.  Still compatible with current "Problem Library".

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/Utils
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 3290 - Directory Listing
Modified Wed Jun 15 21:46:12 2005 UTC (7 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
This change affects course creation using mysql.  Field types are now
determined by DB/Record/*.pm in the function SQL_TYPES.  Key fields
which are text are set to binary types (blobs) so that indexing on those
fields is case sensitive.  The net result should be fast database access
while still having it be case-sensitive in the searching.

Revision 3234 - Directory Listing
Modified Fri May 20 16:27:43 2005 UTC (8 years ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Import and Export now create gzipped files in the template directory
of the admin course.  These files can than be downloaded using
the FileManager.  The export and import process are still VERY slow, but
at least it no longer matters if your browser times out.

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/Utils
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 2955 - Directory Listing
Modified Fri Oct 22 22:59:53 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
POD fixes

Revision 2845 - Directory Listing
Modified Wed Sep 29 16:20:02 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
case-insensitive sorting

Revision 2835 - Directory Listing
Modified Mon Sep 27 19:21:54 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added dbLayoutSQLSources function to get a hash mapping DBI sources to
the username and password of the source and the tables that use the
source.

Revision 2777 - Directory Listing
Modified Mon Sep 13 19:34:54 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
disabled "sid_open", "sid_due", and "sid_answer" formats, since they
don't currenly work with timezones.

We need to find some way to get the timezone information in there
without messing up the interface. One option is to actually have the
database system aware of the timezone and propgate that information on
to the Set and UserSet Record classes. Then, add formatted pseudo-fields
to those record classes that encapsulate the date conversions. Hm, that
would be cool.

Eventually, it would be nice if the date accessors returned DateTime
objects instead of epochs, but that is for later.

Revision 2766 - Directory Listing
Modified Fri Sep 10 22:15:51 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
applied dpvc's filtering UI cleanup patch. closes bug #660.

Revision 2759 - Directory Listing
Modified Fri Sep 10 20:24:32 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
rel-2-0-patches merge: removed unused professor-enumerating code, fixing
bug #638.

Revision 2683 - Directory Listing
Modified Tue Aug 24 16:53:16 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added code to generate indexes when creating sql and sql_single courses.

Revision 2640 - Directory Listing
Modified Wed Aug 18 01:42:33 2004 UTC (8 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added deletion code, got rid of crap.

Revision 2588 - Directory Listing
Modified Tue Aug 10 23:58:01 2004 UTC (8 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
use database-layout-specific helper functions in
WeBWorK::Utils::CourseManagement::*.

Revision 2587 - Directory Listing
Modified Tue Aug 10 23:57:24 2004 UTC (8 years, 9 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
broke out database-layout specific code into separate classes

Revision 2478 - Directory Listing
Modified Sat Jul 10 16:07:02 2004 UTC (8 years, 10 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
support incremental sending of exported databases (still slow though).

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/Utils
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 2416 - Directory Listing
Modified Sat Jun 26 16:14:26 2004 UTC (8 years, 10 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Removed short-lived code for putting javascript tags into html page.

Revision 2412 - Directory Listing
Modified Fri Jun 25 23:53:23 2004 UTC (8 years, 10 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added utility function for producing javascript commands for vertical
alignment of dvipng images.

Revision 2385 - Directory Listing
Modified Thu Jun 24 17:44:16 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
handle PRINT_FILE_NAMES_FOR.

Revision 2379 - Directory Listing
Modified Wed Jun 23 23:11:03 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
improved error handling, made SQL statements more robust.

Revision 2374 - Directory Listing
Modified Wed Jun 23 19:20:20 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
made SQL statements more robust (fixes #577), improved error handling.

Revision 2360 - Directory Listing
Modified Tue Jun 22 16:59:53 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
a comment

Revision 2276 - Directory Listing
Modified Tue Jun 8 01:10:27 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added check for well-formed course IDs. closes bug #504.

Revision 2255 - Directory Listing
Modified Sat Jun 5 19:20:13 2004 UTC (8 years, 11 months ago) by gage
Original Path: trunk/webwork2/lib/WeBWorK/Utils
If there is an error, other than "course exists" then the directory tree
is cleared.  This corrects a behavior in which the creation of the new
course would fail half way through, but the directory tree would remain
-- this made it appear as if the course existed.

-- This fix is still somewhat fragile.

Revision 2235 - Directory Listing
Modified Mon May 31 16:49:04 2004 UTC (8 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Allow optional argument of the set (which better be real).

Revision 2234 - Directory Listing
Modified Mon May 31 16:35:00 2004 UTC (8 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added support for initial problem number to renderProblems, and better support for controlling the problem seed.

Revision 2228 - Directory Listing
Modified Sun May 30 02:35:06 2004 UTC (8 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Make the message blank when the user doesn't want problems rendered.  Different modules may want different messages anyway.

Revision 2224 - Directory Listing
Modified Fri May 28 23:13:14 2004 UTC (8 years, 11 months ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Changed interface to renderProblems to be key=>value pairs to make it easier to extend options.  New option is displayMode, which is allowed to be 'None' if you don't really want the problems rendered.

Revision 2202 - Directory Listing
Modified Mon May 24 15:30:34 2004 UTC (9 years ago) by mschmitt
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Cleaned up some UI issues.  Added message for recitation/section <none>

Revision 2188 - Directory Listing
Modified Sun May 23 23:40:24 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
copy symlinks in templates directory

Revision 2184 - Directory Listing
Modified Sun May 23 23:20:31 2004 UTC (9 years ago) by mschmitt
Original Path: trunk/webwork2/lib/WeBWorK/Utils
File of Utilities to allow filtering of users in Instructor Tools

Revision 2148 - Directory Listing
Modified Sat May 22 01:08:09 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
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 2140 - Directory Listing
Modified Fri May 21 23:38:53 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Extricating Problem Library from DB structure, part II.

Revision 2129 - Directory Listing
Modified Tue May 18 18:51:05 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Hopefully moved published to the right place.

Revision 2125 - Directory Listing
Modified Mon May 17 18:57:42 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Set the published field when faking a problem set.

Revision 2124 - Directory Listing
Modified Mon May 17 16:41:07 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Improved psvn kludge by using the full mysql statement from mksqldb.  Fixes
the original version of bug 495.

Revision 2106 - Directory Listing
Modified Thu May 13 21:14:56 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
removed sql exec warnings

Revision 2102 - Directory Listing
Modified Thu May 13 20:39:19 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
create "psvn" field as "INT AUTO_INCREMENT"

Revision 2101 - Directory Listing
Modified Thu May 13 20:12:11 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
add global user record to new courses

Revision 2059 - Directory Listing
Modified Sun May 9 14:52:21 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Fix bug: use of an undefined value.

Revision 2041 - Directory Listing
Modified Fri May 7 21:49:48 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
fixed bug #472

Revision 2037 - Directory Listing
Modified Fri May 7 20:01:04 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
(1) listTables() reports names of supported tables. (2) dbExport() warns
when given invalid table names.

Revision 2005 - Directory Listing
Modified Wed May 5 22:02:30 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
documentation fix

Revision 1993 - Directory Listing
Modified Mon May 3 20:44:24 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Initial import.  This may not be the right destination, especially as its
database methods become more integrated with the ones already in WeBWorK.

Revision 1988 - Directory Listing
Modified Sun May 2 19:50:37 2004 UTC (9 years ago) by jj
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Initial import.  Lets you render a problem which is not part of anything.

Revision 1987 - Directory Listing
Modified Thu Apr 29 23:33:36 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
removed debugging output

Revision 1977 - Directory Listing
Modified Tue Apr 27 03:38:15 2004 UTC (9 years ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
database import and export support

Revision 1962 - Directory Listing
Modified Tue Apr 13 14:36:40 2004 UTC (9 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
quoted hash keys with colons in them.

Revision 1959 - Directory Listing
Modified Fri Apr 9 20:18:51 2004 UTC (9 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
finished, deleteCourse, added listCourses.

Revision 1945 - Directory Listing
Modified Mon Apr 5 03:58:30 2004 UTC (9 years, 1 month ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
preliminary web-based course creation support

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

Revision 1921 - Directory Listing
Modified Tue Mar 23 04:20:56 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added programmatic format support

Revision 1826 - Directory Listing
Modified Mon Mar 1 06:33:45 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
refinements

Revision 1824 - Directory Listing
Modified Mon Mar 1 03:52:43 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
added documentation

Revision 1823 - Directory Listing
Added Mon Mar 1 00:49:25 2004 UTC (9 years, 2 months ago) by sh002i
Original Path: trunk/webwork2/lib/WeBWorK/Utils
Added utility modules for sorting lists of records and formatting
records as strings (WeBWorK::Utils::SortRecords and ::FormatRecords,
respectively).

These modules are important because they not only know how to sort or
format records, they can also be queried for a list of sorts or formats
suitable for display, i.e. in popup menus near the list of records.

These modules are being used as the basis for a module which
encapsulates a "record list" widget.

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9