[system] / trunk / webwork-modperl / lib / WeBWorK / DB / Schema / GlobalTableEmulator.pm Repository:
ViewVC logotype

Log of /trunk/webwork-modperl/lib/WeBWorK/DB/Schema/GlobalTableEmulator.pm

Parent Directory Parent Directory


Sticky Revision:
(Current path doesn't exist after revision 4352)

Revision 1167 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 23:35:54 2003 UTC (9 years, 11 months ago) by sh002i
File length: 6679 byte(s)
Diff to previous 1035 , to selected 953
Several changes to the DB system:

Made all schemas subclasses of WeBWorK::DB::Schema, factored common
constructor code out into Schema.pm. Made all drivers subclasses of
WeBWorK::DB::Schema, factored common constructor code out into
Driver.pm.

Removed superfluous style() and tables() functions from schemas and
drivers. (You can treat the constants in which these are defined as
functions, and call them like $object->STYLE or $object->STYLE().)

WeBWorK::DB now tries to build all tables defined in %dbLayout, instead
of using its own internal list. (TODO: add warnings if known tables are
not built or unknown tables are built.)

Made the error messages given during DB instantiation a little more
intelligent.

Changed the behavior of the exists() and delete() schema methods in all
schemas (and updated the docs) s.t. not all elements of @keyparts have
to be defined.

Changed WeBWorK::DB to allow undefined values to be passed instead of
IDs in delete* method calls, but only if the call was made from
WeBWorK::DB itself (to protect you from accidentally passing an
undefined value and clobbering your whole database).

Changed delete functions to be more efficient. For example,
deleteGlobalSet no longer has to say:

	$self->deleteUserSet($_, $setID)
		foreach $self->listSetUsers($setID);
	$self->deleteGlobalProblem($setID, $_)
		foreach $self->listGlobalProblems($setID);

Instead it says:

	$self->deleteUserSet(undef, $setID);
	$self->deleteGlobalProblem($setID, undef);

This is somewhat more efficient with hash-style schemas, and MUCH more
efficient with the SQL schema.

As usual, be wary of lingering bugs. w00t!
-sam

Revision 1035 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 5 22:58:42 2003 UTC (9 years, 11 months ago) by sh002i
File length: 7162 byte(s)
Diff to previous 969 , to selected 953
Fixed (again) the GlobalTableEmulator.
-sam

Revision 969 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 19:57:17 2003 UTC (9 years, 11 months ago) by sh002i
File length: 8767 byte(s)
Diff to previous 962 , to selected 953
took out some debugging output.
-sam

Revision 962 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 06:51:35 2003 UTC (9 years, 11 months ago) by malsyned
File length: 8785 byte(s)
Diff to previous 958 , to selected 953
Added problem editor links.
took out an unnecessary warning.
-Dennis

Revision 958 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 30 21:37:15 2003 UTC (9 years, 11 months ago) by sh002i
File length: 8896 byte(s)
Diff to previous 956 , to selected 953
fixed several stupid errors.
-sam

Revision 956 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 30 21:09:19 2003 UTC (9 years, 11 months ago) by sh002i
File length: 8734 byte(s)
Diff to previous 953
Added the capability to the GlobalTableEmulator to designate a user
whose records will be used as global records. To specify this, set the
globalUserID param for the tables using the GlobalTableEmulator (in
%dbLayout). It's probably good to do this on a per-course basis. Put the
following in your course.conf:

	$dbLayout{set}->{params}->{globalUserID} = "professor";
	$dbLayout{problem}->{params}->{globalUserID} = "professor";

If globalUserID is not present, GlobalTableEmulator will use consensus
(which is very slow!).
-sam

Revision 953 - (view) (download) (as text) (annotate) - [selected]
Modified Fri May 30 18:14:14 2003 UTC (9 years, 11 months ago) by sh002i
File length: 6924 byte(s)
Diff to previous 944
Made listGlobalProblems more efficient. (I have to go back and look at
the rest of DB and see if there are any more optimizations that can be
made.)
-sam

Revision 944 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu May 29 23:42:24 2003 UTC (9 years, 11 months ago) by sh002i
File length: 6922 byte(s)
Diff to selected 953
added GlobalTableEmulator.pm
added global2user and user2global to Utils.pm
small changes to WW1Hash.pm
-sam

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