[system] / trunk / webwork-modperl / bin Repository:
ViewVC logotype

Log of /trunk/webwork-modperl/bin

View Directory Listing Directory Listing


Sticky Revision:

Revision 5758 - Directory Listing
Modified Tue Jun 24 22:54:04 2008 UTC (11 years, 7 months ago) by gage
forward port of changes in rel-2-4-5

Revision 5687 - Directory Listing
Modified Tue Jun 3 02:36:17 2008 UTC (11 years, 8 months ago) by gage
Corrected error in modification to NPL

Revision 5686 - Directory Listing
Modified Tue Jun 3 02:33:38 2008 UTC (11 years, 8 months ago) by gage
Lowered upper limit of path to 255
(can't use longer keys before mysql 5.0.3)

Revision 5655 - Directory Listing
Modified Tue Apr 29 19:37:10 2008 UTC (11 years, 9 months ago) by sh002i
widen path field of NPL-path table to 4096 to acommodate longer paths.
linux's max path length is 4096.

Revision 5646 - Directory Listing
Modified Tue Apr 29 19:07:13 2008 UTC (11 years, 9 months ago) by sh002i
remove stale pidfiles on stop

Revision 5611 - Directory Listing
Modified Mon Feb 4 22:58:11 2008 UTC (12 years ago) by sh002i
(1) require --dest-lib, don't accept "files ... dest-lib"
(2) add --check-names to warn if a file name will be changed
(3) added --help option, improve usage output

Revision 5596 - Directory Listing
Modified Mon Dec 24 01:31:51 2007 UTC (12 years, 2 months ago) by gage
added check for Exception::Class

Revision 5567 - Directory Listing
Modified Mon Oct 22 20:32:38 2007 UTC (12 years, 4 months ago) by sh002i
actually do the file copies, added --pretend and --verbose options.

Revision 5565 - Directory Listing
Modified Wed Oct 17 16:58:12 2007 UTC (12 years, 4 months ago) by sh002i
use WEBWORK_ROOT to find libdir (not FindBin)

Revision 5564 - Directory Listing
Modified Wed Oct 17 16:56:16 2007 UTC (12 years, 4 months ago) by sh002i
Useful tools for managing NPL-style tags in PG problems.

These tools were developed in the course of managing the Rogawski
problem library for W.H.Freeman:

lib/WeBWorK/NPL.pm - Useful routines for parsing and writing PG tags
format as well as the Textbooks file format. Also contains a routine
gen_find_tags which generates a "wanted" function for File::Find that
finds files that match a certain tags specification. As of now, editing
of tags is somewhat limited -- a facility for appending tags to the end
of the tag block is given, which should be sufficient for adding a new
textbook to existing files.

The tag parsing routine is all new, and should be somewhat more robust
and harder to abuse. One notable improvement is that it can handle
escaped single quotes within values, making it possible to say things
like:
	## DBsection('L\'Hospital\'s Rule')
However, the stricter value parsing makes it reject some broken values
already in the NPL. In the case of KEYWORDS, if a parse error is
encountered it will fall back on the old keyword parsing method. This
could be extended to other values if need be.

bin/pg-find-tags - Prints file names for files that match specifications
given on the command line. Good demo of how to use gen_find_tags. Can be
easily modified to perform other tasks.

bin/pg-append-textbook-tags - Appends tags for a new textbook to the end
of the tag block in an already-tagged file.

bin/pg-pull - Pull files from an existing library into a new library.
Directory and file names for the new library can be generated from the
tags in the problem (and optionally use the names from a Textbooks
file). We use this to pull Rogawski-tagged NPL problems out for separate
distribution. This script has some annoying limitations right now --
read the comments.

Revision 5559 - Directory Listing
Modified Mon Oct 8 19:31:42 2007 UTC (12 years, 4 months ago) by jj
If the system is using mysql to store image depths, we update the
database when deleting images.  More specifically, we keep a depth
in the database iff we kept the image.

Revision 5335 - Directory Listing
Modified Wed Aug 15 20:22:32 2007 UTC (12 years, 6 months ago) by jj
Add more indexing, small disk space expense and hopefully more speed.

Revision 5333 - Directory Listing
Modified Wed Aug 15 17:46:55 2007 UTC (12 years, 6 months ago) by jj
Improved handling of textook chapters and sections (should be entered
based on their number, not the DBchapter and DBsection name).

Also improved handling for problems which are tagged to a chapter,
but not to a particular seciton in the chapter.

Revision 5319 - Directory Listing
Modified Mon Aug 13 22:59:59 2007 UTC (12 years, 6 months ago) by sh002i
updated copyright dates

Revision 5313 - Directory Listing
Modified Sun Aug 12 23:30:04 2007 UTC (12 years, 6 months ago) by jj
Revise how institution will be dealt with in the problem library.  Currently,
the information is not used so the changes are innocuous.

Revision 5242 - Directory Listing
Modified Tue Aug 7 22:35:13 2007 UTC (12 years, 6 months ago) by jj
This script replaces the older loadDB2 for the NPL.

Revision 5211 - Directory Listing
Modified Sun Jul 22 05:24:22 2007 UTC (12 years, 7 months ago) by sh002i
put most of wwdb_upgrade in a library so it can be accessed from elsewhere.

Revision 5151 - Directory Listing
Modified Thu Jul 12 00:52:51 2007 UTC (12 years, 7 months ago) by sh002i
second pass -- now working. this script doesn't support upgrading
courses that were archived before per-course version tracking was
implemented, so you'll have to upgrade to the current version (24)
before archiving/unarchiving courses.

Revision 5135 - Directory Listing
Modified Tue Jul 10 15:58:22 2007 UTC (12 years, 7 months ago) by gage
Corrected a logic error in finding the path.

Revision 5129 - Directory Listing
Modified Fri Jul 6 23:36:59 2007 UTC (12 years, 7 months ago) by sh002i
steps to adding per-course database upgrades -- doesn't work yet, don't use.
i just wanted to get it in the cvs repo before the weekend.

Revision 5030 - Directory Listing
Modified Mon Jun 25 13:18:45 2007 UTC (12 years, 7 months ago) by gage
Added check for Email module

Revision 5018 - Directory Listing
Modified Fri Jun 22 16:56:50 2007 UTC (12 years, 8 months ago) by apizer
add gzip to list of apps to check for

Revision 4923 - Directory Listing
Modified Wed Apr 4 15:06:01 2007 UTC (12 years, 10 months ago) by glarose
Add set-level proctor login password for proctored gateway/quiz
assignments, improve handling of proctor keys and permissions for
proctored assignments, bug fixes for recently added features.

This commit
 - adds the ability to specify a set-level proctor for proctored
   gateway/quiz assignments.  this is done by adding a proctor with
   a username "set_id:setName", where "setName" is the name of the
   set, adding a "restricted_login_proctor" field to the set tables
   in the database, and allowing Authen::Proctor and
   ContentGenerator::LoginProctor to appropriately deal with this
   possibility.
 - updates proctor permissions and status in global.conf.dist,
   changing the old "proctor_quiz" permission level (3) into two
   levels, "proctor_quiz_login" and "proctor_quiz_grade".
   wwdb_upgrade includes a stanza to make this change to proctors
   that already exist in courses.
 - adds a "Proctor" status in %statuses in global.conf, with no
   valid behaviors.  this allows the creation of proctor users
   in a course who have the permissionLevel to login (and thus
   proctor), but not to access the course.
 - improves GatewayQuiz explanatory messages when scores or work
   are hidden.
 - improves GatewayQuiz proctor key management, especially for
   tests with more than one allowed attempt.  this includes
   adding a deleteAllProctorKeys() method to DB.pm.
 - updates Instructor Tools, UserList.pm and ProblemSetDetail
   to deal with set-level proctoring.  c.f. the note below about
   the ramifications of these changes.
 - updates ProblemSetList to deal with new problem set fields
   set_locations and set-level proctors that are located in a
   different database table than the set data.
 - fixes bugs in UserList and ProblemSetDetail dealing with the
   setting of hide_score, hide_score_by_problem, and
   time_limit_cap.

This update hides set-level proctor users from the classlist
editor (UserList.pm) and instructor tools (Index.pm) interfaces.
They can be created, modified, and deleted at the homework sets
editor page (ProblemSetDetail.pm) only, and there only implicitly:
we never indicate that a user is being created or modified behind
the screen.

Revision 4918 - Directory Listing
Modified Fri Mar 30 19:07:55 2007 UTC (12 years, 10 months ago) by glarose
Some bugfixes, preliminary commit of relax_restrict_ip function.  this
commit
 - adds relax_restrict_ip and hide_score_by_problem columns to the set
	and set_user tables
 - adds the corresponding fields to the Set and UserSet DB Records
 - patches 'no location' handling in the location management routine
	in CourseAdmin.pm
 - improves Authz->checkSet's handling of the case of location
	restriction when no addresses exist for a location, makes it
	use any cached set that may be available, and makes it honor
	relax_restrict_ip
 - corrects a typo and some comments in DB.pm
 - allows ip restriction fields in ProblemSetList when importing from
	or exporting to set definition files
 - updates ProblemSetDetail.pm to handle the relax_restrict_ip field

The relax_restrict_ip function has not been well tested.
hide_score_by_problem isn't yet used.

Revision 4904 - Directory Listing
Modified Tue Mar 27 17:04:02 2007 UTC (12 years, 10 months ago) by glarose
Preliminary commit of code to restrict access to assignments by client
IP address.  This commit adds the database tables for IP address
restriction, updates check_modules.pl to require Net::IP for address
matching, adds database calls in DB.pm for manipulating locations and
addresses, and adds location restriction to the set editing in
ProblemSetDetail.

This commit does not add actual restriction to sets, nor the ability
to create locations to which to restrict access.

Revision 4890 - Directory Listing
Modified Fri Mar 16 00:43:46 2007 UTC (12 years, 11 months ago) by sh002i
fixed message given when an executable is not found -- fixes bug #1153.

Revision 4889 - Directory Listing
Modified Fri Mar 16 00:19:38 2007 UTC (12 years, 11 months ago) by sh002i
accept argument "apache1" or "apache2" to control which modules to check
for. this resolves bug #1151.

Revision 4869 - Directory Listing
Modified Tue Mar 13 15:38:23 2007 UTC (12 years, 11 months ago) by glarose
Update stanzas for modifying hide_score and hide_work columns in set
and set_user to have more intelligible names, and add a default value.

Revision 4863 - Directory Listing
Modified Fri Mar 9 21:07:35 2007 UTC (12 years, 11 months ago) by glarose
add stanzas to update definitions of hide_score and hide_work in set and
userset, and to add time_limit_cap column to those tables.

Revision 4807 - Directory Listing
Modified Thu Mar 1 22:47:21 2007 UTC (12 years, 11 months ago) by gage
Updated version of the check_modules function.  This should make it easier to
add more functionality to this file.

Revision 4722 - Directory Listing
Modified Sat Dec 9 03:29:56 2006 UTC (13 years, 2 months ago) by sh002i
use student ID for password if password field is defined but empty

Revision 4688 - Directory Listing
Modified Fri Dec 1 16:45:35 2006 UTC (13 years, 2 months ago) by glarose
Add hide_score and hide_work columns to the set and set_user tables.
These are currently only used by gateway/quiz assignments.

Revision 4543 - Directory Listing
Modified Mon Oct 2 16:32:51 2006 UTC (13 years, 4 months ago) by sh002i
fixes to index structure.

* the prefix lengths on keyfield indexes is now 255, the length of the field.
* the index that contains all three keyfields is now a UNIQUE KEY
* psvn is no longer the PRIMARY KEY, now a UNIQUE KEY (and it's the
second UNIQUE KEY, after the user_id/set_id one)

also, made wwdb_upgrade a little easier to maintain by not hardcoding
version numbers into the @DB_VERSIONS structure.

Revision 4542 - Directory Listing
Modified Mon Oct 2 15:05:14 2006 UTC (13 years, 4 months ago) by sh002i
alphanumeric keyfields TINYBLOB NOT NULL instead of BLOB for UNIQUE indexing.
check for table existence before doing something with that table.

Revision 4530 - Directory Listing
Modified Thu Sep 28 23:42:32 2006 UTC (13 years, 4 months ago) by sh002i
incorrectly set type of set_user.status column to INT; should be FLOAT.
if you ran wwdb_upgrade after the last commit, you lost the decimal
portions of any status values. thanks to gavin for noticing.

Revision 4529 - Directory Listing
Modified Thu Sep 28 22:48:23 2006 UTC (13 years, 4 months ago) by sh002i
change key.timestamp type to BIGINT and problem_user.status type to INT.

Revision 4458 - Directory Listing
Modified Fri Sep 8 14:20:23 2006 UTC (13 years, 5 months ago) by sh002i
forward-port (sh002i): promote empty or missing statuses to the default
status before importing

Revision 4394 - Directory Listing
Modified Thu Aug 24 00:08:18 2006 UTC (13 years, 6 months ago) by apizer
Add License

Revision 4392 - Directory Listing
Modified Wed Aug 23 23:53:38 2006 UTC (13 years, 6 months ago) by apizer
Initial version

Revision 4372 - Directory Listing
Modified Mon Aug 14 17:25:01 2006 UTC (13 years, 6 months ago) by sh002i
don't attempt to output db_version if it's undefined, don't double-space
output quite so much.

Revision 4371 - Directory Listing
Modified Mon Aug 14 17:23:56 2006 UTC (13 years, 6 months ago) by sh002i
don't check course if user says no.
improved status messages.
ignore non_native tables.
allow conversions from TEXT->INT by first converting to VARCHAR(255)

Revision 4370 - Directory Listing
Modified Sat Aug 12 15:44:03 2006 UTC (13 years, 6 months ago) by sh002i
don't need separate code for initilization -- we can just set db_version
to 0 and run through all the upgrade steps normally. since there are no
courses, only the global updates will run, which is fine.

Revision 4369 - Directory Listing
Modified Fri Aug 11 21:51:28 2006 UTC (13 years, 6 months ago) by sh002i
make this compatible with wwdb_upgrade

Revision 4365 - Directory Listing
Modified Fri Aug 11 18:47:21 2006 UTC (13 years, 6 months ago) by sh002i
this script uses a db_version value to run upgrade code to incrementally
bring the database up-to-date with the current version of webwork. it
can also detect and empty database and initialize it with any system
(non-course) tables (like the depths table) and initilize an up-to-date
db_version value.

Revision 4364 - Directory Listing
Modified Wed Aug 9 21:21:46 2006 UTC (13 years, 6 months ago) by sh002i
check against "database version 0", the db structure during 2.2.x. this
utility is designed to be used ONCE when upgrading from 2.2.x to 2.3.0,
and then all future updates will be handled by wwdb_upgrade. at some
point, i may reinstate the ability to check against the current version,
but at this point it's not necessary.

Revision 4354 - Directory Listing
Modified Sat Aug 5 03:21:10 2006 UTC (13 years, 6 months ago) by sh002i
remove more instances of GDBM-related code

Revision 4352 - Directory Listing
Modified Sat Aug 5 02:53:19 2006 UTC (13 years, 6 months ago) by sh002i
allow user to continue if an sql statement fails.

Revision 4342 - Directory Listing
Modified Thu Aug 3 17:26:42 2006 UTC (13 years, 6 months ago) by sh002i
this goes along with WWDBv3 and should be removed as well

Revision 4204 - Directory Listing
Modified Sat Jul 8 14:42:47 2006 UTC (13 years, 7 months ago) by sh002i
uncomment code

Revision 4203 - Directory Listing
Modified Sat Jul 8 14:42:17 2006 UTC (13 years, 7 months ago) by sh002i
defeat cvs tag parsing

Revision 4200 - Directory Listing
Modified Fri Jul 7 23:40:31 2006 UTC (13 years, 7 months ago) by sh002i
fixed paths to config files

Revision 4199 - Directory Listing
Modified Fri Jul 7 23:40:01 2006 UTC (13 years, 7 months ago) by sh002i
wwapache2ctl.dist should be in the repository, not wwapache2ctl

Revision 4194 - Directory Listing
Modified Wed Jul 5 16:40:45 2006 UTC (13 years, 7 months ago) by gage
Added some new modules that are required.  Two of them will only be required once Apache2 is in place.

Revision 4131 - Directory Listing
Modified Sat Jun 17 21:21:40 2006 UTC (13 years, 8 months ago) by sh002i
Preliminary config files for Apache 2. These are enough to bootstrap
WeBWorK under Apache 2. None of the WW code has been modified yet, so it
of course barfs as soon as you visit /webwork2. However, the config
problems are resolved and real porting can begin.

Revision 4130 - Directory Listing
Modified Fri Jun 16 20:26:48 2006 UTC (13 years, 8 months ago) by sh002i
This utility automates updating config files from their corresponding
.dist files. Run like this:

  bin/ww-update-config conf/global.conf

You can specify either the conf file or its .dist file -- the other one
will be deduced automatically. You can specify multiple files. This is
useful:

  bin/ww-update-config bin/*.dist conf/*.dist

Revision 4114 - Directory Listing
Modified Wed May 31 18:25:18 2006 UTC (13 years, 8 months ago) by sh002i
support SSL mode for devel.webwork.rochester.edu systems.
uncomment the line "SSL=-DSSL" in bin/wwapachectl to enable.
note that if you do this, only https requests will be serviced.
you must be in the unix group wwdev (for access to the ssl crt and key)

Revision 4113 - Directory Listing
Modified Wed May 31 01:07:25 2006 UTC (13 years, 8 months ago) by gage
Roll back unwanted change to wwsh

Revision 4112 - Directory Listing
Modified Wed May 31 01:05:41 2006 UTC (13 years, 8 months ago) by gage
Scripts for cleaning up code in problems.  (Written by Davide Cervone)

Revision 4111 - Directory Listing
Modified Mon May 29 21:57:06 2006 UTC (13 years, 8 months ago) by sh002i
Set server root (-d) to $WEBWORKROOT, create "run" directory if
necessary. (This is for devel's Apache/SSL, which wants to put an
httpd.mm file in "$SERVERROOT/run".)

Revision 4079 - Directory Listing
Modified Tue May 16 21:35:17 2006 UTC (13 years, 9 months ago) by sh002i
fixed a variable name from previous change

Revision 4078 - Directory Listing
Modified Tue May 16 21:25:14 2006 UTC (13 years, 9 months ago) by sh002i
check more config files (basically all the files with .dist versions are
checked now)

Revision 4069 - Directory Listing
Modified Fri May 12 18:40:06 2006 UTC (13 years, 9 months ago) by sh002i
check for 'dbupgrade' table and 'db_version' value within that table.

Revision 4067 - Directory Listing
Modified Wed May 10 21:50:41 2006 UTC (13 years, 9 months ago) by sh002i
some improvements:
* warn if dbLayoutName doesn't match for a course (this can be extended
  to to more sophisticated checking)
* add a summary of tables that weren't checked because they weren't part
  of any course
* -n flag == don't attempt to fix problems

Revision 4066 - Directory Listing
Modified Wed May 10 02:08:35 2006 UTC (13 years, 9 months ago) by sh002i
a utility to check and repair the webwork SQL database.

functionality so far:

* check for table existence, add tables that don't exist
* check for field existence, add fields that don't exist
* check field types, change types of fields that have incorrect types

still TODO:

* check index structure with SHOW INDEXES FROM
* add indexes that aren't present
* display tables in webwork database that weren't part of any course
* check for dbupgrade table, offer to add it

Revision 3987 - Directory Listing
Modified Fri Jan 27 18:19:13 2006 UTC (14 years ago) by sh002i
forward-port from rel-2-2-dev: (add GD and Net::SMTP, used by PG, and
remove silly test module.)

Revision 3985 - Directory Listing
Modified Fri Jan 27 17:53:48 2006 UTC (14 years ago) by sh002i
forward-port from rel-2-2-dev: (Updated modules/executables list, cleaned up output.

Output now specifies that $PATH is being searched for executables, and
lists the contents of $PATH. Same with @INC. It's a little easier to
tell if a module/executable has not been found: The "found" lines are
prefixed by some space, which makes the not found '**' prefix stand out.
When a module fails to load, but it's not because it wasn't found, the
error message is given.)

Revision 3983 - Directory Listing
Modified Fri Jan 27 03:34:26 2006 UTC (14 years ago) by sh002i
these files are no longer used

Revision 3982 - Directory Listing
Modified Fri Jan 27 03:33:49 2006 UTC (14 years ago) by sh002i
moving local utilities to admintools module

Revision 3973 - Directory Listing
Modified Wed Jan 25 23:13:56 2006 UTC (14 years ago) by sh002i
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 3771 - Directory Listing
Modified Mon Nov 21 21:05:34 2005 UTC (14 years, 3 months ago) by sh002i
use the perl debugger for a shell instead of PSH. this gets us a
readline (or readline-like?) editing environment, which is much nicer to
work with.

Revision 3770 - Directory Listing
Modified Mon Nov 21 17:33:07 2005 UTC (14 years, 3 months ago) by sh002i
utility script to create tarballs of problem libraries.

Revision 3392 - Directory Listing
Modified Wed Jul 20 18:28:55 2005 UTC (14 years, 7 months ago) by gage
Fixed error that kept the script from working on courses whose
names contained an underscore.

Added `   ` around course names to handle courses whose names
have hyphens in them (and other weird characters)

Added print comments so that you see a running commentary of what
is being changed.  Once this script is debugged we might want
to turn these off.

Revision 3388 - Directory Listing
Modified Mon Jul 18 23:10:35 2005 UTC (14 years, 7 months ago) by glarose
Add command-line utility to update sql and sql_single databases to include
gateway fields.  Use: wwdb_addgw [-h] [sql|sql_single]

Adds fields to the set and set_user tables in the WeBWorK mysql databases
that are required for the gateway module.  The script prompts for which
courses to modify.  Adding gateway database fields to existing courses
should have no effect on those courses, even if they are running under a
non-gateway aware version of the WeBWorK system.  (I haven't rigorously
tested this.)

If -h is supplied, the script hides the mysql password when it prompts for
it (this assumes that a Unix based stty -echo works).  If sql or sql_single
are supplied, they become the default database format.

Note that this has been tested, but not rigorously.  Please let me know
if you find that it does not perform as advertised.  It might be wise to
back up the database tables before using, and to check that it does what
we expect (that is, adds columns to the set and set_user tables) after
running it.

Revision 3075 - Directory Listing
Modified Thu Jan 6 21:04:29 2005 UTC (15 years, 1 month ago) by sh002i
small changes to keep up with DBv3 API

Revision 3021 - Directory Listing
Modified Thu Dec 9 16:30:12 2004 UTC (15 years, 2 months ago) by sh002i
refactored status/role lookups, added abstract set/problem support

Revision 3016 - Directory Listing
Modified Fri Dec 3 02:19:03 2004 UTC (15 years, 2 months ago) by sh002i
creates user, section, recitation, and participant records.

Revision 3015 - Directory Listing
Modified Thu Dec 2 04:31:36 2004 UTC (15 years, 2 months ago) by sh002i
support for importing roles and statuses from global.conf. the rest
should be considerably easier than this. i hope. i really do.

Revision 3012 - Directory Listing
Modified Thu Nov 25 05:50:51 2004 UTC (15 years, 2 months ago) by sh002i
the beginnings of an upgrade script. currently deals with converting
permission levels to roles properly! :)

Revision 2955 - Directory Listing
Modified Fri Oct 22 22:59:53 2004 UTC (15 years, 4 months ago) by sh002i
POD fixes

Revision 2890 - Directory Listing
Modified Sun Oct 10 21:45:43 2004 UTC (15 years, 4 months ago) by sh002i
support for password and permission level in classlist, bug #649. note
that passowrd is crypted!

Revision 2881 - Directory Listing
Modified Sun Oct 10 20:32:29 2004 UTC (15 years, 4 months ago) by sh002i
use WeBWorK::File::Classlist for classlist parsing. removed old
commented-out code from before CourseManangement.pm existed.

Revision 2877 - Directory Listing
Modified Sun Oct 10 17:04:47 2004 UTC (15 years, 4 months ago) by sh002i
works now

Revision 2866 - Directory Listing
Modified Thu Oct 7 02:06:25 2004 UTC (15 years, 4 months ago) by sh002i
skeleton of WW1Hash reindexing frontend

Revision 2863 - Directory Listing
Modified Thu Oct 7 01:23:19 2004 UTC (15 years, 4 months ago) by gage
Corrected useage statements.

Revision 2862 - Directory Listing
Modified Wed Oct 6 21:09:33 2004 UTC (15 years, 4 months ago) by gage
removed call for epsfile -- it was bogus.

Revision 2837 - Directory Listing
Modified Tue Sep 28 01:23:01 2004 UTC (15 years, 4 months ago) by sh002i
added script to add indices to sql_single courses. usage:

wwaddindexing course_name

Revision 2836 - Directory Listing
Modified Mon Sep 27 19:28:36 2004 UTC (15 years, 4 months ago) by sh002i
added script to convert a course from sql to sql_single. moves sql
tables from the course's database to the database used by the sql_single
loyout. also gives instructions on how to modify the course's
course.conf file to complete the transition.

Call sql2sql_single like this, in the common case:

./sql2sql_single <course-name> webwork root <sql-root-pw>

You can easily bash script this to do mass conversions of courses:

cd /webwork/shared-courses
for course in *; do
	sql2sql_single $course webwork root <sql-root-pw>
	cd /webwork/shared-courses/$course
	sed 's/sql/sql_single/' < course.conf > course.conf.new
	mv course.conf course.conf.old
	mv course.conf.new course.conf
done

to do a subset of all courses, change the `for' line to:

for course in course1 course2 course3; do

Revision 2820 - Directory Listing
Modified Thu Sep 23 17:10:09 2004 UTC (15 years, 5 months ago) by gage
Added DateTime module to the list of required modules.

Revision 2819 - Directory Listing
Modified Thu Sep 23 16:53:31 2004 UTC (15 years, 5 months ago) by sh002i
cleaned up command-line scripts.
- use new hashref form of WeBWorK::CourseEnvironment constructor.
- moved PSH to lib/
- stop using FindBin in wwsh

Revision 2818 - Directory Listing
Modified Thu Sep 23 16:33:59 2004 UTC (15 years, 5 months ago) by sh002i
removed deprecated scripts

Revision 2814 - Directory Listing
Modified Wed Sep 22 23:29:53 2004 UTC (15 years, 5 months ago) by gage
Running

latex check_latex.tex

will check to see that the .sty files can be found.

Revision 2812 - Directory Listing
Modified Tue Sep 21 23:27:40 2004 UTC (15 years, 5 months ago) by sh002i
pod fix

Revision 2503 - Directory Listing
Modified Mon Jul 12 17:55:55 2004 UTC (15 years, 7 months ago) by sh002i
fixed spacing in checkconfig message

Revision 2500 - Directory Listing
Modified Mon Jul 12 16:09:52 2004 UTC (15 years, 7 months ago) by sh002i
changed default WW directory to $HOME/webwork2

Revision 2492 - Directory Listing
Modified Mon Jul 12 02:43:18 2004 UTC (15 years, 7 months ago) by sh002i
DEVEL SYSTEM CONFIG CHANGES - PLEASE READ.

To complement the new Apache/WeBWorK configuration scheme, the
http-wwmp-header.conf and http-wwmp.conf files are being eliminated in
favor of a primarily Perl-based configuration scheme. This reduces
redundancy and allows both development and production system to share a
single "core" WeBWorK configuration file, webwork.apache-config.

The setup is described in the new top-level development server config
file devel.apache-config:

    This is an Apache configuration file suitable for use when doing
    development on the WeBWorK 2 system. This setup allows each
    developer to run an independent Apache server under their own UID,
    using their own working copy of the WeBWorK code. The configuration
    is split into three parts:

    The first part is a site-specific (but user-indepenent) file named
    devel-site.apache-config. It contains directives that are common to
    all development servers on the same host. The site administrator can
    chose to maintain a single copy of this file and have all developers
    reference it in a central location.

    The second part is the stock webwork.apache-config file that is used
    for normal installations. Customize this file, setting the
    $webwork_url, $webwork_dir, $pg_dir, etc. appropriatly for your
    development server.

    The third part is this file. It contains the user-specific
    directives that are specific to each developer's server.

Of the two files specific to development server configuration, only
devel-site.apache-config will require modification, and it need be
modified only once per host machine. devel.apache-config uses the UID
and GID and of the user running it, and the values set in
webwork.apache-conf, to configure itself.

wwapachectl has also been modified to refer to devel.apache-config
instead of http-wwmp.conf and streamline its configuration.

Revision 2487 - Directory Listing
Modified Sun Jul 11 19:41:30 2004 UTC (15 years, 7 months ago) by gage
Restoring gif2png default directory to one appropriate to unix installations
(as opposed to macs).  Sorry about that .

Revision 2476 - Directory Listing
Modified Sat Jul 10 16:05:11 2004 UTC (15 years, 7 months ago) by sh002i
added support for writing database to stdout if filename is "-".

Revision 2450 - Directory Listing
Modified Wed Jul 7 14:37:32 2004 UTC (15 years, 7 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 2432 - Directory Listing
Modified Thu Jul 1 20:40:24 2004 UTC (15 years, 7 months ago) by sh002i
cosmetic changes to check_modules.pl

Revision 2430 - Directory Listing
Modified Thu Jul 1 18:46:55 2004 UTC (15 years, 7 months ago) by sh002i
removed deprecated mksqldb utility. use new addcourse utility instead.

Revision 2411 - Directory Listing
Modified Fri Jun 25 18:37:37 2004 UTC (15 years, 7 months ago) by jj
Report number of images removed, improved behavior when the user specifies
both --remove and --report, die if you don't have permissions to remove an
image, and removed comments.

Revision 2408 - Directory Listing
Modified Fri Jun 25 16:23:38 2004 UTC (15 years, 7 months ago) by jj
Script for removing dvipng images matching various date criteria.

Revision 2329 - Directory Listing
Modified Wed Jun 16 18:21:10 2004 UTC (15 years, 8 months ago) by gage
Searches for some of the executables such as dvipng and tth as well

Revision 2237 - Directory Listing
Modified Tue Jun 1 14:42:26 2004 UTC (15 years, 8 months ago) by jj
Command line script to set a password, analogous to the WW 1 script.  The name is slightly different in case you need both available.

Revision 2208 - Directory Listing
Modified Mon May 24 18:16:34 2004 UTC (15 years, 9 months ago) by sh002i
PLEASE UPDATE wwapachectl FROM wwapachectl.dist!
added warnings if config files are older than distribution versions.

Revision 2181 - Directory Listing
Modified Sun May 23 19:54:53 2004 UTC (15 years, 9 months ago) by sh002i
IMPORTANT: changes to wwapachectl.dist -- update local copy!
added umask handling. if you're sharing courses with other users (as we
are on snoop and devel) uncomment the new "umask" line.

Revision 2148 - Directory Listing
Modified Sat May 22 01:08:09 2004 UTC (15 years, 9 months 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 2118 - Directory Listing
Modified Sun May 16 23:31:11 2004 UTC (15 years, 9 months ago) by sh002i
removed unused code

Revision 2096 - Directory Listing
Modified Thu May 13 13:44:28 2004 UTC (15 years, 9 months ago) by gage
This checks for modules known to be needed by WeBWorK.
The list of modules is supplied in the DATA section of
the script.

Revision 2036 - Directory Listing
Modified Fri May 7 19:05:45 2004 UTC (15 years, 9 months ago) by sh002i
usage message prints supported tables

Revision 2007 - Directory Listing
Modified Wed May 5 22:38:24 2004 UTC (15 years, 9 months ago) by sh002i
course deletion script

Revision 2006 - Directory Listing
Modified Wed May 5 22:02:50 2004 UTC (15 years, 9 months ago) by sh002i
now uses CoureManagement backend

Revision 1986 - Directory Listing
Modified Thu Apr 29 23:33:26 2004 UTC (15 years, 9 months ago) by sh002i
cleaned up, added documentation, added "replace" functionality

Revision 1975 - Directory Listing
Modified Tue Apr 27 03:37:33 2004 UTC (15 years, 9 months ago) by sh002i
import support, error reporting

Revision 1971 - Directory Listing
Modified Sun Apr 25 16:27:15 2004 UTC (15 years, 9 months ago) by sh002i
wwdb is now for database import and export

Revision 1926 - Directory Listing
Modified Thu Mar 25 00:27:56 2004 UTC (15 years, 11 months ago) by sh002i
Added a new numeric "published" field to Set and UserSet record classes,
WW1Hash (with field name "publ"), and mksqldb.

Revision 1906 - Directory Listing
Modified Fri Mar 19 21:54:45 2004 UTC (15 years, 11 months ago) by sh002i
fixed stupid errors in generated course.conf file.

Revision 1872 - Directory Listing
Modified Wed Mar 10 16:00:16 2004 UTC (15 years, 11 months ago) by sh002i
removed outdated documentation about manually creating course.conf file.

Revision 1806 - Directory Listing
Modified Sat Feb 14 04:07:37 2004 UTC (16 years ago) by sh002i
a few more fixes

Revision 1805 - Directory Listing
Modified Sat Feb 14 00:56:00 2004 UTC (16 years ago) by sh002i
addcourse improvements:

FIXED: we should create a stub course.conf with dbLayout set and "other things
FIXED: you might want to change" commented out. then we can kill the "don't
FIXED: forget to set dbLayout to "sql" in course.conf!" message.

FIXED: setting global user ID in new courses:

FIXED: add a --global-user switch to addcourse to override that value
FIXED: (and add the override to course.conf)
FIXED: warn if the file specified by --users doesn't contain a user with the global user ID

Revision 1703 - Directory Listing
Modified Mon Jan 5 01:02:41 2004 UTC (16 years, 1 month ago) by sh002i
removed lingering references to "webwork-modperl", since we're calling
this product "webwork2" now. soon we should change the name of the CVS
module to "webwork2" as well.

Revision 1698 - Directory Listing
Modified Sun Jan 4 07:20:33 2004 UTC (16 years, 1 month ago) by sh002i
improved documentation in database.conf.dist and addcourse. added
mksqldb utility.

Revision 1697 - Directory Listing
Modified Sat Jan 3 21:00:28 2004 UTC (16 years, 1 month ago) by sh002i
changed calls to WeBWorK::DB::new, removed obsolete config files

Revision 1696 - Directory Listing
Modified Sat Jan 3 20:07:03 2004 UTC (16 years, 1 month ago) by sh002i
UPDATE YOUR CONFIG FILES! (global.conf.dist, database.conf.dist)

Made changes to support the storage of multiple database layouts in a
single course environment. Database layouts are now stored in a hash
named %dbLayouts in database.conf, and the default layout is aliased to
*dbLayout (see comments in database.conf.dist and global.conf.dist)
sql.conf and gdbm.conf are no longer used.

Support the selection of a specific database layout when instantiating
WeBWorK::DB. WeBWorK::DB now takes a reference to a database layout
rather than an entire course environment.

All calls to WeBWorK::DB::new were updated to pass the correct argument.

Revision 1689 - Directory Listing
Modified Sat Dec 27 21:41:56 2003 UTC (16 years, 1 month ago) by sh002i
added missing POD =back directive

Revision 1663 - Directory Listing
Modified Tue Dec 9 01:12:32 2003 UTC (16 years, 2 months ago) by sh002i
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 1654 - Directory Listing
Modified Thu Dec 4 06:17:08 2003 UTC (16 years, 2 months ago) by sh002i
fixed password creation

Revision 1653 - Directory Listing
Modified Thu Dec 4 06:03:25 2003 UTC (16 years, 2 months ago) by sh002i
addcourse - add a course

addcourse [--users=FILE [--professors=USERID[,USERID]...] ]
[--templates=DIR] COURSEID

Add a course to the courses directory. The required directories will be
created. Optionally, a database can be populated with users and the
F<templates> directory can be populated with the contents of another
directory. Also, one or more users can be granted professor privileges.

Revision 1638 - Directory Listing
Modified Wed Nov 19 18:46:53 2003 UTC (16 years, 3 months ago) by sh002i
added script to generate HTML documentation from library POD

Revision 1564 - Directory Listing
Modified Mon Oct 6 22:35:16 2003 UTC (16 years, 4 months ago) by sh002i
now can take commands from ARGV intead of interactively

Revision 1222 - Directory Listing
Modified Thu Jun 19 19:23:50 2003 UTC (16 years, 8 months ago) by sh002i
updated calls to CE constructor

Revision 1192 - Directory Listing
Modified Tue Jun 17 22:07:59 2003 UTC (16 years, 8 months ago) by gage
Added a field for elapsed time ($diff).  Changed how the
fields are concatenated (for now).
--Mike

Revision 1189 - Directory Listing
Modified Tue Jun 17 21:37:23 2003 UTC (16 years, 8 months ago) by sh002i
Changed the format of some messages, added docs.
-sam

Revision 1179 - Directory Listing
Modified Mon Jun 16 23:58:55 2003 UTC (16 years, 8 months ago) by sh002i
added WeBWorK::Timing timer/logger and "timing" script to analyze timing
logs.
-sam

Revision 1178 - Directory Listing
Modified Mon Jun 16 23:58:04 2003 UTC (16 years, 8 months ago) by sh002i
wwapachectl now checks for existence of httpd.pid file.
-sam

Revision 1096 - Directory Listing
Modified Mon Jun 9 23:25:09 2003 UTC (16 years, 8 months ago) by sh002i
*** empty log message ***

Revision 946 - Directory Listing
Modified Fri May 30 00:27:02 2003 UTC (16 years, 8 months ago) by sh002i
now supports NULL as undef.
FIXME: update the docs.
-sam

Revision 922 - Directory Listing
Modified Wed May 28 01:18:11 2003 UTC (16 years, 8 months ago) by sh002i
added hash2sql conversion script.
-sam

Revision 843 - Directory Listing
Modified Thu May 15 00:58:44 2003 UTC (16 years, 9 months ago) by sh002i
bin/authedit is no longer useful, now that we have bin/wwdb

Revision 810 - Directory Listing
Modified Tue Apr 22 20:49:31 2003 UTC (16 years, 10 months ago) by sh002i
added bin/wwsh - a rudimentary webwork shell which (currently) allows
access to CourseEnvironment and DB objects. This could be extended to
provide a full shell for the WeBWorK system. (Uses PSH.pm.)
-sam

Revision 808 - Directory Listing
Modified Thu Apr 17 21:01:17 2003 UTC (16 years, 10 months ago) by sh002i
Lots of work on WWDBv2... WW1Hash is done! A complete dbLayout (as
detailed on global.conf.dist) works now.
-sam

Revision 800 - Directory Listing
Modified Tue Mar 25 20:16:26 2003 UTC (16 years, 11 months ago) by sh002i
updated usage() to reflect actual accepted syntax.
-sam

Revision 798 - Directory Listing
Modified Fri Mar 21 23:30:16 2003 UTC (16 years, 11 months ago) by sh002i
initial support for WWDBv2:
        - DB.pm finished (except for getGlobalUser{Set,Problem} methods)
        - schema modules for password, permission, key, and user with
          WWDBv1 hash-bashed backends
        - GDBM driver
        - wwdb command-line frontend
-sam

Revision 694 - Directory Listing
Modified Wed Jan 8 15:48:24 2003 UTC (17 years, 1 month ago) by sh002i
added gif2png script to the repository.
-sam

Revision 661 - Directory Listing
Modified Mon Nov 25 22:37:55 2002 UTC (17 years, 2 months ago) by sh002i
removed unused WEBWORKUSER variable
-sam

Revision 660 - Directory Listing
Modified Mon Nov 25 19:18:28 2002 UTC (17 years, 2 months ago) by malsyned
Changed the naming of the per-user config file
-dennis

Revision 658 - Directory Listing
Modified Mon Nov 25 08:39:38 2002 UTC (17 years, 2 months ago) by sh002i
renamed wwapachectl.sample -> wwapachectl.dist
-sam

Revision 651 - Directory Listing
Modified Sun Nov 24 03:21:47 2002 UTC (17 years, 3 months ago) by sh002i
added $WEBWORKUSER variable
-sam

Revision 638 - Directory Listing
Modified Wed Nov 20 20:22:08 2002 UTC (17 years, 3 months ago) by malsyned
Added a template for controlling the per-user apache process
-Dennis

Revision 562 - Directory Listing
Modified Fri Sep 27 23:53:42 2002 UTC (17 years, 4 months ago) by sh002i
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
  of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
  The translator no longer shares IO.pm's functions with the safe compartment.
  This is a BAD THING, and should be reconsidered when the Translator is
  revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
  in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
  &dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
  of uninitialized value in null operation" warning in template(), tho.

Still to come:

- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password

Revision 561 - Directory Listing
Modified Fri Sep 27 20:23:48 2002 UTC (17 years, 4 months ago) by sh002i
removed deprecated stuff from the bin directory.
added gif2eps and png2eps from the old system.
-sam

Revision 488 - Directory Listing
Modified Wed Aug 21 15:26:03 2002 UTC (17 years, 6 months ago) by sh002i
adapted pdf_latex to work with pdflatex. call it pip_pdflatex. it
doesn't exactly work yet. it might not be worth it.
-sam

Revision 432 - Directory Listing
Modified Fri Jul 19 02:39:16 2002 UTC (17 years, 7 months ago) by sh002i
added: math2img and support files... probably shouldn't distribute pip
with WeBWorK, but no one's going to complain, since it's in the public
domain (and that's one less dependancy ;)
-sam

Revision 351 - Directory Listing
Added Fri Jun 7 21:43:07 2002 UTC (17 years, 8 months ago) by sh002i
not ready for use yet. heh heh.
-sam

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9