You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(267) |
Nov
(344) |
Dec
(119) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(23) |
Feb
(15) |
Mar
(16) |
Apr
(388) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
From: <jas...@us...> - 2002-11-23 10:18:45
|
Update of /cvsroot/genex/genex-server/Genex/AM_Spots In directory sc8-pr-cvs1:/tmp/cvs-serv5789/Genex/AM_Spots Modified Files: AM_Spots.pm Log Message: new Index: AM_Spots.pm =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/AM_Spots/AM_Spots.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** AM_Spots.pm 15 Nov 2002 21:55:07 -0000 1.30 --- AM_Spots.pm 23 Nov 2002 10:18:12 -0000 1.31 *************** *** 22,26 **** ! use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $FKEYS $COLUMN2NAME $NAME2COLUMN $COLUMN_NAMES %_CACHE $USE_CACHE $LIMIT $FKEY_OBJ2RAW $TABLE2PKEY $UNIQUE_COLUMNS $SUPER_CLASSES $TABLE_TYPE $PKEY_NAME $TABLE_NAME $DEBUG $TABLE_NAME_VIEW); require Exporter; --- 22,26 ---- ! use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $FKEYS $COLUMN2NAME $NAME2COLUMN $COLUMN_NAMES %_CACHE $USE_CACHE $LIMIT $FKEY_OBJ2RAW $TABLE2PKEY $UNIQUE_COLUMNS $SUPER_CLASSES $TABLE_TYPE $PKEY_NAME $TABLE_NAME $DEBUG $TABLE_NAME_VIEW $COUNT); require Exporter; *************** *** 938,942 **** =item insert_matrix($class,%args) ! This method inserts the data for the object into the database specified by the DB handle $dbh. To use this method, create a blank container object with C<new()> (for class C<Bio::Genex::AM_Spots> the --- 938,942 ---- =item insert_matrix($class,%args) ! This method inserts a matrix of data into the database specified by the DB handle $dbh. To use this method, create a blank container object with C<new()> (for class C<Bio::Genex::AM_Spots> the *************** *** 953,956 **** --- 953,957 ---- $physicalbioassay->insert_db($dbh); + Supported %args *************** *** 961,976 **** an active database handle - =item * fkey - - the container objects primary key that will be entered in the foreign - key slot for each matrix row - =item * matrix an array ref holding the matrix ! =item * name - the person responisible for the insertion =back --- 962,974 ---- an active database handle =item * matrix an array ref holding the matrix ! =item * fkey ! ! the container objects primary key that will be entered in the foreign ! key slot for each matrix row =back *************** *** 983,986 **** --- 981,985 ---- container object. + =cut *************** *** 994,1002 **** my ($pack,$file,$line,$sub) = caller(0); push(@error_args, caller=>"$pack:$file:$line:$sub"); my $lt_pkey = $args{fkey}; - my $matrix = $args{matrix}; # first we ensure that the container instance is really in the DB ! my $sql = $dbh->create_select_sql( COLUMNS=>['pba_pk'], FROM=>[Bio::Genex::PhysicalBioAssay->table_or_viewname($dbh)], WHERE=>qq[pba_pk='$lt_pkey'], --- 993,1008 ---- my ($pack,$file,$line,$sub) = caller(0); push(@error_args, caller=>"$pack:$file:$line:$sub"); + my $matrix = $args{matrix}; + $dbh->error(@error_args, + message=>"Must supply array reference for 'matrix'", + no_errstr=>1, + ) + unless ref($matrix) eq 'ARRAY'; + my $header = shift @{$matrix}; + my $sql; my $lt_pkey = $args{fkey}; # first we ensure that the container instance is really in the DB ! $sql = $dbh->create_select_sql( COLUMNS=>['pba_pk'], FROM=>[Bio::Genex::PhysicalBioAssay->table_or_viewname($dbh)], WHERE=>qq[pba_pk='$lt_pkey'], *************** *** 1008,1015 **** if not defined $ref or not scalar @{$ref}; # ok to proceed with insert ! my $header = shift @{$matrix}; push(@{$header},'pba_fk','ams_pk'); # pre-fetch the next value of the sequence my $seq = 'GENEX_ID_SEQ'; --- 1014,1023 ---- if not defined $ref or not scalar @{$ref}; + # ok to proceed with insert ! # add lookup table fkey and primary key to each row push(@{$header},'pba_fk','ams_pk'); + # pre-fetch the next value of the sequence my $seq = 'GENEX_ID_SEQ'; *************** *** 1028,1032 **** --- 1036,1043 ---- message=>"Couldn't prepare insert sql", sql=>$sql); + + my $count; foreach my $row (@{$matrix}) { + $count++; $seq_sth->execute() or $dbh->error(@error_args, *************** *** 1043,1052 **** # DBI won't re-run the SQL until we finish $seq_sth->finish(); $sth->execute(@{$row},$lt_pkey,$pkey->[0]) or $dbh->error(@error_args, message=>"Couldn't execute insert sql with args: " ! . join(',',@{$row},$pkey->[0]), sth=>$sth, sql=>$sql); } my $ga_db = Bio::Genex::GenexAdmin->new(); --- 1054,1069 ---- # DBI won't re-run the SQL until we finish $seq_sth->finish(); + $sth->execute(@{$row},$lt_pkey,$pkey->[0]) or $dbh->error(@error_args, message=>"Couldn't execute insert sql with args: " ! . join(',',@{$row},$lt_pkey,$pkey->[0]), sth=>$sth, sql=>$sql); + + + print STDERR "Handled $count Bio::Genex::AM_Spots objects + " + if $DEBUG and $COUNT and ($count % $COUNT == 0); } my $ga_db = Bio::Genex::GenexAdmin->new(); |
From: <jas...@us...> - 2002-11-23 10:18:45
|
Update of /cvsroot/genex/genex-server/Genex/AM_SuspectSpots In directory sc8-pr-cvs1:/tmp/cvs-serv5789/Genex/AM_SuspectSpots Modified Files: AM_SuspectSpots.pm Log Message: new Index: AM_SuspectSpots.pm =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/AM_SuspectSpots/AM_SuspectSpots.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** AM_SuspectSpots.pm 15 Nov 2002 21:55:07 -0000 1.30 --- AM_SuspectSpots.pm 23 Nov 2002 10:18:12 -0000 1.31 *************** *** 22,26 **** ! use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $FKEYS $COLUMN2NAME $NAME2COLUMN $COLUMN_NAMES %_CACHE $USE_CACHE $LIMIT $FKEY_OBJ2RAW $TABLE2PKEY $UNIQUE_COLUMNS $SUPER_CLASSES $TABLE_TYPE $PKEY_NAME $TABLE_NAME $DEBUG $TABLE_NAME_VIEW); require Exporter; --- 22,26 ---- ! use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $FKEYS $COLUMN2NAME $NAME2COLUMN $COLUMN_NAMES %_CACHE $USE_CACHE $LIMIT $FKEY_OBJ2RAW $TABLE2PKEY $UNIQUE_COLUMNS $SUPER_CLASSES $TABLE_TYPE $PKEY_NAME $TABLE_NAME $DEBUG $TABLE_NAME_VIEW $COUNT); require Exporter; *************** *** 745,748 **** --- 745,867 ---- } + + =item insert_matrix($class,%args) + + + This method inserts a matrix of data into the database specified by + the DB handle $dbh. Class C<Bio::Genex::AM_SuspectSpots> has no foreign keys of + type 'lookup table', so C<insert_matrix> may be invoked as a ordinary + class method. + + my $matrix = some_method_returning_data(); + Bio::Genex::AM_SuspectSpots->insert_matrix(dbh=>$dbh,matrix=>$matrix); + + + + Supported %args + + =over + + =item * dbh + + an active database handle + + =item * matrix + + an array ref holding the matrix + + + + =back + + B<NOTE:> You must log into the DB with a user/password that has INSERT + priveleges in the DB, otherwise you will get a DBI error. + + + + =cut + + sub insert_matrix { + my ($class,%args) = @_; + my $dbh = $args{dbh}; + assert_dbh($dbh); + + my $table_name = Bio::Genex::AM_SuspectSpots->table_or_viewname($dbh); + my @error_args = (); + my ($pack,$file,$line,$sub) = caller(0); + push(@error_args, caller=>"$pack:$file:$line:$sub"); + my $matrix = $args{matrix}; + $dbh->error(@error_args, + message=>"Must supply array reference for 'matrix'", + no_errstr=>1, + ) + unless ref($matrix) eq 'ARRAY'; + my $header = shift @{$matrix}; + my $sql; + + + + # add primary key to each row + push(@{$header},''); + + + # pre-fetch the next value of the sequence + my $seq = 'GENEX_ID_SEQ'; + my $seq_sql = qq[SELECT nextval('"$seq"'::text)]; + my $seq_sth = $dbh->prepare($seq_sql) + or $dbh->error(@error_args, + sql=>$seq_sql, + message=>"Couldn't prepare nextval for sequence $seq", + ); + + $sql = $dbh->create_insert_sql($table_name, + $header, + ); + my $sth = $dbh->prepare($sql) + or $dbh->error(@error_args, + message=>"Couldn't prepare insert sql", + sql=>$sql); + + my $count; + foreach my $row (@{$matrix}) { + $count++; + $seq_sth->execute() + or $dbh->error(@error_args, + message=>"Couldn't execute nextval from sequence $seq", + sth=>$seq_sth, + sql=>$seq_sql); + my $pkey = $seq_sth->fetchrow_arrayref(); + $dbh->error(@error_args, + message=>"Couldn't fetch nextval from sequence $seq", + sth=>$seq_sth, + sql=>$seq_sql) + unless defined $pkey && $pkey->[0]; + + # DBI won't re-run the SQL until we finish + $seq_sth->finish(); + + $sth->execute(@{$row},$pkey->[0]) + or $dbh->error(@error_args, + message=>"Couldn't execute insert sql with args: " + . join(',',@{$row},$pkey->[0]), + sth=>$sth, + sql=>$sql); + + + print STDERR "Handled $count Bio::Genex::AM_SuspectSpots objects + " + if $DEBUG and $COUNT and ($count % $COUNT == 0); + } + my $ga_db = Bio::Genex::GenexAdmin->new(); + my $description = "inserted " . scalar @{$matrix} . " Bio::Genex::AM_SuspectSpots objects"; + $ga_db->description($description); + $ga_db->insert_db($dbh); + + $dbh->error(@error_args, + message=>"Couldn't insert GenexAdmin record") + if $dbh->err; + + return 1; + } # ObjectTemplate automagically creates a new() method for us |
From: <jas...@us...> - 2002-11-23 10:18:45
|
Update of /cvsroot/genex/genex-server/Genex/AM_FactorValues In directory sc8-pr-cvs1:/tmp/cvs-serv5789/Genex/AM_FactorValues Modified Files: AM_FactorValues.pm Log Message: new Index: AM_FactorValues.pm =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/AM_FactorValues/AM_FactorValues.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** AM_FactorValues.pm 15 Nov 2002 21:55:06 -0000 1.30 --- AM_FactorValues.pm 23 Nov 2002 10:18:12 -0000 1.31 *************** *** 22,26 **** ! use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $FKEYS $COLUMN2NAME $NAME2COLUMN $COLUMN_NAMES %_CACHE $USE_CACHE $LIMIT $FKEY_OBJ2RAW $TABLE2PKEY $UNIQUE_COLUMNS $SUPER_CLASSES $TABLE_TYPE $PKEY_NAME $TABLE_NAME $DEBUG $TABLE_NAME_VIEW); require Exporter; --- 22,26 ---- ! use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $FKEYS $COLUMN2NAME $NAME2COLUMN $COLUMN_NAMES %_CACHE $USE_CACHE $LIMIT $FKEY_OBJ2RAW $TABLE2PKEY $UNIQUE_COLUMNS $SUPER_CLASSES $TABLE_TYPE $PKEY_NAME $TABLE_NAME $DEBUG $TABLE_NAME_VIEW $COUNT); require Exporter; *************** *** 753,756 **** --- 753,875 ---- } + + =item insert_matrix($class,%args) + + + This method inserts a matrix of data into the database specified by + the DB handle $dbh. Class C<Bio::Genex::AM_FactorValues> has no foreign keys of + type 'lookup table', so C<insert_matrix> may be invoked as a ordinary + class method. + + my $matrix = some_method_returning_data(); + Bio::Genex::AM_FactorValues->insert_matrix(dbh=>$dbh,matrix=>$matrix); + + + + Supported %args + + =over + + =item * dbh + + an active database handle + + =item * matrix + + an array ref holding the matrix + + + + =back + + B<NOTE:> You must log into the DB with a user/password that has INSERT + priveleges in the DB, otherwise you will get a DBI error. + + + + =cut + + sub insert_matrix { + my ($class,%args) = @_; + my $dbh = $args{dbh}; + assert_dbh($dbh); + + my $table_name = Bio::Genex::AM_FactorValues->table_or_viewname($dbh); + my @error_args = (); + my ($pack,$file,$line,$sub) = caller(0); + push(@error_args, caller=>"$pack:$file:$line:$sub"); + my $matrix = $args{matrix}; + $dbh->error(@error_args, + message=>"Must supply array reference for 'matrix'", + no_errstr=>1, + ) + unless ref($matrix) eq 'ARRAY'; + my $header = shift @{$matrix}; + my $sql; + + + + # add primary key to each row + push(@{$header},''); + + + # pre-fetch the next value of the sequence + my $seq = 'GENEX_ID_SEQ'; + my $seq_sql = qq[SELECT nextval('"$seq"'::text)]; + my $seq_sth = $dbh->prepare($seq_sql) + or $dbh->error(@error_args, + sql=>$seq_sql, + message=>"Couldn't prepare nextval for sequence $seq", + ); + + $sql = $dbh->create_insert_sql($table_name, + $header, + ); + my $sth = $dbh->prepare($sql) + or $dbh->error(@error_args, + message=>"Couldn't prepare insert sql", + sql=>$sql); + + my $count; + foreach my $row (@{$matrix}) { + $count++; + $seq_sth->execute() + or $dbh->error(@error_args, + message=>"Couldn't execute nextval from sequence $seq", + sth=>$seq_sth, + sql=>$seq_sql); + my $pkey = $seq_sth->fetchrow_arrayref(); + $dbh->error(@error_args, + message=>"Couldn't fetch nextval from sequence $seq", + sth=>$seq_sth, + sql=>$seq_sql) + unless defined $pkey && $pkey->[0]; + + # DBI won't re-run the SQL until we finish + $seq_sth->finish(); + + $sth->execute(@{$row},$pkey->[0]) + or $dbh->error(@error_args, + message=>"Couldn't execute insert sql with args: " + . join(',',@{$row},$pkey->[0]), + sth=>$sth, + sql=>$sql); + + + print STDERR "Handled $count Bio::Genex::AM_FactorValues objects + " + if $DEBUG and $COUNT and ($count % $COUNT == 0); + } + my $ga_db = Bio::Genex::GenexAdmin->new(); + my $description = "inserted " . scalar @{$matrix} . " Bio::Genex::AM_FactorValues objects"; + $ga_db->description($description); + $ga_db->insert_db($dbh); + + $dbh->error(@error_args, + message=>"Couldn't insert GenexAdmin record") + if $dbh->err; + + return 1; + } # ObjectTemplate automagically creates a new() method for us |
From: <jas...@us...> - 2002-11-23 10:16:24
|
Update of /cvsroot/genex/genex-server/Genex In directory sc8-pr-cvs1:/tmp/cvs-serv5625/Genex Modified Files: Genex.pm.in Log Message: * Genex.pm.in (Repository): new version (2.7.20021123) Index: Genex.pm.in =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/Genex.pm.in,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** Genex.pm.in 23 Nov 2002 07:58:01 -0000 1.52 --- Genex.pm.in 23 Nov 2002 10:16:21 -0000 1.53 *************** *** 58,62 **** Exporter::export_ok_tags('ASSERT'); ! $VERSION = '2.7.20021122'; # Preloaded methods go here. --- 58,62 ---- Exporter::export_ok_tags('ASSERT'); ! $VERSION = '2.7.20021123'; # Preloaded methods go here. |
From: <jas...@us...> - 2002-11-23 10:15:45
|
Update of /cvsroot/genex/genex-server/DB/xml In directory sc8-pr-cvs1:/tmp/cvs-serv5479/DB/xml Modified Files: functions-sql.xml.in Log Message: * DB/xml/functions-sql.xml.in (Repository): MAJOR SPEEDUP: removed refence to TableAdmin Index: functions-sql.xml.in =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/functions-sql.xml.in,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions-sql.xml.in 9 Nov 2002 00:38:37 -0000 1.1 --- functions-sql.xml.in 23 Nov 2002 10:15:42 -0000 1.2 *************** *** 20,46 **** END IF; - UPDATE tableadmin SET audit_fk = new_audit - WHERE UPPER(table_name) = UPPER(text(TG_RELNAME)); - - NEW.audit_fk := new_audit; - RETURN NEW; - END; - ' LANGUAGE 'plpgsql'; - "/> - - <function - function_name="audit_tableadmin" - comment="this function is used by triggers for the TableAdmin table - to handle the audit_fk field automatically" - function=" - CREATE OR REPLACE FUNCTION audit_tableadmin () RETURNS OPAQUE AS ' - DECLARE - ts TIMESTAMP := ''now''; - new_audit INT4 := nextval(''"%%GENEX_MASTER_SEQ%%"''::text); - BEGIN - RAISE NOTICE ''INSERT tableadmin''; - - INSERT INTO Audit_view (audit_pk,modification_date,modified_by) - VALUES (new_audit, current_timestamp, current_user); NEW.audit_fk := new_audit; RETURN NEW; --- 20,23 ---- *************** *** 72,79 **** UPDATE Contact_view set audit_fk = new_audit WHERE con_pk = NEW.con_fk; - - UPDATE tableadmin set audit_fk = new_audit - WHERE UPPER(table_name) = UPPER(text(TG_RELNAME)) - OR UPPER(table_name) = ''CONTACT''; RETURN NEW; --- 49,52 ---- |
From: <jas...@us...> - 2002-11-23 10:15:08
|
Update of /cvsroot/genex/genex-server/DB/xml In directory sc8-pr-cvs1:/tmp/cvs-serv5380/DB/xml Modified Files: MeasuredBioAssay.xml Log Message: * DB/xml/MeasuredBioAssay.xml (Repository): now references sw_pk Index: MeasuredBioAssay.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/MeasuredBioAssay.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MeasuredBioAssay.xml 15 Oct 2002 14:48:04 -0000 1.1 --- MeasuredBioAssay.xml 23 Nov 2002 10:15:05 -0000 1.2 *************** *** 26,30 **** foreign_table_pkey ="es_pk" fkey_type ="&fkey_mto;"/> ! <column name="fesw_fk" full_name="Feature Extraction Software" type="int4" --- 26,30 ---- foreign_table_pkey ="es_pk" fkey_type ="&fkey_mto;"/> ! <column name="sw_fk" full_name="Feature Extraction Software" type="int4" *************** *** 32,38 **** comment="The feature extraction software used to extract the numerical data from the image"/> ! <foreign_key column_id="fesw_fk" foreign_table ="FeatureExtractionSoftware" ! foreign_table_pkey ="fesw_pk" fkey_type ="&fkey_oto;"/> <primary_key column_id="mba_pk"/> --- 32,38 ---- comment="The feature extraction software used to extract the numerical data from the image"/> ! <foreign_key column_id="sw_fk" foreign_table ="FeatureExtractionSoftware" ! foreign_table_pkey ="sw_pk" fkey_type ="&fkey_oto;"/> <primary_key column_id="mba_pk"/> |
From: <jas...@us...> - 2002-11-23 10:14:37
|
Update of /cvsroot/genex/genex-server/DB/xml In directory sc8-pr-cvs1:/tmp/cvs-serv5255/DB/xml Modified Files: FeatureExtractionSoftware.xml Log Message: * DB/xml/FeatureExtractionSoftware.xml (Repository): removed redundant column fesw_pk made sw_pk the primary key Index: FeatureExtractionSoftware.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/FeatureExtractionSoftware.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FeatureExtractionSoftware.xml 20 Oct 2002 14:03:57 -0000 1.2 --- FeatureExtractionSoftware.xml 23 Nov 2002 10:14:35 -0000 1.3 *************** *** 6,13 **** comment=" The FeatureExtractionSoftware table holds information specific to feature extraction software packages"> - <column name="fesw_pk" - full_name="Accession Number" - type="serial" - comment=""/> <column name="feature_identifier_string" full_name="Feature Identifier String" --- 6,9 ---- *************** *** 41,44 **** foreign_table_pkey ="qd_pk" fkey_type ="&fkey_oto;"/> ! <primary_key column_id="fesw_pk"/> </table> --- 37,40 ---- foreign_table_pkey ="qd_pk" fkey_type ="&fkey_oto;"/> ! <primary_key column_id="sw_pk"/> </table> |
From: <jas...@us...> - 2002-11-23 10:13:40
|
Update of /cvsroot/genex/genex-server/DB/xml In directory sc8-pr-cvs1:/tmp/cvs-serv5057/DB/xml Removed Files: TableAdmin.xml Log Message: unneeded --- TableAdmin.xml DELETED --- |
From: <jas...@us...> - 2002-11-23 08:01:52
|
Update of /cvsroot/genex/genex-server/Mason/workspace In directory sc8-pr-cvs1:/tmp/cvs-serv1789/Mason/workspace Modified Files: .cvsignore Log Message: usual Index: .cvsignore =================================================================== RCS file: /cvsroot/genex/genex-server/Mason/workspace/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .cvsignore 20 Nov 2002 21:22:17 -0000 1.1 --- .cvsignore 23 Nov 2002 08:01:49 -0000 1.2 *************** *** 12,15 **** --- 12,16 ---- group-create.html group-maint.html + kill-cookie.html noauth-autohandler query.html |
From: <jas...@us...> - 2002-11-23 08:01:22
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv1587 Modified Files: ChangeLog Log Message: usual Index: ChangeLog =================================================================== RCS file: /cvsroot/genex/genex-server/ChangeLog,v retrieving revision 1.112 retrieving revision 1.113 diff -C2 -d -r1.112 -r1.113 *** ChangeLog 22 Nov 2002 00:43:08 -0000 1.112 --- ChangeLog 23 Nov 2002 08:01:17 -0000 1.113 *************** *** 1,2 **** --- 1,19 ---- + 2002-11-22 Jason E. Stewart <ja...@op...> + + * Install (Repository): + all genex_mkdir() calls are forced - to do a recursive remove in + case there is old (bad) data floating around + fixed order of creating mason dirs so that later ones didn't + delete earlier ones + moved MANIFEST handling before DB creation so that XMLUtils.pm can + find the DTD files + uncommented creating the DTD dir + + * GenexUtils.pm (Repository): + genex_mkdir() - Added a recursive remove if dir already exists + (together with a big fat warning to avoid deleting something bad), + added a simple remove if the directory was a file (due to a + previous failed attempt. + 2002-11-21 Jason E. Stewart <ja...@op...> |
From: <jas...@us...> - 2002-11-23 08:01:08
|
Update of /cvsroot/genex/genex-server/Genex In directory sc8-pr-cvs1:/tmp/cvs-serv1460/Genex Modified Files: ChangeLog Log Message: usual Index: ChangeLog =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/ChangeLog,v retrieving revision 1.122 retrieving revision 1.123 diff -C2 -d -r1.122 -r1.123 *** ChangeLog 21 Nov 2002 12:38:39 -0000 1.122 --- ChangeLog 23 Nov 2002 08:01:05 -0000 1.123 *************** *** 1,2 **** --- 1,18 ---- + 2002-11-23 Jason E. Stewart <ja...@op...> + + * Genex.pm.in (Repository): + new version (2.7.20021122) + + 2002-11-22 Jason E. Stewart <ja...@op...> + + * scripts/cv-insert.pl.in (Repository): + updated to use ControlledVocab.pm + + * scripts/create_genex_db.pl.in (Repository): + enter table names into TableAdmin all lowercase + + * scripts/mbad-insert.pl.in (Repository): + better error reporting + 2002-11-21 Jason E. Stewart <ja...@op...> |
From: <jas...@us...> - 2002-11-23 07:58:04
|
Update of /cvsroot/genex/genex-server/Genex In directory sc8-pr-cvs1:/tmp/cvs-serv516/Genex Modified Files: Genex.pm.in Log Message: * Genex.pm.in (Repository): new version (2.7.20021122) Index: Genex.pm.in =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/Genex.pm.in,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** Genex.pm.in 21 Nov 2002 09:55:50 -0000 1.51 --- Genex.pm.in 23 Nov 2002 07:58:01 -0000 1.52 *************** *** 58,62 **** Exporter::export_ok_tags('ASSERT'); ! $VERSION = '2.7.20021121'; # Preloaded methods go here. --- 58,62 ---- Exporter::export_ok_tags('ASSERT'); ! $VERSION = '2.7.20021122'; # Preloaded methods go here. |
Update of /cvsroot/genex/genex-server/DB/xml In directory sc8-pr-cvs1:/tmp/cvs-serv32726/DB/xml Modified Files: Array.xml ArrayDesign.xml Audit.xml Chromosome.xml Citation.xml Contact.xml ControlledVocab.xml ExperimentFactors.xml ExperimentSet.xml ExternalDatabase.xml GenexAdmin.xml GroupSec.xml Identifiable.xml PhysicalBioAssay.xml Protocol.xml Reporter.xml Sample.xml SampleProtocols.xml Scanner.xml Software.xml Species.xml Spotter.xml TableAdmin.xml UserSec.xml Log Message: modified all audit_fk to not use fkey constraints in DB Index: Array.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Array.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Array.xml 29 Aug 2002 13:16:47 -0000 1.1 --- Array.xml 23 Nov 2002 07:57:16 -0000 1.2 *************** *** 37,42 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 37,47 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: ArrayDesign.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/ArrayDesign.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ArrayDesign.xml 29 Aug 2002 13:16:47 -0000 1.1 --- ArrayDesign.xml 23 Nov 2002 07:57:16 -0000 1.2 *************** *** 44,49 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 44,54 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Audit.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Audit.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Audit.xml 13 Apr 2002 22:26:37 -0000 1.1 --- Audit.xml 23 Nov 2002 07:57:16 -0000 1.2 *************** *** 13,19 **** type="int4" comment="The audit entry when this data was last modified, it ! will be null if it is the creation event"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" fkey_type ="&fkey_oto;"/> --- 13,23 ---- type="int4" comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" foreign_table ="Audit" + write_sql="false" foreign_table_pkey ="audit_pk" fkey_type ="&fkey_oto;"/> Index: Chromosome.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Chromosome.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Chromosome.xml 13 Apr 2002 23:13:04 -0000 1.4 --- Chromosome.xml 23 Nov 2002 07:57:16 -0000 1.5 *************** *** 32,37 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 32,42 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Citation.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Citation.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Citation.xml 13 Apr 2002 23:13:04 -0000 1.6 --- Citation.xml 23 Nov 2002 07:57:16 -0000 1.7 *************** *** 12,17 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 12,22 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Contact.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Contact.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Contact.xml 13 Apr 2002 22:32:28 -0000 1.6 --- Contact.xml 23 Nov 2002 07:57:16 -0000 1.7 *************** *** 73,78 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 73,83 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: ControlledVocab.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/ControlledVocab.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ControlledVocab.xml 29 Aug 2002 13:21:09 -0000 1.6 --- ControlledVocab.xml 23 Nov 2002 07:57:16 -0000 1.7 *************** *** 26,31 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 26,36 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: ExperimentFactors.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/ExperimentFactors.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ExperimentFactors.xml 13 Apr 2002 23:13:04 -0000 1.4 --- ExperimentFactors.xml 23 Nov 2002 07:57:16 -0000 1.5 *************** *** 40,45 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 40,50 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: ExperimentSet.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/ExperimentSet.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ExperimentSet.xml 7 Nov 2002 14:37:13 -0000 1.7 --- ExperimentSet.xml 23 Nov 2002 07:57:16 -0000 1.8 *************** *** 63,68 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 63,73 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: ExternalDatabase.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/ExternalDatabase.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ExternalDatabase.xml 11 Oct 2002 01:13:10 -0000 1.5 --- ExternalDatabase.xml 23 Nov 2002 07:57:16 -0000 1.6 *************** *** 35,40 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 35,45 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: GenexAdmin.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/GenexAdmin.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GenexAdmin.xml 14 Apr 2002 00:10:32 -0000 1.5 --- GenexAdmin.xml 23 Nov 2002 07:57:16 -0000 1.6 *************** *** 20,25 **** not_null="true" type="int4" ! comment="The audit entry when this data was created"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 20,30 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: GroupSec.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/GroupSec.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GroupSec.xml 29 Aug 2002 13:21:10 -0000 1.5 --- GroupSec.xml 23 Nov 2002 07:57:16 -0000 1.6 *************** *** 42,47 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 42,52 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Identifiable.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Identifiable.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Identifiable.xml 13 Apr 2002 23:13:04 -0000 1.3 --- Identifiable.xml 23 Nov 2002 07:57:16 -0000 1.4 *************** *** 37,42 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 37,47 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: PhysicalBioAssay.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/PhysicalBioAssay.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PhysicalBioAssay.xml 11 Oct 2002 01:13:10 -0000 1.3 --- PhysicalBioAssay.xml 23 Nov 2002 07:57:16 -0000 1.4 *************** *** 112,117 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 112,122 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Protocol.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Protocol.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Protocol.xml 29 Aug 2002 13:21:10 -0000 1.5 --- Protocol.xml 23 Nov 2002 07:57:16 -0000 1.6 *************** *** 54,59 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 54,64 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Reporter.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Reporter.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Reporter.xml 11 Oct 2002 01:12:49 -0000 1.1 --- Reporter.xml 23 Nov 2002 07:57:16 -0000 1.2 *************** *** 34,39 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 34,44 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Sample.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Sample.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Sample.xml 13 Apr 2002 23:13:04 -0000 1.5 --- Sample.xml 23 Nov 2002 07:57:16 -0000 1.6 *************** *** 57,62 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 57,67 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: SampleProtocols.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/SampleProtocols.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SampleProtocols.xml 13 Apr 2002 23:13:04 -0000 1.4 --- SampleProtocols.xml 23 Nov 2002 07:57:16 -0000 1.5 *************** *** 26,31 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 26,36 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Scanner.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Scanner.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Scanner.xml 13 Apr 2002 23:13:04 -0000 1.5 --- Scanner.xml 23 Nov 2002 07:57:16 -0000 1.6 *************** *** 48,53 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 48,58 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Software.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Software.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Software.xml 20 Nov 2002 00:21:56 -0000 1.6 --- Software.xml 23 Nov 2002 07:57:16 -0000 1.7 *************** *** 56,61 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 56,66 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Species.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Species.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Species.xml 13 Apr 2002 23:13:04 -0000 1.4 --- Species.xml 23 Nov 2002 07:57:16 -0000 1.5 *************** *** 30,35 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 30,40 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: Spotter.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/Spotter.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Spotter.xml 29 Aug 2002 13:21:10 -0000 1.6 --- Spotter.xml 23 Nov 2002 07:57:16 -0000 1.7 *************** *** 39,44 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 39,49 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: TableAdmin.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/TableAdmin.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TableAdmin.xml 13 Apr 2002 23:12:45 -0000 1.7 --- TableAdmin.xml 23 Nov 2002 07:57:16 -0000 1.8 *************** *** 13,18 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 13,23 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" Index: UserSec.xml =================================================================== RCS file: /cvsroot/genex/genex-server/DB/xml/UserSec.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** UserSec.xml 13 Apr 2002 22:26:56 -0000 1.4 --- UserSec.xml 23 Nov 2002 07:57:16 -0000 1.5 *************** *** 14,19 **** not_null="true" type="int4" ! comment="The audit entry when this data was last modified"/> <foreign_key column_id="audit_fk" foreign_table ="Audit" foreign_table_pkey ="audit_pk" --- 14,24 ---- not_null="true" type="int4" ! comment="The audit entry when this data was last modified, it ! will be null if it is the creation event. We set the ! write_sql attribute to be false so that Postgres doesn't put ! a constraint on this column. It is automatically set by a ! trigger. "/> <foreign_key column_id="audit_fk" + write_sql="false" foreign_table ="Audit" foreign_table_pkey ="audit_pk" |
From: <jas...@us...> - 2002-11-23 05:11:27
|
Update of /cvsroot/genex/genex-server/Genex/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv10036/Genex/scripts Modified Files: cv-insert.pl.in Log Message: * scripts/cv-insert.pl.in (Repository): updated to use ControlledVocab.pm Index: cv-insert.pl.in =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/scripts/cv-insert.pl.in,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** cv-insert.pl.in 11 Oct 2002 02:18:23 -0000 1.16 --- cv-insert.pl.in 23 Nov 2002 05:11:24 -0000 1.17 *************** *** 16,19 **** --- 16,20 ---- use Bio::Genex; use Bio::Genex::XMLUtils; + use Bio::Genex::ControlledVocab; use Bio::Genex::GenexAdmin; *************** *** 24,27 **** --- 25,30 ---- my %OPTIONS; $OPTIONS{dbname} = $Bio::Genex::Connect::DBNAME; + $OPTIONS{ro_groupname} = 'public'; + $OPTIONS{rw_groupname} = 'superuser'; my $rc = GetOptions(\%OPTIONS, 'dbname=s', *************** *** 72,75 **** --- 75,89 ---- my $curr_table = 'ControlledVocab'; + my ($pub_group) = Bio::Genex::GroupSec->get_objects($dbh, + $OPTIONS{ro_groupname}); + $dbh->error(@error_args, + msg=>"Group $OPTIONS{ro_groupname} doesn't exist in DB", + ) unless defined $pub_group; + my ($su_group) = Bio::Genex::GroupSec->get_objects($dbh, + $OPTIONS{rw_groupname}); + $dbh->error(@error_args, + msg=>"Group $OPTIONS{rw_groupname} doesn't exist in DB", + ) unless defined $su_group; + my @inserted; foreach my $infile (@ARGV) { *************** *** 83,107 **** my %attrs = $cv_node->getAttributes(); $dbh->error (@error_args, message=>"cv_table attribute not defined for file: $infile") unless exists $attrs{cv_table}; $dbh->error (@error_args, message=>"db_table attribute not defined for file: $infile") unless exists $attrs{db_table}; $dbh->error (@error_args, message=>"db_column attribute not defined for file: $infile") unless exists $attrs{db_column}; ! if (0) { ! $dbh->error (@error_args, ! message=>"ro_groupname attribute not defined for file: $infile") ! unless exists $attrs{ro_groupname}; ! $dbh->error (@error_args, ! message=>"rw_groupname attribute not defined for file: $infile") ! unless exists $attrs{rw_groupname}; ! } ! ! $attrs{ro_groupname} = 'public'; ! $attrs{rw_groupname} = 'public'; print STDERR "Handling $attrs{cv_table}\n"; --- 97,118 ---- my %attrs = $cv_node->getAttributes(); + my %args; $dbh->error (@error_args, message=>"cv_table attribute not defined for file: $infile") unless exists $attrs{cv_table}; + $args{vocab_name} = $attrs{cv_table}; + $dbh->error (@error_args, message=>"db_table attribute not defined for file: $infile") unless exists $attrs{db_table}; + $args{table_name} = $attrs{db_table}; + $dbh->error (@error_args, message=>"db_column attribute not defined for file: $infile") unless exists $attrs{db_column}; + $args{column_name} = $attrs{db_column}; ! $args{ro_groupname_obj} = $pub_group; ! $args{rw_groupname_obj} = $su_group; print STDERR "Handling $attrs{cv_table}\n"; *************** *** 110,135 **** die "no terms found" unless scalar @term_list; - my $sql = $dbh->create_insert_sql( - 'ControlledVocab', - ['term_string','description', 'vocab_name', - 'table_name','column_name','ro_groupname','rw_groupname']); - my $sth = $dbh->prepare($sql) || die $DBI::errstr; - foreach my $term_node (@term_list) { ! my $name = $term_node->getAttribute('name'); ! $dbh->error(sth=>$sth, message=>"Couldn't get name attribute from" . $term_node->serialize) ! unless $name ne ''; ! my $description = $term_node->getAttribute('description'); warn("No description for " . $term_node->serialize() . "\n") ! if $description eq '' && $OPTIONS{debug}; ! $sth->execute($name,$description, ! @attrs{'cv_table','db_table','db_column','ro_groupname','rw_groupname'}, ! ) || ! $dbh->error(@error_args,sql=>$sql,sth=>$sth, ! message=>"Couldn't execute sql for term" . $term_node->serialize); } - $sth->finish(); push(@inserted,$attrs{cv_table}) } --- 121,137 ---- die "no terms found" unless scalar @term_list; foreach my $term_node (@term_list) { ! $args{term_string} = $term_node->getAttribute('name'); ! $dbh->error(@error_args, message=>"Couldn't get name attribute from" . $term_node->serialize) ! unless $args{term_string} ne ''; ! ! $args{description} = $term_node->getAttribute('description'); warn("No description for " . $term_node->serialize() . "\n") ! if $args{description} eq '' && $OPTIONS{debug}; ! my $cv_db = Bio::Genex::ControlledVocab->new(%args); ! my $pkey = $cv_db->insert_db(dbh=>$dbh,no_genex_admin=>1); } push(@inserted,$attrs{cv_table}) } |
From: <jas...@us...> - 2002-11-23 05:10:59
|
Update of /cvsroot/genex/genex-server/Genex/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv9843/Genex/scripts Modified Files: create_genex_db.pl.in Log Message: * scripts/create_genex_db.pl.in (Repository): enter table names into TableAdmin all lowercase Index: create_genex_db.pl.in =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/scripts/create_genex_db.pl.in,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** create_genex_db.pl.in 9 Nov 2002 00:43:39 -0000 1.7 --- create_genex_db.pl.in 23 Nov 2002 05:10:56 -0000 1.8 *************** *** 53,59 **** unless exists $OPTIONS{no_tables} or scalar @ARGV; - # these tables need modification_date and creation_date triggers - my @mod_tables = qw(Audit); - # these tables need special modification_date and creation_date # triggers for the Contact table --- 53,56 ---- *************** *** 290,294 **** print STDERR "\n\nAdding tables to TableAdmin ...\n\n"; foreach my $table (@{$all_tables}) { ! my $ta = Bio::Genex::TableAdmin->new(table_name=>$table); $dbh->error(@error_args,message=>'Creating TableAdmin object') unless defined $ta; --- 287,291 ---- print STDERR "\n\nAdding tables to TableAdmin ...\n\n"; foreach my $table (@{$all_tables}) { ! my $ta = Bio::Genex::TableAdmin->new(table_name=>lc($table)); $dbh->error(@error_args,message=>'Creating TableAdmin object') unless defined $ta; |
From: <jas...@us...> - 2002-11-23 01:21:56
|
Update of /cvsroot/genex/genex-server/Genex/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv9281/Genex/scripts Modified Files: mbad-insert.pl.in Log Message: * scripts/mbad-insert.pl.in (Repository): better error reporting Index: mbad-insert.pl.in =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/scripts/mbad-insert.pl.in,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mbad-insert.pl.in 22 Nov 2002 23:24:30 -0000 1.6 --- mbad-insert.pl.in 23 Nov 2002 01:21:53 -0000 1.7 *************** *** 275,278 **** --- 275,279 ---- print STDERR "Handled $count\n" if $count % 1000 == 0; + chomp(); my @data = split "\t"; my $id = eval "$feature_id_string"; *************** *** 282,286 **** my @vals = eval qq[($data_string)]; print STDERR "Found vals: <@vals>\n" if $OPTIONS{debug}; ! unshift(@vals,$features{$id}, $mba_pk); $insert_sth->execute(@vals); $dbh->error(@error_args, --- 283,293 ---- my @vals = eval qq[($data_string)]; print STDERR "Found vals: <@vals>\n" if $OPTIONS{debug}; ! my $feature_id = $features{$id}; ! $dbh->error(@error_args, ! no_errstr=>1, ! message=>"Could't find feature identifier for id: $id") ! unless defined $feature_id; ! ! unshift(@vals,$feature_id, $mba_pk); $insert_sth->execute(@vals); $dbh->error(@error_args, |
From: <jas...@us...> - 2002-11-23 00:01:23
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv18975 Modified Files: MANIFEST.in Log Message: added DTD's needed by XMLUtils Index: MANIFEST.in =================================================================== RCS file: /cvsroot/genex/genex-server/MANIFEST.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MANIFEST.in 20 Nov 2002 22:39:59 -0000 1.3 --- MANIFEST.in 23 Nov 2002 00:01:20 -0000 1.4 *************** *** 104,108 **** ! 'DTD/table.dtd' => '%%GENEXML_DIR%%', ! 'DTD/tests.dtd' => '%%GENEXML_DIR%%', } --- 104,110 ---- ! 'DTD/table.dtd' => '%%GENEXML_DIR%%', ! 'DTD/genexml.dtd' => '%%GENEXML_DIR%%', ! 'DTD/usf.dtd' => '%%GENEXML_DIR%%', ! 'DTD/tests.dtd' => '%%GENEXML_DIR%%', } |
From: <jas...@us...> - 2002-11-23 00:01:02
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv18824 Modified Files: Install Log Message: * Install (Repository): all genex_mkdir() calls are forced - to do a recursive remove in case there is old (bad) data floating around fixed order of creating mason dirs so that later ones didn't delete earlier ones moved MANIFEST handling before DB creation so that XMLUtils.pm can find the DTD files uncommented creating the DTD dir Index: Install =================================================================== RCS file: /cvsroot/genex/genex-server/Install,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Install 21 Nov 2002 10:04:46 -0000 1.16 --- Install 23 Nov 2002 00:00:58 -0000 1.17 *************** *** 172,178 **** print STDERR "\n\nMaking the GENEX_DIR in HTML, CGI-BIN..\n\n"; my $DIR = $VARS{GENEX_CGIDIR}; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; $DIR = $VARS{GENEX_HTMLDIR}; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; $DIR = $VARS{GENEX_UPLOAD_DIR}; # Brevity && Clarity! genex_mkdir($DIR, '777') unless -d $DIR; --- 172,178 ---- print STDERR "\n\nMaking the GENEX_DIR in HTML, CGI-BIN..\n\n"; my $DIR = $VARS{GENEX_CGIDIR}; # Brevity && Clarity! ! genex_mkdir($DIR); $DIR = $VARS{GENEX_HTMLDIR}; # Brevity && Clarity! ! genex_mkdir($DIR); $DIR = $VARS{GENEX_UPLOAD_DIR}; # Brevity && Clarity! genex_mkdir($DIR, '777') unless -d $DIR; *************** *** 182,195 **** print STDERR "\n\nInstalling the mason scripts..\n\n"; $DIR = $VARS{GENEX_WORKSPACE_DIR}; ! genex_mkdir($DIR) unless -d $DIR; $DIR = "$VARS{GENEX_WORKSPACE_DIR}/comps"; ! genex_mkdir($DIR) unless -d $DIR; $DIR = "$VARS{GENEX_WORKSPACE_DIR}/workspace-comps"; ! genex_mkdir($DIR) unless -d $DIR; # the mason data dir needs to be world writable - $DIR = $VARS{GENEX_MASON_DIR}; # Brevity && Clarity! - genex_mkdir($DIR) unless -d $DIR; $DIR = $VARS{GENEX_MASON_DATA_DIR}; # Brevity && Clarity! genex_mkdir($DIR, 777) unless -d $DIR; --- 182,195 ---- print STDERR "\n\nInstalling the mason scripts..\n\n"; + $DIR = $VARS{GENEX_MASON_DIR}; + genex_mkdir($DIR); $DIR = $VARS{GENEX_WORKSPACE_DIR}; ! genex_mkdir($DIR); $DIR = "$VARS{GENEX_WORKSPACE_DIR}/comps"; ! genex_mkdir($DIR); $DIR = "$VARS{GENEX_WORKSPACE_DIR}/workspace-comps"; ! genex_mkdir($DIR); # the mason data dir needs to be world writable $DIR = $VARS{GENEX_MASON_DATA_DIR}; # Brevity && Clarity! genex_mkdir($DIR, 777) unless -d $DIR; *************** *** 202,206 **** print STDERR "\n\nInstalling the controlled vocabularies..\n\n"; $DIR = $VARS{GENEX_VOCAB_DIR}; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; # genex_system("cp -r $MOTHERDIR/DB/controlled_vocab/*.xml $DIR"); --- 202,206 ---- print STDERR "\n\nInstalling the controlled vocabularies..\n\n"; $DIR = $VARS{GENEX_VOCAB_DIR}; # Brevity && Clarity! ! genex_mkdir($DIR); # genex_system("cp -r $MOTHERDIR/DB/controlled_vocab/*.xml $DIR"); *************** *** 211,215 **** print STDERR "\n\nInstalling the login scripts..\n\n"; $DIR = "$CGIDIR/$LOGIN_DIR"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/login; cp *pl $DIR;"); --- 211,215 ---- print STDERR "\n\nInstalling the login scripts..\n\n"; $DIR = "$CGIDIR/$LOGIN_DIR"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/login; cp *pl $DIR;"); *************** *** 222,226 **** print STDERR "\n\nInstalling CyberT..\n\n"; $DIR = "$VARS{CGIDIR}/$VARS{CYBERT_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/CyberT-dist; cp CyberT*pl $DIR; cp munge4R.pl cyberfilter.pl genex_reaper.pl $VARS{GENEX_BIN_DIR}"); --- 222,226 ---- print STDERR "\n\nInstalling CyberT..\n\n"; $DIR = "$VARS{CGIDIR}/$VARS{CYBERT_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/CyberT-dist; cp CyberT*pl $DIR; cp munge4R.pl cyberfilter.pl genex_reaper.pl $VARS{GENEX_BIN_DIR}"); *************** *** 231,235 **** #make the HTML dir for CyberT and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{CYBERT_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/CyberT-dist; cp *.shtml *.html *.inc hdarray* *DataSet $DIR"); --- 231,235 ---- #make the HTML dir for CyberT and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{CYBERT_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/CyberT-dist; cp *.shtml *.html *.inc hdarray* *DataSet $DIR"); *************** *** 253,257 **** $DIR = "$LOCAL_LIB/R/library/hdarray/R/"; ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/CyberT-dist; cp hdarray runa.c runa.so $LOCAL_LIB/R/library/hdarray/R/"); --- 253,257 ---- $DIR = "$LOCAL_LIB/R/library/hdarray/R/"; ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/CyberT-dist; cp hdarray runa.c runa.so $LOCAL_LIB/R/library/hdarray/R/"); *************** *** 274,282 **** print STDERR "\n\nCreating / Installing the xcluster dirs & files..\n\n"; $DIR = "$VARS{CGIDIR}/$VARS{XCLUSTER_DIR}"; # 1st the cgi-bin ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/xcluster; cp *pl $DIR; "); $DIR = "$VARS{HTMLDIR}/$VARS{XCLUSTER_DIR}"; # then the html ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/xcluster; cp *dataset *html $DIR; "); --- 274,282 ---- print STDERR "\n\nCreating / Installing the xcluster dirs & files..\n\n"; $DIR = "$VARS{CGIDIR}/$VARS{XCLUSTER_DIR}"; # 1st the cgi-bin ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/xcluster; cp *pl $DIR; "); $DIR = "$VARS{HTMLDIR}/$VARS{XCLUSTER_DIR}"; # then the html ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/xcluster; cp *dataset *html $DIR; "); *************** *** 291,295 **** #make the HTML dir for the download/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{DOWNLOAD_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; } --- 291,295 ---- #make the HTML dir for the download/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{DOWNLOAD_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); } *************** *** 301,305 **** #make the HTML dir for the CyberT-Demo/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{CyberT_Demo_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/CyberT-Demo; cp *.shtml CyberT_Paired_DataSet yeast64.cybert.demo.txt $DIR;"); --- 301,305 ---- #make the HTML dir for the CyberT-Demo/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{CyberT_Demo_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/CyberT-Demo; cp *.shtml CyberT_Paired_DataSet yeast64.cybert.demo.txt $DIR;"); *************** *** 314,318 **** #make the HTML dir for mergem/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{MERGEM_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/mergem; cp file* mergem *html $DIR; ln -fs $DIR/mergem.html $DIR/index.html"); --- 314,318 ---- #make the HTML dir for mergem/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{MERGEM_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/mergem; cp file* mergem *html $DIR; ln -fs $DIR/mergem.html $DIR/index.html"); *************** *** 320,324 **** # plop the perl script into the correct cgi-bin $DIR = "$VARS{CGIDIR}/$VARS{MERGEM_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/mergem; cp *pl mergem $DIR; cp mergem $GENEX_BIN_DIR"); --- 320,324 ---- # plop the perl script into the correct cgi-bin $DIR = "$VARS{CGIDIR}/$VARS{MERGEM_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/mergem; cp *pl mergem $DIR; cp mergem $GENEX_BIN_DIR"); *************** *** 327,331 **** } - if (0) { # --------------- DTD dir ---------------- print STDERR "\n\nCreating / Installing the DTD dirs & files..\n\n"; --- 327,330 ---- *************** *** 333,339 **** # make the LIB dir for the DTD/ and move the nec files there $DIR = $VARS{GENEXML_DIR}; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; # genex_system("cd $MOTHERDIR/DTD; cp -R *.dtd $DIR"); # now create the html version of the DTD's genex_mkdir($DTD_HTML_DIR) --- 332,339 ---- # make the LIB dir for the DTD/ and move the nec files there $DIR = $VARS{GENEXML_DIR}; # Brevity && Clarity! ! genex_mkdir($DIR); # genex_system("cd $MOTHERDIR/DTD; cp -R *.dtd $DIR"); + if (0) { # now create the html version of the DTD's genex_mkdir($DTD_HTML_DIR) *************** *** 418,422 **** #make the HTML dir for the RCluster-Demo/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{RCluster_Demo_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/RCluster-Demo; cp -R * $DIR;"); --- 418,422 ---- #make the HTML dir for the RCluster-Demo/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{RCluster_Demo_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/RCluster-Demo; cp -R * $DIR;"); *************** *** 427,431 **** #make the HTML dir for the graphics/ and move the nec files there $DIR = "$VARS{GENEX_GRAPHICS_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/graphics; cp -R * $DIR;"); --- 427,431 ---- #make the HTML dir for the graphics/ and move the nec files there $DIR = "$VARS{GENEX_GRAPHICS_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/graphics; cp -R * $DIR;"); *************** *** 437,441 **** #make the HTML dir for the include/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{INCLUDE_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR) unless -d $DIR; genex_system("cd $MOTHERDIR/include; cp -R * $DIR;"); --- 437,441 ---- #make the HTML dir for the include/ and move the nec files there $DIR = "$VARS{HTMLDIR}/$VARS{INCLUDE_DIR}"; # Brevity && Clarity! ! genex_mkdir($DIR); genex_system("cd $MOTHERDIR/include; cp -R * $DIR;"); *************** *** 565,568 **** --- 565,578 ---- slow() if ($SLOW); + # now go through the MANIFEST and install all the files + print STDERR "\nCopying all files to their locations\n"; + my %FILES = %{do 'MANIFEST' }; + foreach my $file (keys %FILES) { + warn "No such file: $file" + unless -f $file; + print STDERR "\t$file => $FILES{$file}\n"; + genex_system("cp $file $FILES{$file}"); + } + print STDERR <<EOT; *************** *** 737,750 **** } slow() if ($SLOW); - - # now go through the MANIFEST and install all the files - print STDERR "\nCopying all files to their locations\n"; - my %FILES = %{do 'MANIFEST' }; - foreach my $file (keys %FILES) { - warn "No such file: $file" - unless -f $file; - print STDERR "\t$file => $FILES{$file}\n"; - genex_system("cp $file $FILES{$file}"); - } print "\n\nChanging permissions on genex trees..\n\n"; --- 747,750 ---- |
From: <jas...@us...> - 2002-11-22 23:58:41
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv17953 Modified Files: GenexUtils.pm Log Message: * GenexUtils.pm (Repository): genex_mkdir() - Added a recursive remove if dir already exists (together with a big fat warning to avoid deleting something bad), added a simple remove if the directory was a file (due to a previous failed attempt. Index: GenexUtils.pm =================================================================== RCS file: /cvsroot/genex/genex-server/GenexUtils.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GenexUtils.pm 11 Oct 2002 01:17:28 -0000 1.1 --- GenexUtils.pm 22 Nov 2002 23:58:38 -0000 1.2 *************** *** 164,168 **** # created with mkdir -p, all the intervening directories have the # proper permissions ! my $command = "umask 022 ; $::GNUMKDIR -p -m $mode $dir"; $rc = system($command) && check_sys($?, $!, $line, "$command"); --- 164,199 ---- # created with mkdir -p, all the intervening directories have the # proper permissions ! my $command; ! if (-f $dir) { ! $command = "rm $dir"; ! $rc = system($command) && ! check_sys($?, $!, $line, "$command"); ! } elsif (-d $dir) { ! $command = "rm -rf $dir"; ! ! print STDOUT <<EOW; ! #### WARNING #### ! ! I have detected that the following directory already exists: ! ! $dir ! ! To be sure that it does not contain old (possibly conflicting) content ! I am about to REMOVE it recursively using the following command: ! ! $command ! ! If this is *not* what you want (like if this is your root dir, '/') ! then it is likely that something got entered incorrectly during the ! configuration process, so hit control-C (^C) now and re-run 'make ! configure'. ! ! EOW ! my $ok = <>; ! ! $rc = system($command) && ! check_sys($?, $!, $line, "$command"); ! } ! $command = "umask 022 ; $::GNUMKDIR -p -m $mode $dir"; $rc = system($command) && check_sys($?, $!, $line, "$command"); |
From: <jas...@us...> - 2002-11-22 23:56:22
|
Update of /cvsroot/genex/genex-server/DB/xml In directory sc8-pr-cvs1:/tmp/cvs-serv17304/DB/xml Removed Files: ArrayLayout.xml ArrayMeasurement.xml Log Message: cruft --- ArrayLayout.xml DELETED --- --- ArrayMeasurement.xml DELETED --- |
From: <jas...@us...> - 2002-11-22 23:24:33
|
Update of /cvsroot/genex/genex-server/Genex/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv6867 Modified Files: mbad-insert.pl.in Log Message: * scripts/mbad-insert.pl.in (Repository): better error reporting Index: mbad-insert.pl.in =================================================================== RCS file: /cvsroot/genex/genex-server/Genex/scripts/mbad-insert.pl.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mbad-insert.pl.in 15 Nov 2002 22:02:23 -0000 1.5 --- mbad-insert.pl.in 22 Nov 2002 23:24:30 -0000 1.6 *************** *** 282,288 **** my @vals = eval qq[($data_string)]; print STDERR "Found vals: <@vals>\n" if $OPTIONS{debug}; ! $insert_sth->execute($features{$id}, $mba_pk, @vals); $dbh->error(@error_args, ! message=>"Couldn't execute insert SQL", sth=>$insert_sth, ) --- 282,290 ---- my @vals = eval qq[($data_string)]; print STDERR "Found vals: <@vals>\n" if $OPTIONS{debug}; ! unshift(@vals,$features{$id}, $mba_pk); ! $insert_sth->execute(@vals); $dbh->error(@error_args, ! message=>"Couldn't execute insert SQL using values: <<" ! . join(',',@vals) . '>>', sth=>$insert_sth, ) |
From: <tw...@us...> - 2002-11-22 14:15:52
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv6272 Modified Files: Tag: Rel-1_0_1-branch sql_lib.pl Log Message: more sql moved here from code. Index: sql_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sql_lib.pl,v retrieving revision 1.1.2.11 retrieving revision 1.1.2.12 diff -C2 -d -r1.1.2.11 -r1.1.2.12 *** sql_lib.pl 21 Nov 2002 21:48:47 -0000 1.1.2.11 --- sql_lib.pl 22 Nov 2002 14:15:49 -0000 1.1.2.12 *************** *** 121,124 **** --- 121,130 ---- $sql = "insert into study (study_name, sty_comments) values (trim(?), trim('Enter comments here.'))"; } + elsif ($q_name eq "studies_i_own") + { + my $us_fk = get_us_fk($dbh); + $sql = "select study_name as name,ref_fk,gs_fk,permissions from study,groupref where us_fk=$us_fk and ref_fk=sty_pk"; + } + if (defined($sql)) { |
From: <tw...@us...> - 2002-11-22 14:15:19
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv5789 Modified Files: Tag: Rel-1_0_1-branch install_lib.pl Log Message: fixes. Index: install_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/Attic/install_lib.pl,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** install_lib.pl 7 Nov 2002 15:40:48 -0000 1.1.2.4 --- install_lib.pl 22 Nov 2002 14:15:15 -0000 1.1.2.5 *************** *** 36,39 **** --- 36,49 ---- exit(0); } + if ($ARGV[0] =~ m/\-W/) + { + print "$Vars{WEBTOOLS}\n"; + exit(0); + } + if ($ARGV[0] =~ m/\-L/) + { + print "$Vars{LAYOUT_DIR}\n"; + exit(0); + } if ($0 =~ m/install_lib/) |
From: <jas...@us...> - 2002-11-22 00:43:11
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv25947 Modified Files: ChangeLog Log Message: usual Index: ChangeLog =================================================================== RCS file: /cvsroot/genex/genex-server/ChangeLog,v retrieving revision 1.111 retrieving revision 1.112 diff -C2 -d -r1.111 -r1.112 *** ChangeLog 21 Nov 2002 10:05:03 -0000 1.111 --- ChangeLog 22 Nov 2002 00:43:08 -0000 1.112 *************** *** 1,4 **** --- 1,24 ---- 2002-11-21 Jason E. Stewart <ja...@op...> + * Mason/workspace/array-design.html.in (Repository): + BAD NASTY AWEFUl BUG!!! any call to + Bio::Genex::HTMLUtils::get_session_cookie() will hand now that + $session is a global variable. This is because + Apache::Session::Postgres does a 'SELECT ... FOR UPDATE' which + locks that row in the session table. Yuck! + + * Mason/workspace/autohandler.in (Repository): + removed seperate call to authenticate.mason + + * Mason/workspace/check-login.html (Repository): + localized $session and limited its scope + + * Mason/workspace/experimentset-create.html.in (Repository): + added commented out debugging info + + * apache/genex-2.conf.in (Repository): + added some commented out debugging info + added some modules to be loaded during server init + * Install (Repository): installation of Config.pm now handled by Perl |
From: <jas...@us...> - 2002-11-22 00:42:48
|
Update of /cvsroot/genex/genex-server/Mason/workspace In directory sc8-pr-cvs1:/tmp/cvs-serv25867/Mason/workspace Modified Files: array-design.html.in Log Message: * Mason/workspace/array-design.html.in (Repository): BAD NASTY AWEFUl BUG!!! any call to Bio::Genex::HTMLUtils::get_session_cookie() will hand now that $session is a global variable. This is because Apache::Session::Postgres does a 'SELECT ... FOR UPDATE' which locks that row in the session table. Yuck! Index: array-design.html.in =================================================================== RCS file: /cvsroot/genex/genex-server/Mason/workspace/array-design.html.in,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** array-design.html.in 20 Nov 2002 00:19:38 -0000 1.1 --- array-design.html.in 22 Nov 2002 00:42:45 -0000 1.2 *************** *** 103,114 **** my $action = $m->current_comp->attr('action'); - my $session = Bio::Genex::HTMLUtils::get_session_cookie($r); - - my $dbh = Bio::Genex::Connect->new(USER=>$session->{username}, - PASSWORD=>$session->{password}, - DBNAME=>$session->{dbname}, - ); - - $dbh->assert_table_defined('GroupSec'); $dbh->assert_table_defined('ArrayDesign'); --- 103,106 ---- |