Log of /trunk/webwork2/lib/WeBWorK/Utils
Directory Listing
Revision
3552 -
Directory Listing
Modified
Tue Aug 23 22:53:25 2005 UTC (7 years, 9 months ago) by
jj
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
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
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
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
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
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
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
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
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
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
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, 10 months ago) by
jj
Update to support version 2 of the ProblemLibrary.
Revision
3404 -
Directory Listing
Modified
Tue Jul 26 17:35:54 2005 UTC (7 years, 10 months ago) by
jj
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
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
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
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
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
POD fixes
Revision
2845 -
Directory Listing
Modified
Wed Sep 29 16:20:02 2004 UTC (8 years, 7 months ago) by
sh002i
case-insensitive sorting
Revision
2835 -
Directory Listing
Modified
Mon Sep 27 19:21:54 2004 UTC (8 years, 7 months ago) by
sh002i
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
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
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
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, 9 months ago) by
sh002i
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
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
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
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
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
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, 11 months ago) by
jj
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, 11 months ago) by
jj
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
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
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
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
a comment
Revision
2276 -
Directory Listing
Modified
Tue Jun 8 01:10:27 2004 UTC (8 years, 11 months ago) by
sh002i
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
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
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
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
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
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
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
copy symlinks in templates directory
Revision
2184 -
Directory Listing
Modified
Sun May 23 23:20:31 2004 UTC (9 years ago) by
mschmitt
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
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
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
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
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
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
removed sql exec warnings
Revision
2102 -
Directory Listing
Modified
Thu May 13 20:39:19 2004 UTC (9 years ago) by
sh002i
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
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
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
fixed bug #472
Revision
2037 -
Directory Listing
Modified
Fri May 7 20:01:04 2004 UTC (9 years ago) by
sh002i
(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
documentation fix
Revision
1993 -
Directory Listing
Modified
Mon May 3 20:44:24 2004 UTC (9 years ago) by
jj
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
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
removed debugging output
Revision
1977 -
Directory Listing
Modified
Tue Apr 27 03:38:15 2004 UTC (9 years, 1 month ago) by
sh002i
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
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
finished, deleteCourse, added listCourses.
Revision
1945 -
Directory Listing
Modified
Mon Apr 5 03:58:30 2004 UTC (9 years, 1 month ago) by
sh002i
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
added programmatic format support
Revision
1826 -
Directory Listing
Modified
Mon Mar 1 06:33:45 2004 UTC (9 years, 2 months ago) by
sh002i
refinements
Revision
1824 -
Directory Listing
Modified
Mon Mar 1 03:52:43 2004 UTC (9 years, 2 months ago) by
sh002i
added documentation
Revision
1823 -
Directory Listing
Added
Mon Mar 1 00:49:25 2004 UTC (9 years, 2 months ago) by
sh002i
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.