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
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv2150 Modified Files: Tag: Rel-1_0_1-branch edit_atree1.pl analysis_tree_lib.pl edit_atree2.pl edit_atree1.html Log Message: node inserts use default user_parameter_values improve html Index: edit_atree1.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.pl,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** edit_atree1.pl 13 Dec 2002 17:12:40 -0000 1.1.2.6 --- edit_atree1.pl 13 Dec 2002 21:51:59 -0000 1.1.2.7 *************** *** 20,27 **** my $select_node = select_node($dbh); ! if (exists($ch{node_pk})) { ! $properties = build_properties($dbh, $ch{node_pk}); } (my $all_html) = readtemplate("edit_atree1.html"); --- 20,28 ---- my $select_node = select_node($dbh); ! if (! exists($ch{node_pk})) { ! $ch{node_pk} = $tree{root}; } + $properties = build_properties($dbh, $ch{node_pk}); (my $all_html) = readtemplate("edit_atree1.html"); *************** *** 49,52 **** --- 50,54 ---- $sth->execute($node_pk) || die "Query execute get_upn fails.\n$DBI::errstr\n"; $results = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; + $results .= "<td>($node_pk)</td><td></td>\n"; my $hr; # hashref while( $hr = $sth->fetchrow_hashref()) *************** *** 54,58 **** if ($hr->{up_type} eq "text") { ! $results .= "<tr><td valign=\"top\">$hr->{up_display_name} <br><br></td><td valign=\"top\"><input type=\"text\" name=\"$hr->{up_name}\" value=\"$hr->{up_value}\"></td></tr>\n"; } } --- 56,60 ---- if ($hr->{up_type} eq "text") { ! $results .= "<tr><td valign=\"top\">$hr->{up_display_name} <br><br></td><td valign=\"top\"><input type=\"text\" name=\"$hr->{up_name}\" value=\"$hr->{up_value}\" size=\"30\" maxlength=\"128\"></td></tr>\n"; } } Index: analysis_tree_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/analysis_tree_lib.pl,v retrieving revision 1.1.2.35 retrieving revision 1.1.2.36 diff -C2 -d -r1.1.2.35 -r1.1.2.36 *** analysis_tree_lib.pl 13 Dec 2002 17:12:44 -0000 1.1.2.35 --- analysis_tree_lib.pl 13 Dec 2002 21:51:59 -0000 1.1.2.36 *************** *** 240,245 **** { $sth = getq("insert_tree_node", $dbh); ! # tree_fk, parent_fk, an_fk ! $sth->execute($tree{tree_pk}, $tree{add_parent}, $tree{add_an_fk}); } elsif (exists($tree{update_node_pk})) --- 240,258 ---- { $sth = getq("insert_tree_node", $dbh); ! $sth->execute($tree{tree_pk}, $tree{add_parent}, $tree{add_an_fk}); # my tree's tree_pk, my parent's node_pk, analysis an_pk ! my $us_fk = get_us_fk($dbh); ! my $node_pk = insert_security($dbh, $us_fk, $us_fk, 0); ! ! $sth = getq("default_upv", $dbh); ! $sth->execute($tree{add_an_fk}) || die "Query default_upv execute error. $DBI::errstr\n"; ! ! my $sth_insert = getq("insert_upv", $dbh); ! my $hr; ! while ($hr = $sth->fetchrow_hashref()) ! { ! $sth_insert->execute($node_pk, ! $hr->{up_default}, ! $hr->{upn_pk}) || die "Query insert_upv execute error. $DBI::errstr\n"; ! } } elsif (exists($tree{update_node_pk})) Index: edit_atree2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree2.pl,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -C2 -d -r1.1.2.10 -r1.1.2.11 *** edit_atree2.pl 13 Dec 2002 17:12:37 -0000 1.1.2.10 --- edit_atree2.pl 13 Dec 2002 21:51:59 -0000 1.1.2.11 *************** *** 11,18 **** --- 11,20 ---- { my $q = new CGI; + my %ch = $q->Vars(); my $message; my $dbh = new_connection(); my $us_fk = get_us_fk($dbh); + my %tree = read_tree($q); write_db($dbh, \%tree); *************** *** 20,27 **** my $url = index_url(); # see sessionlib.pl $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; ! my $tree_pk = $q->param("tree_pk"); ! my $node_pk = $q->param("node_pk"); ! print "Location: $url?tree_pk=$tree_pk&node_pk=$node_pk\n\n"; ! $dbh->commit(); $dbh->disconnect(); --- 22,33 ---- my $url = index_url(); # see sessionlib.pl $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; ! if (exists($ch{node_pk})) ! { ! print "Location: $url?tree_pk=$ch{tree_pk}&node_pk=$ch{node_pk}\n\n"; ! } ! else ! { ! print "Location: $url?tree_pk=$ch{tree_pk}\n\n"; ! } $dbh->commit(); $dbh->disconnect(); *************** *** 50,57 **** if (exists($ch{add})) { - # - # The single new node gets a special key "new", instead of a node_pk. - # It'll get a node_pk later. - # $tree{add_an_fk} = $ch{select_node}; $tree{add_parent} = $active_node; --- 56,59 ---- Index: edit_atree1.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.html,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -C2 -d -r1.1.2.10 -r1.1.2.11 *** edit_atree1.html 13 Dec 2002 17:12:42 -0000 1.1.2.10 --- edit_atree1.html 13 Dec 2002 21:51:59 -0000 1.1.2.11 *************** *** 1,22 **** <html><head><title>Update Experimental Conditions</title></head> <body bgcolor="#FFFFFF"> ! <table width="600" border=0 cellpadding=0 cellspacing=0> ! <tr><td align=top><img src="../graphics/genex_logo.jpg" align="left">GeneX Experimental Conditions Update<br><br> ! <a href="./">Return to Genex Member Home</a><br><br clear=all><br> </td> </tr> ! </table> ! Click the radio button of the node you wish to modify.<br> ! Node properties are not yet implemented. ! <br> ! <font color="#FF0000">{message}</font> ! <br> ! <form action="edit_atree2.pl" method=POST> ! Analysis tree name: {tree_name}<br> <input type="text" name="tree_name" value="{tree_name}"> <input type="submit" name="Update" value="Update Name"> <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! <table width="700" border="0" cellpadding="0" cellspacing="4"> <tr> <td width="50%"> --- 1,24 ---- <html><head><title>Update Experimental Conditions</title></head> <body bgcolor="#FFFFFF"> ! ! <table width="600" border=0 cellpadding=0 cellspacing=0> ! <tr valign="top"> ! <td align=top width="50%"><img src="../graphics/genex_logo.jpg"><br> ! GeneX Analysis Tree Update<br> ! <a href="./">Return to Genex Member Home</a><br> </td> + <td align=top width="50%"><b>Instructions:</b> Click the radio button of the + node you wish to modify, then click the pencil (edit), trash (delete) or use Add/Change + node at the bottom of the page. Scroll down for detailed instructions.<br> + <br> + <font color="#FF0000">{message}</font> </td> </tr> ! </table> <form action="edit_atree2.pl" method=POST> ! Analysis tree name: {tree_name} <input type="text" name="tree_name" value="{tree_name}"> <input type="submit" name="Update" value="Update Name"> <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! <table width="760" border="0" cellpadding="0" cellspacing="4"> <tr> <td width="50%"> *************** *** 49,54 **** </form> <br> ! * (Node properties will eventually contain required fields.) Please complete these fields. This information is required before your analysis ! will run.<br> </body> </html> --- 51,73 ---- </form> <br> ! <table width="600"> ! <tr><td> ! * Please complete these fields. This information is required before your analysis ! will run. ! <br> ! <br> ! <b>More instructions:</b> ! <br> ! Click the pencil to modify properties of a node. ! <br><br> ! To add a node, click the radio button of the parent node, then choose the ! type of analysis from the drop down menu at the bottom of the page. Click Add Node. ! <br> ! <br> ! To delete a node, click the node's radio button, then click the trash can. There is no ! confirmation: we assume that since you clicked both the radio button and the trash can, ! you really meant it, and the node is immediately deleted as well as all the nodes children! ! <br> ! </td></tr></table> </body> </html> |
From: <tw...@us...> - 2002-12-13 18:39:38
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv23008 Added Files: Tag: Rel-1_0_1-branch closed.html Log Message: site closed notification file --- NEW FILE: closed.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE>GeneX is temporarily closed for maintenance</TITLE> </HEAD> <BODY bgcolor="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" link="#006633" vlink="#666633"> <table width="760" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="240"><font face="Verdana, Arial, Helvetica, sans-serif" size="+1">GeneX</font></td> <td width="530"><font face="Verdana, Arial, Helvetica, sans-serif" size="+1"> Gene Expression Analysis and Database</font><br> <br> <b>Welcome to the GeneX server running at the University of Virginia.</b> </td> </tr> </table> <br> GeneX is closed for maintenance. It will reopen in approximately 30 minutes.<br> If you have questions or concerns, please call Tom at 924-2456.<br> <br> </BODY> </HTML> |
From: <tw...@us...> - 2002-12-13 18:38:53
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv22586 Modified Files: Tag: Rel-1_0_1-branch options.txt INSTALL Log Message: throw out unused options. Index: options.txt =================================================================== RCS file: /cvsroot/genex/genex-server/Attic/options.txt,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** options.txt 21 Nov 2002 16:49:49 -0000 1.1.2.13 --- options.txt 13 Dec 2002 18:38:35 -0000 1.1.2.14 *************** *** 3,58 **** # # You must copy this file to ! # options.reminders, then edit options.reminders for your ! # GeneX installation. ! # ! # Many existing settings will work without changes. There is ! # one section just below where you will almost certainly have to make ! # changes. # # Directories are NOT / terminated. # - # This option is specific to the new installation routine. - # This needs to exist, and needs to contain a "y". - # - NEWINSTALL = yes - - # Configuration values are in alphabetical order, within the - # several sections. - # Where GeneX is installed: the usual usage is HTMLDIR/GENEX_DIR ! # For example in Perl if you've used read_optionsdotreminders() in sessionlib.pl # $vars{HTMLDIR}/$vars{GENEX_DIR} # will by default give you /var/www/html/genex - - # - # This section contains hostname specific URLs that you will need to - # change. # We've used the generic 'localhost.localdomain' and # us...@ho... # BUG_REPORT_URL = http://biostat.virginia.edu/bugzilla/query.cgi?GoAheadAndLogIn=1 - CGITMPURL = http://localhost.localdomain/genex/tmp - CGI_ROOT_URL = http://localhost.localdomain/cgi-bin # /var/brf-data/Archive Data/*/{order_number}/expression chips CHIP_DATA_PATH = /mnt/chips CONTACT_EMAIL = us...@ho... - DTD_HTML_URL = http://localhost.localdomain/genex/DTD/genexml-html - GENEXML_URL = http://localhost.localdomain/genex/DTD - GENEX_CGI_URL = http://localhost.localdomain/cgi-bin/genex GENEX_CURATOR = us...@ho... ! # Note: the location of additional Perl modules specific to GeneX. ! GENEX_EXTRALIBS = use lib q[/usr/local/genex/perl5]; ! GENEX_GRAPHICS_URL = http://localhost.localdomain/genex/graphics ! GENEX_HTM_URL = http://localhost.localdomain/ ! GENEX_SERVER_INSTALLED_BY = us...@ho... ! # This date looks kind of SQL-like with the timezone as an offset ! # from GMT. If you retain the timezone, I suggest that you keep the ! # trailing zeros. ! GENEX_SERVER_VERSION_DATE = 2002-10-11 14:34:00 -0400 ! GENEX_URL_CUR_TOOL = http://localhost.localdomain/cgi-bin/genex/curation-tool ! GENEX_URL_EXAMPLE = http://localhost.localdomain/cgi-bin/genex/samples ! GENEX_URL_QUERY = http://localhost.localdomain/cgi-bin/genex/gxquery ! HTML_ROOT_URL = http://localhost.localdomain # The directory where layout.pl can find chip layout files LAYOUT_DIR = /var/www/html/genex/layouts --- 3,32 ---- # # You must copy this file to ! # options.reminders ! # then edit options.reminders for your GeneX installation. # # Directories are NOT / terminated. # # Where GeneX is installed: the usual usage is HTMLDIR/GENEX_DIR ! # For example in Perl: ! # ! # my %vars = read_optionsdotreminders(); find this subroutine in sessionlib.pl # $vars{HTMLDIR}/$vars{GENEX_DIR} + # # will by default give you /var/www/html/genex # # We've used the generic 'localhost.localdomain' and # us...@ho... # BUG_REPORT_URL = http://biostat.virginia.edu/bugzilla/query.cgi?GoAheadAndLogIn=1 # /var/brf-data/Archive Data/*/{order_number}/expression chips CHIP_DATA_PATH = /mnt/chips CONTACT_EMAIL = us...@ho... GENEX_CURATOR = us...@ho... ! # GENEX_DIR is used with HTMLDIR ! GENEX_DIR = genex ! GENEX_SERVER_INSTALLED_BY = us...@ho... ! # See also GENEX_DIR. The usual usage is HTMLDIR/GENEX_DIR ! HTMLDIR = /var/www/html # The directory where layout.pl can find chip layout files LAYOUT_DIR = /var/www/html/genex/layouts *************** *** 61,241 **** # I've put in UVa as an example. ORGANIZATION_NAME = the University of Virginia - # gxquery cgi scripts were cDNA only, and had no security. Superceded. - # - # We no longer use Bio::Genex, so don't install it. The current web pages - # use straight Perl::DBI and SQL. - SKIP_BIO_GENEX = yes - # - # The Java curation tool never really worked. We have import scripts. - SKIP_CURATION = yes - # - # Download was only used by curation. - SKIP_DOWNLOAD = yes - # - # gxquery cgi scripts were cDNA only, and had no security. - SKIP_GXQUERY = yes - # - # The old SSI wasn't portable to non-virtual hosted sites, - # and was hard to maintain. It is gone for good, so this - # note is merely for historical reference. - SKIP_INCLUDE = yes - # - # mergem may or may not have worked. It was almost certainly cDNA only. - # The schema has changed, and now we have security. - SKIP_MERGEM = yes - # - # The old Rcluster code was interesting. - SKIP_OLD_RCLUSTER = yes - # - # The old top-level html pages were not portable to different - # site directory configurations. These pages have been - # permanently superceded by the genex-server/html/ files. - # This note is merely for historical reference. - SKIP_TOP_LEVEL = yes - # - # /usr/bin/perl is standard on most systems, or is a valid sym link. - # - # X Gobi is no longer used. Other visualization tools will replace it. - SKIP_XGOBI = yes START_PERL = #!/usr/bin/perl - # Default values for the user httpd runs as, and where GeneX users' directories are created. - # Under RedHat you can leave these unchanged. - HTTP_USERNAME = apache USER_DATA_DIR = /var/genres ! # verbose = 1 enables more output from several steps. ! VERBOSE = 0 WWWHOST = localhost.localdomain # WEBTOOLS is built dynamically in read_optionsdotreminders() in sessionlib.pl # using a couple of other option values. - - # - # Config settings below this line are more or less standard across Linux systems. - # - CGIDIR = /var/www/cgi-bin - # - # aug 15 2002 Tom: no longer used. It may have been used by the old RCluster. - # CGITMPDIR = /tmp/genex - # curation tool is no longer used - CURA_TOOL = genex/curation-tool - CYBERT_DIR = genex/cybert - CyberT_Demo_DIR = genex/CyberT-Demo - DB_NAME = genex - # The only thing to download was the curation tool, and that never worked. - # This config value is probably not used. - DOWNLOAD_DIR = genex/download - DTD2HTML = /usr/local/bin/dtd2html - DTD_DIR = genex/DTD - DTD_HTML_DIR = /usr/local/genex/lib/dtd/genexml-html # ! # aug 15 2002 Tom: no longer used ! # ENV_HOME = /tmp/genex ! GENEXML_DIR = /usr/local/genex/lib/dtd ! GENEX_CACHE_DIR = /usr/local/genex/cache ! GENEX_CB_CACHE_DIR = /usr/local/genex/cache/db2xml/cb ! GENEX_CGIDIR = /var/www/cgi-bin/genex ! # This needs to be created dynamically since the connection string ! # contains values of several other properties. ! GENEX_CONNECT = ! # curation tool is no longer used ! GENEX_CUR_TOOL_DIR = /var/www/cgi-bin/genex/curation-tool ! GENEX_DBMS = Pg ! GENEX_DB_USERSEC = geTUDS33iqbVU ! # GENEX_DIR is used with HTMLDIR ! # Required. ! GENEX_DIR = genex ! GENEX_EXAMPLE_DIR = /var/www/cgi-bin/genex/samples ! GENEX_EXP_CACHE_DIR = /usr/local/genex/cache/db2xml/exp ! GENEX_HOST = localhost ! GENEX_INSTALLSITE = /usr/local/genex/perl5 ! # GENEX_LOCAL should have no effect. We treat the local server like a tcp-ip host ! # and use a socket connection regardless. ! GENEX_LOCAL = 0 ! GENEX_MAN1 = /usr/local/genex/man/man1 ! GENEX_MAN3 = /usr/local/genex/man/man3 ! GENEX_PORT = 5432 ! GENEX_QUERY_DIR = /var/www/cgi-bin/genex/gxquery ! GENEX_RO_PASSWORD = readonly ! GENEX_RO_USER = readonly ! GENEX_SECRET = Mon Feb 25 10:07:14 2002 ! GENEX_SERVER_VERSION = 1.5.9 ! GENEX_SUBMISSION_HOME = /usr/local/genex/submission ! GENEX_SU_PASSWORD = yeastecol1 ! GENEX_SU_USER = genex ! GNUCUT = /bin/cut ! GNUINSTALL = /usr/bin/install ! GNUMKDIR = /bin/mkdir ! GNUSORT = /bin/sort ! GNUTAIL = /usr/bin/tail ! GNUTAR = /bin/tar ! GRAPHICS_DIR = genex/graphics ! GS = /usr/bin/gs ! GXQUERY_DIR = genex/gxquery ! # See also GENEX_DIR. The usual usage is HTMLDIR/GENEX_DIR ! HTMLDIR = /var/www/html # ! # aug 15 2002 Tom: no longer used. ! # HTMLTMPDIR = /var/www/html/genex/tmp ! HTTP_ERR_LOG = /var/log/httpd/error.log ! INCLUDE_DIR = genex/include ISO8601_DATE_FORMAT = %Y-%m-%d %T %z - JAR = - # Values are LINUX_REDHAT or LINUX_DEBIAN, or nothing. - # Apparently not used. - LINUX = LINUX_REDHAT - LOCAL_BIN = /usr/local/genex/bin - LOCAL_LIB = /usr/local/genex/lib - LOCAL_ROOT = /usr/local/genex - LOCAL_SHARE = /usr/local/genex/share - LOCAL_VAR = /usr/local/genex/var - LOGIN_DIR = genex/login - MAKE = make - MAX_SYSTMP_SIZE = 15 - MAX_TMPFILE_AGE = 24 - MERGEM_DIR = genex/mergem - MPAGE = /usr/bin/mpage - NON_ROOT_OK = yes - PERLPATH = /usr/bin/perl - PATH = /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin - PREFIX = /usr/local/genex/perl5 - R = /usr/bin/R - RCLUSTER_PERL_LIB = /usr/local/genex/perl5/RCluster - RCLUST_DIR = genex/rcluster - RCluster_Demo_DIR = genex/RCluster-Demo - R_VERSION = R 1.3.1 (2001-08-31). - SENDMAIL = /usr/sbin/sendmail - # - # aug 15 2002 Tom: no longer used. - # SYSTMP = /tmp/genex - TOP_LEVEL_DIR = genex/top_level - VERSION_STRING = $Id$ - VNCSERVER = /usr/local/bin/vncserver - XCLUSTER = /usr/local/bin/cluster - XCLUSTER_DIR = genex/xcluster - XGOBI = /usr/local/bin/xgobi - XGOBID = /usr/local/bin/xgobi - XGVIS = /usr/local/bin/xgvis - XML_WRITER = /usr/local/genex/bin/db2xml.pl - - # Application Paths - R = /usr/bin/R - cut = /bin/cut - dtd2html = /usr/local/bin/dtd2html - gs = /usr/bin/gs - install = /usr/bin/install - jar = - mkdir = /bin/mkdir - mpage = /usr/bin/mpage - sendmail = /usr/sbin/sendmail - sort = /bin/sort - tail = /usr/bin/tail - tar = /bin/tar - vncserver = /usr/local/bin/vncserver - xcluster = /usr/local/bin/cluster - xgobi = /usr/local/bin/xgobi - xgvis = /usr/local/bin/xgvis - - # aug 15 2002 Tom: no longer used. This apparently was required by curation tools and cyberT. - # ENVIRONMENT VARIABLES - # ENV_HOME = /tmp/genex - # PATH = /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin - # XGOBID = /usr/local/bin/xgobi --- 35,55 ---- # I've put in UVa as an example. ORGANIZATION_NAME = the University of Virginia START_PERL = #!/usr/bin/perl USER_DATA_DIR = /var/genres ! # If you have a fully qualified domain name, put it in WWWHOST. WWWHOST = localhost.localdomain # WEBTOOLS is built dynamically in read_optionsdotreminders() in sessionlib.pl # using a couple of other option values. # ! # The following items do not often change. ! GENEX_DBMS = Pg ! DB_NAME = genex ! GENEX_HOST = localhost ! GENEX_PORT = 5432 ! GENEX_SU_PASSWORD = yeastecol1 ! GENEX_SU_USER = genex ! GENEX_RO_PASSWORD = readonly ! GENEX_RO_USER = readonly # ! # This should not change. ISO8601_DATE_FORMAT = %Y-%m-%d %T %z Index: INSTALL =================================================================== RCS file: /cvsroot/genex/genex-server/INSTALL,v retrieving revision 1.14.2.19 retrieving revision 1.14.2.20 diff -C2 -d -r1.14.2.19 -r1.14.2.20 *** INSTALL 2 Dec 2002 17:03:35 -0000 1.14.2.19 --- INSTALL 13 Dec 2002 18:38:39 -0000 1.14.2.20 *************** *** 38,43 **** 4) Use your favorite text editor to edit options.reminders so that the ! options are appropriate for you system. Most of the options you will ! want to change are in a stanza towards the top of the file. $ emacs options.reminders --- 38,42 ---- 4) Use your favorite text editor to edit options.reminders so that the ! options are appropriate for you system. $ emacs options.reminders |
From: <tw...@us...> - 2002-12-13 18:38:02
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv21924 Modified Files: Tag: Rel-1_0_1-branch sessionlib.pl htaccess Log Message: clean up options.reminders related stuff Index: sessionlib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sessionlib.pl,v retrieving revision 1.1.2.17 retrieving revision 1.1.2.18 diff -C2 -d -r1.1.2.17 -r1.1.2.18 *** sessionlib.pl 10 Dec 2002 21:18:22 -0000 1.1.2.17 --- sessionlib.pl 13 Dec 2002 18:37:42 -0000 1.1.2.18 *************** *** 604,656 **** $vars{MOTHERDIR} = `pwd`; # where we start from. chomp($vars{MOTHERDIR}); - $vars{CURR_LOGIN} = getpwuid($<); # aug 13 2002 tom: need a var for the webtools destination directory. $vars{WEBTOOLS} = "$vars{HTMLDIR}/$vars{GENEX_DIR}/webtools"; - $vars{GENEX_CGI_URL} = "$vars{CGI_ROOT_URL}/$vars{GENEX_DIR}"; - $vars{GENEX_URL_QUERY} = "$vars{GENEX_CGI_URL}/gxquery"; - $vars{GENEX_URL_CUR_TOOL} = "$vars{GENEX_CGI_URL}/curation-tool"; - $vars{GENEX_URL_EXAMPLE} = "$vars{GENEX_CGI_URL}/samples"; - $vars{GENEX_HTM_URL} = "$vars{HTML_ROOT_URL}/$vars{GENEX_DIR}"; - $vars{GENEX_GRAPHICS_URL} = "$vars{GENEX_HTM_URL}/graphics"; - - $vars{CYBERT_DIR} = "$vars{GENEX_DIR}/cybert"; - $vars{GXQUERY_DIR} = "$vars{GENEX_DIR}/gxquery"; - $vars{RCLUST_DIR} = "$vars{GENEX_DIR}/rcluster"; - $vars{CURA_TOOL} = "$vars{GENEX_DIR}/curation-tool"; - $vars{LOGIN_DIR} = "$vars{GENEX_DIR}/login"; - $vars{MERGEM_DIR} = "$vars{GENEX_DIR}/mergem"; - - $vars{GENEX_CGIDIR} = "$vars{CGIDIR}/$vars{GENEX_DIR}"; - $vars{GENEX_QUERY_DIR} = "$vars{GENEX_CGIDIR}/gxquery"; - $vars{GENEX_EXAMPLE_DIR} = "$vars{GENEX_CGIDIR}/samples"; - $vars{GENEX_CUR_TOOL_DIR} = "$vars{GENEX_CGIDIR}/curation-tool"; - - $vars{DOWNLOAD_DIR} = "$vars{GENEX_DIR}/download"; - $vars{CyberT_Demo_DIR} = "$vars{GENEX_DIR}/CyberT-Demo"; - $vars{DTD_DIR} = "$vars{GENEX_DIR}/DTD"; - $vars{GENEXML_URL} = "$vars{HTML_ROOT_URL}/$vars{DTD_DIR}"; - $vars{DTD_HTML_URL} = "$vars{GENEXML_URL}/genexml-html"; - $vars{RCluster_Demo_DIR} = "$vars{GENEX_DIR}/RCluster-Demo"; - $vars{GRAPHICS_DIR} = "$vars{GENEX_DIR}/graphics"; - $vars{INCLUDE_DIR} = "$vars{GENEX_DIR}/include"; - $vars{TOP_LEVEL_DIR} = "$vars{GENEX_DIR}/top_level"; - $vars{XCLUSTER_DIR} = "$vars{GENEX_DIR}/xcluster"; - - $vars{RCLUSTER_PERL_LIB} = "$vars{PREFIX}/RCluster"; - - if ($vars{PREFIX}) { - $vars{GENEX_MAN1} = "$vars{LOCAL_ROOT}/man/man1"; - $vars{GENEX_MAN3} = "$vars{LOCAL_ROOT}/man/man3"; - $vars{GENEX_INSTALLSITE} = $vars{PREFIX}; - } - - # - # aug 9 2002 Tom This really isn't used (or shouldn't be used) since we build this string - # dynamically in the >>one<< place that it is used. I've kept it here based on a - # weak desire to maintain legacy options. See sub new_connection. - # - $vars{'GENEX_CONNECT'} = "dbi:$vars{GENEX_DBMS}:dbname=$vars{DB_NAME};host=$vars{GENEX_HOST};port=$vars{GENEX_PORT}"; - # # Set up the Server Version info --- 604,610 ---- Index: htaccess =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/htaccess,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** htaccess 24 Oct 2002 18:26:53 -0000 1.1.2.1 --- htaccess 13 Dec 2002 18:37:48 -0000 1.1.2.2 *************** *** 1,5 **** DirectoryIndex index.pl ! AuthUserFile /var/www/html/genex/webtools/.htpasswd AuthGroupFile /dev/null AuthName GenexLogin --- 1,8 ---- DirectoryIndex index.pl ! Options All ! AddHandler cgi-script pl ! ! AuthUserFile %%HTMLDIR%%/%%GENEX_DIR%%/webtools/.htpasswd AuthGroupFile /dev/null AuthName GenexLogin *************** *** 7,8 **** --- 10,14 ---- require valid-user + + # Uncomment this to close the site. + # RedirectMatch /webtools/* http://%%WWWHOST%%/closed.html |
From: <tw...@us...> - 2002-12-13 17:29:47
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv2722 Modified Files: Tag: Rel-1_0_1-branch makefile Log Message: trailing / on graphics, a note. Index: makefile =================================================================== RCS file: /cvsroot/genex/genex-server/site/Attic/makefile,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** makefile 29 Oct 2002 14:48:47 -0000 1.1.2.6 --- makefile 13 Dec 2002 17:29:36 -0000 1.1.2.7 *************** *** 16,33 **** cd ../; ./install_lib.pl $< ./site $(DEST) jpg_srcs := $(patsubst %.jpg,$(DEST)/%.jpg,$(wildcard graphics/*.jpg)) jpg_files : $(jpg_srcs) $(DEST)/%.jpg : ./%.jpg ! cp -f $< $(DEST)/graphics gif_srcs := $(patsubst %.gif,$(DEST)/%.gif,$(wildcard graphics/*.gif)) gif_files : $(gif_srcs) $(DEST)/%.gif : ./%.gif ! cp -f $< $(DEST)/graphics pdf_srcs := $(patsubst %.pdf,$(DEST)/%.pdf,$(wildcard graphics/*.pdf)) pdf_files : $(pdf_srcs) $(DEST)/%.pdf : ./%.pdf ! cp -f $< $(DEST)/graphics --- 16,41 ---- cd ../; ./install_lib.pl $< ./site $(DEST) + + # 2002-12-13 For some reason, the main makefile failed to create graphics + # Put on a trailing slash, forcing the destination to be a directory + # so this will fail if the dir doesn't exist. + # We could add a dependency for that directory to exist, and a rule + # to create it, but I'd rather know why the top level makefile failed. + + jpg_srcs := $(patsubst %.jpg,$(DEST)/%.jpg,$(wildcard graphics/*.jpg)) jpg_files : $(jpg_srcs) $(DEST)/%.jpg : ./%.jpg ! cp -f $< $(DEST)/graphics/ gif_srcs := $(patsubst %.gif,$(DEST)/%.gif,$(wildcard graphics/*.gif)) gif_files : $(gif_srcs) $(DEST)/%.gif : ./%.gif ! cp -f $< $(DEST)/graphics/ pdf_srcs := $(patsubst %.pdf,$(DEST)/%.pdf,$(wildcard graphics/*.pdf)) pdf_files : $(pdf_srcs) $(DEST)/%.pdf : ./%.pdf ! cp -f $< $(DEST)/graphics/ |
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv31090 Modified Files: Tag: Rel-1_0_1-branch sql_lib.pl edit_atree2.pl edit_atree1.pl edit_atree1.html analysis_tree_lib.pl Log Message: roll forward. Index: sql_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sql_lib.pl,v retrieving revision 1.1.2.22 retrieving revision 1.1.2.23 diff -C2 -d -r1.1.2.22 -r1.1.2.23 *** sql_lib.pl 12 Dec 2002 20:23:17 -0000 1.1.2.22 --- sql_lib.pl 13 Dec 2002 17:12:35 -0000 1.1.2.23 *************** *** 276,279 **** --- 276,291 ---- $sql = "select file_name from file_info where fi_checksum=?"; } + elsif ($q_name eq "default_upv") + { + $sql = "select upn_pk,up_default from user_parameter_names where an_fk=?"; + } + elsif ($q_name eq "insert_upv") + { + $sql = "insert into user_parameter_values (node_fk, up_value, upn_fk) values (?,?,?)"; + } + elsif ($q_name eq "get_upn") + { + $sql = "select * from user_parameter_names,user_parameter_values where node_fk=? and upn_pk=upn_fk"; + } *************** *** 286,289 **** --- 298,302 ---- else { + my $temp = $DBI::errstr; # quiet compiler warnings die "Query $q_name not found in sql_lib.pl getq()\n"; } Index: edit_atree2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree2.pl,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** edit_atree2.pl 12 Dec 2002 20:23:17 -0000 1.1.2.9 --- edit_atree2.pl 13 Dec 2002 17:12:37 -0000 1.1.2.10 *************** *** 21,25 **** $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; my $tree_pk = $q->param("tree_pk"); ! print "Location: $url?tree_pk=$tree_pk\n\n"; $dbh->commit(); --- 21,26 ---- $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; my $tree_pk = $q->param("tree_pk"); ! my $node_pk = $q->param("node_pk"); ! print "Location: $url?tree_pk=$tree_pk&node_pk=$node_pk\n\n"; $dbh->commit(); *************** *** 43,49 **** } my $active_node; ! if (exists($ch{node_number})) { ! $active_node = $ch{node_number}; } if (exists($ch{add})) --- 44,50 ---- } my $active_node; ! if (exists($ch{node_pk})) { ! $active_node = $ch{node_pk}; } if (exists($ch{add})) *************** *** 65,69 **** # input type=image sends .x and .y because (apparently) I didn't ask for an image map. # Just use the .x ! # The node_number radio button has to be clicked to set $active_node $tree{delete_node_pk} = $active_node; } --- 66,70 ---- # input type=image sends .x and .y because (apparently) I didn't ask for an image map. # Just use the .x ! # The node_pk radio button has to be clicked to set $active_node $tree{delete_node_pk} = $active_node; } Index: edit_atree1.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.pl,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** edit_atree1.pl 12 Dec 2002 20:23:16 -0000 1.1.2.5 --- edit_atree1.pl 13 Dec 2002 17:12:40 -0000 1.1.2.6 *************** *** 10,21 **** main: { my $q = new CGI; my $tree_pk = $q->param("tree_pk"); ! my $dbh = new_connection(); my %tree = read_db($dbh, $tree_pk); my $atree = render_at(); my $select_node = select_node($dbh); (my $all_html) = readtemplate("edit_atree1.html"); --- 10,28 ---- main: { + my $properties; my $q = new CGI; my $tree_pk = $q->param("tree_pk"); ! my %ch = $q->Vars(); my $dbh = new_connection(); + my %tree = read_db($dbh, $tree_pk); my $atree = render_at(); my $select_node = select_node($dbh); + if (exists($ch{node_pk})) + { + $properties = build_properties($dbh, $ch{node_pk}); + } + (my $all_html) = readtemplate("edit_atree1.html"); *************** *** 26,29 **** --- 33,37 ---- $all_html =~ s/{select_node}/$select_node/sg; $all_html =~ s/{atree}/$atree/sg; + $all_html =~ s/{properties}/$properties/sg; print "Content-type: text/html\n\n$all_html"; *************** *** 31,32 **** --- 39,62 ---- $dbh->disconnect(); } + + sub build_properties + { + my $dbh = $_[0]; + my $node_pk = $_[1]; + my $results; + + my $sth = getq("get_upn", $dbh); # get names and values + $sth->execute($node_pk) || die "Query execute get_upn fails.\n$DBI::errstr\n"; + $results = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; + my $hr; # hashref + while( $hr = $sth->fetchrow_hashref()) + { + if ($hr->{up_type} eq "text") + { + $results .= "<tr><td valign=\"top\">$hr->{up_display_name} <br><br></td><td valign=\"top\"><input type=\"text\" name=\"$hr->{up_name}\" value=\"$hr->{up_value}\"></td></tr>\n"; + } + } + $results .= "</table>\n"; + return $results; + } + Index: edit_atree1.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.html,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -C2 -d -r1.1.2.9 -r1.1.2.10 *** edit_atree1.html 12 Dec 2002 20:23:17 -0000 1.1.2.9 --- edit_atree1.html 13 Dec 2002 17:12:42 -0000 1.1.2.10 *************** *** 18,22 **** <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! {atree} <br> <br> <br> --- 18,30 ---- <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! <table width="700" border="0" cellpadding="0" cellspacing="4"> ! <tr> ! <td width="50%"> ! {atree} <br> ! </td> ! <td bgcolor="#00CC99" width="1%"></td> ! <td valign="top" width="49%">Node Properties<br>{properties}</td> ! </tr> ! </table> <br> <br> Index: analysis_tree_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/analysis_tree_lib.pl,v retrieving revision 1.1.2.34 retrieving revision 1.1.2.35 diff -C2 -d -r1.1.2.34 -r1.1.2.35 *** analysis_tree_lib.pl 12 Dec 2002 20:23:17 -0000 1.1.2.34 --- analysis_tree_lib.pl 13 Dec 2002 17:12:44 -0000 1.1.2.35 *************** *** 32,37 **** $sth = getq("insert_tree_node", $dbh); $sth->execute($tree_pk,-1,$default_an_pk); # the tree pk, no parent, default analysis ! insert_security($dbh, $us_fk, $us_fk, 0); $dbh->commit; return $tree_pk; --- 32,49 ---- $sth = getq("insert_tree_node", $dbh); $sth->execute($tree_pk,-1,$default_an_pk); # the tree pk, no parent, default analysis ! my $node_pk = insert_security($dbh, $us_fk, $us_fk, 0); ! ! $sth = getq("default_upv", $dbh); ! $sth->execute($default_an_pk) || die "Query default_upv execute error. $DBI::errstr\n"; + my $sth_insert = getq("insert_upv", $dbh); + my $hr; + while ($hr = $sth->fetchrow_hashref()) + { + $sth_insert->execute($node_pk, + $hr->{up_default}, + $hr->{upn_pk}) || die "Query insert_upv execute error. $DBI::errstr\n"; + } + $dbh->commit; return $tree_pk; *************** *** 348,352 **** my $at_width = 75 * $tmax; my $outer_width = $at_width+300; ! $html = "<table width=\"$outer_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\"><tr><td width=\"$at_width\">\n"; $html .= "<table width=\"$at_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">"; for(my $xx=0; $xx<=$#table; $xx++) --- 360,364 ---- my $at_width = 75 * $tmax; my $outer_width = $at_width+300; ! # $html = "<table width=\"$outer_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\"><tr><td width=\"$at_width\">\n"; $html .= "<table width=\"$at_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">"; for(my $xx=0; $xx<=$#table; $xx++) *************** *** 381,385 **** } $html .= "<table border=\"0\" width=\"100%\"><tr><td width=\"50%\"><div align=\"left\">$del_string</div></td><td width\"50%\"><div align=\"right\"><input type=\"image\" border=\"0\" name=\"edit_$node\" src=\"../graphics/pencil.gif\" width=\"25\" height=\"25\"></div></td></tr></table>\n"; ! $html .= "<div align=\"center\"><font size=\"-1\">$tree{$node}[0]<br>($node)<input type=\"radio\" name=\"node_number\" value=\"$node\">\n"; $html .= "</font></div></td>\n"; } --- 393,397 ---- } $html .= "<table border=\"0\" width=\"100%\"><tr><td width=\"50%\"><div align=\"left\">$del_string</div></td><td width\"50%\"><div align=\"right\"><input type=\"image\" border=\"0\" name=\"edit_$node\" src=\"../graphics/pencil.gif\" width=\"25\" height=\"25\"></div></td></tr></table>\n"; ! $html .= "<div align=\"center\"><font size=\"-1\">$tree{$node}[0]<br>($node)<input type=\"radio\" name=\"node_pk\" value=\"$node\">\n"; $html .= "</font></div></td>\n"; } *************** *** 392,396 **** $html .= "</tr>\n"; } ! $html .= "</table></td><td bgcolor=\"#00CC99\" width=\"1\"></td><td valign=\"top\">Node Properties Here...</td></tr></table></td></tr></table>\n"; return $html; } --- 404,409 ---- $html .= "</tr>\n"; } ! # $html .= "</table></td><td bgcolor=\"#00CC99\" width=\"1\"></td><td valign=\"top\">Node Properties Here...</td></tr></table></td></tr></table>\n"; ! $html .= "</table>\n"; return $html; } |
From: <tw...@us...> - 2002-12-12 20:50:29
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv32187 Modified Files: Tag: Rel-1_0_1-branch get_data1.html get_data2.pl Added Files: Tag: Rel-1_0_1-branch get_data2.html Log Message: data export destination page. --- NEW FILE: get_data2.html --- <html><head><title>Choose MAS5 hybridizations to analyze.</title></head> <body bgcolor="#FFFFFF"> <table width="600" border=0 cellpadding=0 cellspacing=0> <tr><td align=top> <p><img src="../graphics/genex_logo.jpg" align="left">GeneX MAS5 Hybridization Analysis<br> <br> <a href="./">Return to Genex Member Home</a> <br> <br clear=all> Completed.<br> Wrote {records} records to file {file_name}.</p> <p><a href="files.pl">View my files</a></p> </td> </tr> </table> <br> </body> </html> Index: get_data1.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/get_data1.html,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** get_data1.html 10 Dec 2002 14:17:18 -0000 1.1.2.2 --- get_data1.html 12 Dec 2002 20:50:26 -0000 1.1.2.3 *************** *** 1,3 **** ! <html><head><title>Choose MAS5 hybridizations to analyze.</title></head> <body bgcolor="#FFFFFF"> <table width="600" border=0 cellpadding=0 cellspacing=0> --- 1,3 ---- ! <html><head><title>Choose MAS5 hybridizations</title></head> <body bgcolor="#FFFFFF"> <table width="600" border=0 cellpadding=0 cellspacing=0> *************** *** 5,9 **** <a href="./">Return to Genex Member Home</a> <br><br clear=all><br> ! Choose hybridizations to analyze, and change the grouping as necessary.<br> <font color="#FF0000">{message}</font> </td> --- 5,12 ---- <a href="./">Return to Genex Member Home</a> <br><br clear=all><br> ! Choose hybridizations to export.<br> ! The next version will allow experimental group changes, but that feature ! is not supported yet (even though the drop down list of study/experimental ! condition is here.)<br> <font color="#FF0000">{message}</font> </td> Index: get_data2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/get_data2.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** get_data2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.2 --- get_data2.pl 12 Dec 2002 20:50:26 -0000 1.1.2.3 *************** *** 26,32 **** # Write the data file. ! write_data_file($dbh, \%ana, $file_name, $q->param("comments")); ! print "Content-type: text/html\n\n<html><body>get_data2.pl</body></html>\n"; $dbh->commit(); $dbh->disconnect(); --- 26,39 ---- # Write the data file. ! my $recs = write_data_file($dbh, \%ana, $file_name, $q->param("comments")); ! (my $all_html) = readtemplate("get_data2.html"); ! ! $file_name =~ m/.*\/(.*)/; ! my $short_file_name = $1; # name without the path ! $all_html =~ s/{file_name}/$short_file_name/sg; ! $all_html =~ s/{records}/$recs/sg; ! ! print "Content-type: text/html\n\n$all_html"; $dbh->commit(); $dbh->disconnect(); *************** *** 149,152 **** --- 156,160 ---- my @data; # a single record open(OUT, "> $file_name") || die "Can't open $file_name\n"; + my $rec_count = 0; while( @data = $sth->fetchrow_array()) { *************** *** 158,161 **** --- 166,170 ---- } print OUT "\n"; + $rec_count++; } close(OUT); *************** *** 163,166 **** --- 172,177 ---- my $us_fk = get_us_fk($dbh); fi_update($dbh, $us_fk, $us_fk, $file_name, $comments); + + return $rec_count; } *************** *** 183,188 **** --- 194,201 ---- } # sanity check on the number of elements (columns) for each key of %data + #write each record to disk my $data_max = 0; + my $rec_count = 0; foreach my $probe_id (keys(%data)) { *************** *** 193,198 **** } print OUT "\n"; } ! # do the usual file_info bookkeeping } --- 206,212 ---- } print OUT "\n"; + $rec_count++; } ! return $rec_count; # do the usual file_info bookkeeping } |
From: <tw...@us...> - 2002-12-12 20:48:51
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv31459 Modified Files: Tag: Rel-1_0_1-branch download.html Log Message: bump version number Index: download.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/Attic/download.html,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** download.html 10 Dec 2002 21:39:37 -0000 1.1.2.4 --- download.html 12 Dec 2002 20:48:48 -0000 1.1.2.5 *************** *** 41,45 **** features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_14 genex-server</code> <br> <br> <br> --- 41,45 ---- features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_15 genex-server</code> <br> <br> <br> |
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv22088 Modified Files: Tag: Rel-1_0_1-branch edit_atree1.pl sql_lib.pl edit_atree2.pl edit_atree1.html analysis_tree_lib.pl Log Message: roll back to 1_5_14 Index: edit_atree1.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.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 *** edit_atree1.pl 12 Dec 2002 14:59:56 -0000 1.1.2.4 --- edit_atree1.pl 12 Dec 2002 20:23:16 -0000 1.1.2.5 *************** *** 10,28 **** main: { - my $properties; my $q = new CGI; my $tree_pk = $q->param("tree_pk"); ! my %ch = $q->Vars(); my $dbh = new_connection(); - my %tree = read_db($dbh, $tree_pk); my $atree = render_at(); my $select_node = select_node($dbh); - if (exists($ch{node_pk})) - { - $properties = build_properties($dbh, $ch{node_pk}); - } - (my $all_html) = readtemplate("edit_atree1.html"); --- 10,21 ---- main: { my $q = new CGI; my $tree_pk = $q->param("tree_pk"); ! my $dbh = new_connection(); my %tree = read_db($dbh, $tree_pk); my $atree = render_at(); my $select_node = select_node($dbh); (my $all_html) = readtemplate("edit_atree1.html"); *************** *** 33,37 **** $all_html =~ s/{select_node}/$select_node/sg; $all_html =~ s/{atree}/$atree/sg; - $all_html =~ s/{properties}/$properties/sg; print "Content-type: text/html\n\n$all_html"; --- 26,29 ---- *************** *** 39,62 **** $dbh->disconnect(); } - - sub build_properties - { - my $dbh = $_[0]; - my $node_pk = $_[1]; - my $results; - - my $sth = getq("get_upn", $dbh); # get names and values - $sth->execute($node_pk) || die "Query execute get_upn fails.\n$DBI::errstr\n"; - $results = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; - my $hr; # hashref - while( $hr = $sth->fetchrow_hashref()) - { - if ($hr->{up_type} eq "text") - { - $results .= "<tr><td valign=\"top\">$hr->{up_display_name} <br><br></td><td valign=\"top\"><input type=\"text\" name=\"$hr->{up_name}\" value=\"$hr->{up_value}\"></td></tr>\n"; - } - } - $results .= "</table>\n"; - return $results; - } - --- 31,32 ---- Index: sql_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sql_lib.pl,v retrieving revision 1.1.2.21 retrieving revision 1.1.2.22 diff -C2 -d -r1.1.2.21 -r1.1.2.22 *** sql_lib.pl 12 Dec 2002 14:59:59 -0000 1.1.2.21 --- sql_lib.pl 12 Dec 2002 20:23:17 -0000 1.1.2.22 *************** *** 276,291 **** $sql = "select file_name from file_info where fi_checksum=?"; } - elsif ($q_name eq "default_upv") - { - $sql = "select upn_pk,up_default from user_parameter_names where an_fk=?"; - } - elsif ($q_name eq "insert_upv") - { - $sql = "insert into user_parameter_values (node_fk, up_value, upn_fk) values (?,?,?)"; - } - elsif ($q_name eq "get_upn") - { - $sql = "select * from user_parameter_names,user_parameter_values where node_fk=? and upn_pk=upn_fk"; - } --- 276,279 ---- *************** *** 298,302 **** else { - my $temp = $DBI::errstr; # quiet compiler warnings die "Query $q_name not found in sql_lib.pl getq()\n"; } --- 286,289 ---- Index: edit_atree2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree2.pl,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** edit_atree2.pl 12 Dec 2002 14:59:59 -0000 1.1.2.8 --- edit_atree2.pl 12 Dec 2002 20:23:17 -0000 1.1.2.9 *************** *** 21,26 **** $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; my $tree_pk = $q->param("tree_pk"); ! my $node_pk = $q->param("node_pk"); ! print "Location: $url?tree_pk=$tree_pk&node_pk=$node_pk\n\n"; $dbh->commit(); --- 21,25 ---- $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; my $tree_pk = $q->param("tree_pk"); ! print "Location: $url?tree_pk=$tree_pk\n\n"; $dbh->commit(); *************** *** 44,50 **** } my $active_node; ! if (exists($ch{node_pk})) { ! $active_node = $ch{node_pk}; } if (exists($ch{add})) --- 43,49 ---- } my $active_node; ! if (exists($ch{node_number})) { ! $active_node = $ch{node_number}; } if (exists($ch{add})) *************** *** 66,70 **** # input type=image sends .x and .y because (apparently) I didn't ask for an image map. # Just use the .x ! # The node_pk radio button has to be clicked to set $active_node $tree{delete_node_pk} = $active_node; } --- 65,69 ---- # input type=image sends .x and .y because (apparently) I didn't ask for an image map. # Just use the .x ! # The node_number radio button has to be clicked to set $active_node $tree{delete_node_pk} = $active_node; } Index: edit_atree1.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.html,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -C2 -d -r1.1.2.8 -r1.1.2.9 *** edit_atree1.html 12 Dec 2002 14:59:59 -0000 1.1.2.8 --- edit_atree1.html 12 Dec 2002 20:23:17 -0000 1.1.2.9 *************** *** 18,30 **** <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! <table width="700" border="0" cellpadding="0" cellspacing="4"> ! <tr> ! <td width="50%"> ! {atree} <br> ! </td> ! <td bgcolor="#00CC99" width="1%"></td> ! <td valign="top" width="49%">Node Properties<br>{properties}</td> ! </tr> ! </table> <br> <br> --- 18,22 ---- <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! {atree} <br> <br> <br> Index: analysis_tree_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/analysis_tree_lib.pl,v retrieving revision 1.1.2.33 retrieving revision 1.1.2.34 diff -C2 -d -r1.1.2.33 -r1.1.2.34 *** analysis_tree_lib.pl 12 Dec 2002 14:59:59 -0000 1.1.2.33 --- analysis_tree_lib.pl 12 Dec 2002 20:23:17 -0000 1.1.2.34 *************** *** 32,49 **** $sth = getq("insert_tree_node", $dbh); $sth->execute($tree_pk,-1,$default_an_pk); # the tree pk, no parent, default analysis ! my $node_pk = insert_security($dbh, $us_fk, $us_fk, 0); ! ! $sth = getq("default_upv", $dbh); ! $sth->execute($default_an_pk) || die "Query default_upv execute error. $DBI::errstr\n"; - my $sth_insert = getq("insert_upv", $dbh); - my $hr; - while ($hr = $sth->fetchrow_hashref()) - { - $sth_insert->execute($node_pk, - $hr->{up_default}, - $hr->{upn_pk}) || die "Query insert_upv execute error. $DBI::errstr\n"; - } - $dbh->commit; return $tree_pk; --- 32,37 ---- $sth = getq("insert_tree_node", $dbh); $sth->execute($tree_pk,-1,$default_an_pk); # the tree pk, no parent, default analysis ! insert_security($dbh, $us_fk, $us_fk, 0); $dbh->commit; return $tree_pk; *************** *** 360,364 **** my $at_width = 75 * $tmax; my $outer_width = $at_width+300; ! # $html = "<table width=\"$outer_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\"><tr><td width=\"$at_width\">\n"; $html .= "<table width=\"$at_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">"; for(my $xx=0; $xx<=$#table; $xx++) --- 348,352 ---- my $at_width = 75 * $tmax; my $outer_width = $at_width+300; ! $html = "<table width=\"$outer_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\"><tr><td width=\"$at_width\">\n"; $html .= "<table width=\"$at_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">"; for(my $xx=0; $xx<=$#table; $xx++) *************** *** 393,397 **** } $html .= "<table border=\"0\" width=\"100%\"><tr><td width=\"50%\"><div align=\"left\">$del_string</div></td><td width\"50%\"><div align=\"right\"><input type=\"image\" border=\"0\" name=\"edit_$node\" src=\"../graphics/pencil.gif\" width=\"25\" height=\"25\"></div></td></tr></table>\n"; ! $html .= "<div align=\"center\"><font size=\"-1\">$tree{$node}[0]<br>($node)<input type=\"radio\" name=\"node_pk\" value=\"$node\">\n"; $html .= "</font></div></td>\n"; } --- 381,385 ---- } $html .= "<table border=\"0\" width=\"100%\"><tr><td width=\"50%\"><div align=\"left\">$del_string</div></td><td width\"50%\"><div align=\"right\"><input type=\"image\" border=\"0\" name=\"edit_$node\" src=\"../graphics/pencil.gif\" width=\"25\" height=\"25\"></div></td></tr></table>\n"; ! $html .= "<div align=\"center\"><font size=\"-1\">$tree{$node}[0]<br>($node)<input type=\"radio\" name=\"node_number\" value=\"$node\">\n"; $html .= "</font></div></td>\n"; } *************** *** 404,409 **** $html .= "</tr>\n"; } ! # $html .= "</table></td><td bgcolor=\"#00CC99\" width=\"1\"></td><td valign=\"top\">Node Properties Here...</td></tr></table></td></tr></table>\n"; ! $html .= "</table>\n"; return $html; } --- 392,396 ---- $html .= "</tr>\n"; } ! $html .= "</table></td><td bgcolor=\"#00CC99\" width=\"1\"></td><td valign=\"top\">Node Properties Here...</td></tr></table></td></tr></table>\n"; return $html; } |
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv13170 Modified Files: Tag: Rel-1_0_1-branch edit_atree1.pl sql_lib.pl edit_atree2.pl edit_atree1.html analysis_tree_lib.pl Log Message: analysis tree integrated with user_parameter_names user_parameter_values Index: edit_atree1.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.pl,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** edit_atree1.pl 12 Nov 2002 22:34:36 -0000 1.1.2.3 --- edit_atree1.pl 12 Dec 2002 14:59:56 -0000 1.1.2.4 *************** *** 10,21 **** main: { my $q = new CGI; my $tree_pk = $q->param("tree_pk"); ! my $dbh = new_connection(); my %tree = read_db($dbh, $tree_pk); my $atree = render_at(); my $select_node = select_node($dbh); (my $all_html) = readtemplate("edit_atree1.html"); --- 10,28 ---- main: { + my $properties; my $q = new CGI; my $tree_pk = $q->param("tree_pk"); ! my %ch = $q->Vars(); my $dbh = new_connection(); + my %tree = read_db($dbh, $tree_pk); my $atree = render_at(); my $select_node = select_node($dbh); + if (exists($ch{node_pk})) + { + $properties = build_properties($dbh, $ch{node_pk}); + } + (my $all_html) = readtemplate("edit_atree1.html"); *************** *** 26,29 **** --- 33,37 ---- $all_html =~ s/{select_node}/$select_node/sg; $all_html =~ s/{atree}/$atree/sg; + $all_html =~ s/{properties}/$properties/sg; print "Content-type: text/html\n\n$all_html"; *************** *** 31,32 **** --- 39,62 ---- $dbh->disconnect(); } + + sub build_properties + { + my $dbh = $_[0]; + my $node_pk = $_[1]; + my $results; + + my $sth = getq("get_upn", $dbh); # get names and values + $sth->execute($node_pk) || die "Query execute get_upn fails.\n$DBI::errstr\n"; + $results = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; + my $hr; # hashref + while( $hr = $sth->fetchrow_hashref()) + { + if ($hr->{up_type} eq "text") + { + $results .= "<tr><td valign=\"top\">$hr->{up_display_name} <br><br></td><td valign=\"top\"><input type=\"text\" name=\"$hr->{up_name}\" value=\"$hr->{up_value}\"></td></tr>\n"; + } + } + $results .= "</table>\n"; + return $results; + } + Index: sql_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sql_lib.pl,v retrieving revision 1.1.2.20 retrieving revision 1.1.2.21 diff -C2 -d -r1.1.2.20 -r1.1.2.21 *** sql_lib.pl 10 Dec 2002 19:19:21 -0000 1.1.2.20 --- sql_lib.pl 12 Dec 2002 14:59:59 -0000 1.1.2.21 *************** *** 276,279 **** --- 276,291 ---- $sql = "select file_name from file_info where fi_checksum=?"; } + elsif ($q_name eq "default_upv") + { + $sql = "select upn_pk,up_default from user_parameter_names where an_fk=?"; + } + elsif ($q_name eq "insert_upv") + { + $sql = "insert into user_parameter_values (node_fk, up_value, upn_fk) values (?,?,?)"; + } + elsif ($q_name eq "get_upn") + { + $sql = "select * from user_parameter_names,user_parameter_values where node_fk=? and upn_pk=upn_fk"; + } *************** *** 286,289 **** --- 298,302 ---- else { + my $temp = $DBI::errstr; # quiet compiler warnings die "Query $q_name not found in sql_lib.pl getq()\n"; } Index: edit_atree2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree2.pl,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** edit_atree2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.7 --- edit_atree2.pl 12 Dec 2002 14:59:59 -0000 1.1.2.8 *************** *** 21,25 **** $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; my $tree_pk = $q->param("tree_pk"); ! print "Location: $url?tree_pk=$tree_pk\n\n"; $dbh->commit(); --- 21,26 ---- $url =~ s/(.*)\/.*/$1\/edit_atree1.pl/; my $tree_pk = $q->param("tree_pk"); ! my $node_pk = $q->param("node_pk"); ! print "Location: $url?tree_pk=$tree_pk&node_pk=$node_pk\n\n"; $dbh->commit(); *************** *** 43,49 **** } my $active_node; ! if (exists($ch{node_number})) { ! $active_node = $ch{node_number}; } if (exists($ch{add})) --- 44,50 ---- } my $active_node; ! if (exists($ch{node_pk})) { ! $active_node = $ch{node_pk}; } if (exists($ch{add})) *************** *** 65,69 **** # input type=image sends .x and .y because (apparently) I didn't ask for an image map. # Just use the .x ! # The node_number radio button has to be clicked to set $active_node $tree{delete_node_pk} = $active_node; } --- 66,70 ---- # input type=image sends .x and .y because (apparently) I didn't ask for an image map. # Just use the .x ! # The node_pk radio button has to be clicked to set $active_node $tree{delete_node_pk} = $active_node; } Index: edit_atree1.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree1.html,v retrieving revision 1.1.2.7 retrieving revision 1.1.2.8 diff -C2 -d -r1.1.2.7 -r1.1.2.8 *** edit_atree1.html 25 Nov 2002 14:29:12 -0000 1.1.2.7 --- edit_atree1.html 12 Dec 2002 14:59:59 -0000 1.1.2.8 *************** *** 18,22 **** <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! {atree} <br> <br> <br> --- 18,30 ---- <input type="hidden" name="tree_pk" value="{tree_pk}"> <input type="hidden" name="root" value="{root}"> ! <table width="700" border="0" cellpadding="0" cellspacing="4"> ! <tr> ! <td width="50%"> ! {atree} <br> ! </td> ! <td bgcolor="#00CC99" width="1%"></td> ! <td valign="top" width="49%">Node Properties<br>{properties}</td> ! </tr> ! </table> <br> <br> Index: analysis_tree_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/analysis_tree_lib.pl,v retrieving revision 1.1.2.32 retrieving revision 1.1.2.33 diff -C2 -d -r1.1.2.32 -r1.1.2.33 *** analysis_tree_lib.pl 9 Dec 2002 14:29:11 -0000 1.1.2.32 --- analysis_tree_lib.pl 12 Dec 2002 14:59:59 -0000 1.1.2.33 *************** *** 32,37 **** $sth = getq("insert_tree_node", $dbh); $sth->execute($tree_pk,-1,$default_an_pk); # the tree pk, no parent, default analysis ! insert_security($dbh, $us_fk, $us_fk, 0); $dbh->commit; return $tree_pk; --- 32,49 ---- $sth = getq("insert_tree_node", $dbh); $sth->execute($tree_pk,-1,$default_an_pk); # the tree pk, no parent, default analysis ! my $node_pk = insert_security($dbh, $us_fk, $us_fk, 0); ! ! $sth = getq("default_upv", $dbh); ! $sth->execute($default_an_pk) || die "Query default_upv execute error. $DBI::errstr\n"; + my $sth_insert = getq("insert_upv", $dbh); + my $hr; + while ($hr = $sth->fetchrow_hashref()) + { + $sth_insert->execute($node_pk, + $hr->{up_default}, + $hr->{upn_pk}) || die "Query insert_upv execute error. $DBI::errstr\n"; + } + $dbh->commit; return $tree_pk; *************** *** 348,352 **** my $at_width = 75 * $tmax; my $outer_width = $at_width+300; ! $html = "<table width=\"$outer_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\"><tr><td width=\"$at_width\">\n"; $html .= "<table width=\"$at_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">"; for(my $xx=0; $xx<=$#table; $xx++) --- 360,364 ---- my $at_width = 75 * $tmax; my $outer_width = $at_width+300; ! # $html = "<table width=\"$outer_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\"><tr><td width=\"$at_width\">\n"; $html .= "<table width=\"$at_width\" border=\"0\" cellpadding=\"0\" cellspacing=\"4\">"; for(my $xx=0; $xx<=$#table; $xx++) *************** *** 381,385 **** } $html .= "<table border=\"0\" width=\"100%\"><tr><td width=\"50%\"><div align=\"left\">$del_string</div></td><td width\"50%\"><div align=\"right\"><input type=\"image\" border=\"0\" name=\"edit_$node\" src=\"../graphics/pencil.gif\" width=\"25\" height=\"25\"></div></td></tr></table>\n"; ! $html .= "<div align=\"center\"><font size=\"-1\">$tree{$node}[0]<br>($node)<input type=\"radio\" name=\"node_number\" value=\"$node\">\n"; $html .= "</font></div></td>\n"; } --- 393,397 ---- } $html .= "<table border=\"0\" width=\"100%\"><tr><td width=\"50%\"><div align=\"left\">$del_string</div></td><td width\"50%\"><div align=\"right\"><input type=\"image\" border=\"0\" name=\"edit_$node\" src=\"../graphics/pencil.gif\" width=\"25\" height=\"25\"></div></td></tr></table>\n"; ! $html .= "<div align=\"center\"><font size=\"-1\">$tree{$node}[0]<br>($node)<input type=\"radio\" name=\"node_pk\" value=\"$node\">\n"; $html .= "</font></div></td>\n"; } *************** *** 392,396 **** $html .= "</tr>\n"; } ! $html .= "</table></td><td bgcolor=\"#00CC99\" width=\"1\"></td><td valign=\"top\">Node Properties Here...</td></tr></table></td></tr></table>\n"; return $html; } --- 404,409 ---- $html .= "</tr>\n"; } ! # $html .= "</table></td><td bgcolor=\"#00CC99\" width=\"1\"></td><td valign=\"top\">Node Properties Here...</td></tr></table></td></tr></table>\n"; ! $html .= "</table>\n"; return $html; } |
From: <tw...@us...> - 2002-12-10 21:39:40
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv23594 Modified Files: Tag: Rel-1_0_1-branch download.html Log Message: inc version Index: download.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/Attic/download.html,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** download.html 10 Dec 2002 21:23:58 -0000 1.1.2.3 --- download.html 10 Dec 2002 21:39:37 -0000 1.1.2.4 *************** *** 41,45 **** features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_13 genex-server</code> <br> <br> <br> --- 41,45 ---- features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_14 genex-server</code> <br> <br> <br> |
From: <tw...@us...> - 2002-12-10 21:39:18
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv23332 Modified Files: Tag: Rel-1_0_1-branch qc.pl getfile.pl files_refresh.pl files.pl Log Message: more protocol fixes, fix some a hard coded hostname Index: qc.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/qc.pl,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** qc.pl 10 Dec 2002 14:17:18 -0000 1.1.2.3 --- qc.pl 10 Dec 2002 21:39:15 -0000 1.1.2.4 *************** *** 46,52 **** { my $allhtml = readfile("job.html"); $ch{seconds} = 60; $ch{files} = "temp.txt<br>out.txt<br>out.jpg<br>"; ! $ch{files_url} = "http://$ENV{HTTP_HOST}/webtools/files.pl"; $allhtml =~ s/{(.*?)}/$ch{$1}/g; print "Content-type: text/html\n\n$allhtml\n"; --- 46,57 ---- { my $allhtml = readfile("job.html"); + my $protocol = "http"; + if (exists($ENV{HTTPS})) # if it exists, the value is "on". If https is off, $ENV{HTTPS} doesn't exist. + { + $protocol = "https"; + } $ch{seconds} = 60; $ch{files} = "temp.txt<br>out.txt<br>out.jpg<br>"; ! $ch{files_url} = "$protocol://$ENV{HTTP_HOST}/webtools/files.pl"; $allhtml =~ s/{(.*?)}/$ch{$1}/g; print "Content-type: text/html\n\n$allhtml\n"; Index: getfile.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/getfile.pl,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** getfile.pl 10 Dec 2002 19:19:20 -0000 1.1.2.3 --- getfile.pl 10 Dec 2002 21:39:15 -0000 1.1.2.4 *************** *** 116,119 **** --- 116,124 ---- else { + my $protocol = "http"; + if (exists($ENV{HTTPS})) # if it exists, the value is "on". If https is off, $ENV{HTTPS} doesn't exist. + { + $protocol = "https"; + } print "Content-type: text/html\n\n<html>\n<title>Results</title>\n<body bgcolor=\"#FFFFFF\">\n"; print "<!--message: $::mesg\n -->\n"; *************** *** 126,130 **** print "<li>The file may have been purged during the routine cleanup.</li>\n"; print "</ul>\n"; ! print "<br><a href=\"http://genes.med.virginia.edu/webtools/\">GeneX Members Home</a>\n"; print "</body>\n</html>\n"; } --- 131,135 ---- print "<li>The file may have been purged during the routine cleanup.</li>\n"; print "</ul>\n"; ! print "<br><a href=\"$protocol://$ENV{SERVER_NAME}/webtools/\">GeneX Members Home</a>\n"; print "</body>\n</html>\n"; } Index: files_refresh.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/files_refresh.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** files_refresh.pl 11 Nov 2002 20:26:10 -0000 1.1.2.2 --- files_refresh.pl 10 Dec 2002 21:39:15 -0000 1.1.2.3 *************** *** 29,32 **** --- 29,37 ---- my %sh; $sh{http_host} = $ENV{HTTP_HOST}; + $sh{http_protocol} = "http"; + if (exists($ENV{HTTPS})) # if it exists, the value is "on". If https is off, $ENV{HTTPS} doesn't exist. + { + $sh{http_protocol} = "https"; + } my %pk2name; while(($sh{fi_pk}, $sh{file_name}, $sh{fi_checksum}, $sh{fi_comments}) = $sth->fetchrow_array()) *************** *** 48,52 **** $sth->finish(); ! print "Location: http://$sh{http_host}/webtools/files.pl\n\n"; $dbh->commit(); --- 53,57 ---- $sth->finish(); ! print "Location: $sh{http_protocol}://$sh{http_host}/webtools/files.pl\n\n"; $dbh->commit(); Index: files.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/files.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** files.pl 11 Nov 2002 20:26:10 -0000 1.1.2.2 --- files.pl 10 Dec 2002 21:39:15 -0000 1.1.2.3 *************** *** 35,38 **** --- 35,43 ---- my %sh; $sh{http_host} = $ENV{HTTP_HOST}; + $sh{http_protocol} = "http"; + if (exists($ENV{HTTPS})) # if it exists, the value is "on". If https is off, $ENV{HTTPS} doesn't exist. + { + $sh{http_protocol} = "https"; + } while(($sh{fi_pk}, $sh{file_name}, $sh{fi_checksum}, $sh{fi_comments}) = $sth->fetchrow_array()) { *************** *** 53,57 **** my $dir_stem = "$opts{USER_DATA_DIR}/$ENV{REMOTE_USER}"; $sh{file_name} =~ s/\Q$dir_stem\E//; ! $sh{href} = "http://$ENV{SERVER_NAME}/webtools/getfile.pl?key=$sh{fi_checksum}"; ($sh{us_fk}, $sh{login}) = get_owner($dbh, $sh{fi_pk}); ($sh{us_fk}, $sh{group_name}) = get_group($dbh, $sh{fi_pk}); --- 58,62 ---- my $dir_stem = "$opts{USER_DATA_DIR}/$ENV{REMOTE_USER}"; $sh{file_name} =~ s/\Q$dir_stem\E//; ! $sh{href} = "$sh{http_protocol}://$ENV{SERVER_NAME}/webtools/getfile.pl?key=$sh{fi_checksum}"; ($sh{us_fk}, $sh{login}) = get_owner($dbh, $sh{fi_pk}); ($sh{us_fk}, $sh{group_name}) = get_group($dbh, $sh{fi_pk}); |
From: <tw...@us...> - 2002-12-10 21:24:01
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv17544 Modified Files: Tag: Rel-1_0_1-branch download.html Log Message: bump version number Index: download.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/Attic/download.html,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** download.html 10 Dec 2002 19:28:38 -0000 1.1.2.2 --- download.html 10 Dec 2002 21:23:58 -0000 1.1.2.3 *************** *** 41,45 **** features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_12 genex-server</code> <br> <br> <br> --- 41,45 ---- features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_13 genex-server</code> <br> <br> <br> |
From: <tw...@us...> - 2002-12-10 21:18:25
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv15637 Modified Files: Tag: Rel-1_0_1-branch sessionlib.pl Log Message: needed an patch to get the protocol name correct. Index: sessionlib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sessionlib.pl,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** sessionlib.pl 10 Dec 2002 19:19:20 -0000 1.1.2.16 --- sessionlib.pl 10 Dec 2002 21:18:22 -0000 1.1.2.17 *************** *** 1416,1420 **** # Use a lovely reverse regex to remove trailing filename. # ! my $url = "http://$ENV{SERVER_NAME}$ENV{REQUEST_URI}"; $url = reverse($url); $url =~ s/(.*?)\///; --- 1416,1425 ---- # Use a lovely reverse regex to remove trailing filename. # ! my $protocol = "http"; ! if (exists($ENV{HTTPS})) ! { ! $protocol = "https"; ! } ! my $url = "$protocol://$ENV{SERVER_NAME}$ENV{REQUEST_URI}"; $url = reverse($url); $url =~ s/(.*?)\///; |
From: <tw...@us...> - 2002-12-10 19:32:10
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv7705 Removed Files: Tag: Rel-1_0_1-branch configure.pl.in Log Message: removed. --- configure.pl.in DELETED --- |
From: <tw...@us...> - 2002-12-10 19:31:49
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv7553 Removed Files: Tag: Rel-1_0_1-branch Adding_New_GeneX-Apps.txt Log Message: removed from 1.x --- Adding_New_GeneX-Apps.txt DELETED --- |
From: <tw...@us...> - 2002-12-10 19:30:11
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv6947 Removed Files: Tag: Rel-1_0_1-branch installation.scripts Log Message: removed. --- installation.scripts DELETED --- |
From: <tw...@us...> - 2002-12-10 19:28:41
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv6154 Modified Files: Tag: Rel-1_0_1-branch download.html Log Message: update. Index: download.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/Attic/download.html,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** download.html 10 Dec 2002 19:21:47 -0000 1.1.2.1 --- download.html 10 Dec 2002 19:28:38 -0000 1.1.2.2 *************** *** 41,45 **** features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_11 genex-server</code> <br> <br> <br> --- 41,45 ---- features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex ! co -r Rel-1_5_12 genex-server</code> <br> <br> <br> |
From: <tw...@us...> - 2002-12-10 19:27:48
|
Update of /cvsroot/genex/genex-server/site/graphics In directory sc8-pr-cvs1:/tmp/cvs-serv5799 Added Files: Tag: Rel-1_0_1-branch pencil.gif trash.gif Log Message: new graphics. --- NEW FILE: pencil.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: trash.gif --- (This appears to be a binary file; contents omitted.) |
From: <tw...@us...> - 2002-12-10 19:24:17
|
Update of /cvsroot/genex/genex-server In directory sc8-pr-cvs1:/tmp/cvs-serv4482 Modified Files: Tag: Rel-1_0_1-branch makefile Log Message: minor tweaks. Index: makefile =================================================================== RCS file: /cvsroot/genex/genex-server/Attic/makefile,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** makefile 28 Oct 2002 19:53:49 -0000 1.1.2.2 --- makefile 10 Dec 2002 19:24:14 -0000 1.1.2.3 *************** *** 1,3 **** ! all : repository symlinks html webtools REP = $(shell ./install_lib.pl -R) --- 1,3 ---- ! all : repository web_root symlinks html webtools REP = $(shell ./install_lib.pl -R) *************** *** 8,11 **** --- 8,27 ---- -chown apache:users $(REP) -chmod 775 $(REP) + + WEB = $(shell ./install_lib.pl -D) + web_root : $(WEB) + + $(WEB) : + -mkdir $(WEB) + -chgrp users $(WEB) + -chmod 775 $(WEB) + -mkdir $(WEB)/webtools + -chgrp users $(WEB)/webtools + -chmod 775 $(WEB)/webtools + -mkdir $(WEB)/graphics + -chgrp users $(WEB)/graphics + -chmod 775 $(WEB)/graphics + + # |
From: <tw...@us...> - 2002-12-10 19:21:50
|
Update of /cvsroot/genex/genex-server/site In directory sc8-pr-cvs1:/tmp/cvs-serv3654 Added Files: Tag: Rel-1_0_1-branch download.html Log Message: downloading Genex instructions in a separate file. --- NEW FILE: download.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE>GeneX Home Page</TITLE> </HEAD> <BODY bgcolor="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" link="#006633" vlink="#666633"> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="110"><font face="Verdana, Arial, Helvetica, sans-serif" size="+1"><a href="./">GeneX</a></font></td> <td width="490"><font face="Verdana, Arial, Helvetica, sans-serif" size="+1"> Downloading Genex<br> </font></td> </tr> </table> <br> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10"> </td> <td width="100"> </td> <td width="490"> <p>You can use the following CVS commands to download the most recent stable version of GeneX 1.x, or the most recent version in the 1.x branch. Each of the following command is a looong line.<br> </p> <ol> <li>Change directory to your desired location for the GeneX installation files. This will not be the final installation directory. <li>Enter only one of these commands at the shell prompt. GeneX 1.x is most compatible with RedHat 7 or newer systems. <li>We recommend that you use the stable release. The feature set is nearly complete, with the exception of the Analysis Trees. </ol> <p>The commands give below are long, and have wrapped to several lines. When entering these commands at the Linux prompt, enter the command on one line.<br> <br> The current stable release (recommended since it has all the interesting features, and is stable): </p> <code>cvs -d:pserver:ano...@cv...:/cvsroot/genex co -r Rel-1_5_11 genex-server</code> <br> <br> <br> The latest development release: <br> <br> <samp>cvs -d:pserver:ano...@cv...:/cvsroot/genex co -r Rel-1_0_1-branch genex-server </samp><br> </td> </tr> </table> <p> </p> <p> </p> </BODY> </HTML> |
From: <tw...@us...> - 2002-12-10 19:19:24
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv2572 Modified Files: Tag: Rel-1_0_1-branch config.pl getfile.pl sessionlib.pl sql_lib.pl Log Message: get check sums from the db. Index: config.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/config.pl,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** config.pl 10 Dec 2002 14:17:18 -0000 1.1.2.3 --- config.pl 10 Dec 2002 19:19:20 -0000 1.1.2.4 *************** *** 92,95 **** --- 92,97 ---- $all =~ s/$src{GENEX_EXTRALIBS}/$dest{GENEX_EXTRALIBS}/g; } + $all =~ s/%%(.*?)%%/$dest{$1}/sg; + print "opening $rel_dir/$file\n"; Index: getfile.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/getfile.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** getfile.pl 10 Dec 2002 14:17:18 -0000 1.1.2.2 --- getfile.pl 10 Dec 2002 19:19:20 -0000 1.1.2.3 *************** *** 5,9 **** use CGI qw(-debug :standard); # version 2.7 require explicitly enabling debug. ! use Fcntl ':flock'; # import LOCK_* constants # require "./cgi/tomslib.pl"; --- 5,9 ---- use CGI qw(-debug :standard); # version 2.7 require explicitly enabling debug. ! # use Fcntl ':flock'; # import LOCK_* constants # require "./cgi/tomslib.pl"; *************** *** 15,32 **** # - # This script take 1 or 2 cgi parameters. - # The key is required, and if that is the only param, we check - # for the key in a %chash which is generated from the checksums.dat file. - # If we get a match, we stop looking, and after some other bookkeeping - # we print the file to stdout with a appropriate HTTP header. - # - # If there is no match, we do an md5sum on the file, and add it to %chash. - # At the end we print %chash back to checksums.dat, thus adding any new files. - # Of course, if we get a match, and there were new files, they won't be added - # until someone requests them. The first requestor of a file pays the price of - # generating the new md5sum. Even this is pretty quick. - # - # A cron job runs clean_checksums.pl nightly. - # # If you -e results/$id and $id is "" then you get true, which is bad. # --- 15,18 ---- *************** *** 35,44 **** # - my $checksum_filename = "checksums.dat"; my $md5sum = "/usr/bin/md5sum"; main: { - # globals(); my $query = new CGI; my $key = $query->param("key"); # an md5 checksum key --- 21,28 ---- *************** *** 48,55 **** my @filelist; my %chash; ! my %opts = read_optionsdotreminders(); ! ! chdir("$opts{USER_DATA_DIR}/$ENV{REMOTE_USER}"); if ($key =~ m/\./) --- 32,42 ---- my @filelist; my %chash; ! # my %opts = read_optionsdotreminders(); ! my $dbh = new_connection(); ! # ! # config.pl, the perl script installer resolves %%XYZ%% fields. ! # ! chdir("%%USER_DATA_DIR%%/$ENV{REMOTE_USER}"); if ($key =~ m/\./) *************** *** 65,130 **** { # ! # Try to find our file's matching checksum in %chash which we ! # generate from the data file. ! # If it doesn't exist in there, then use brute force to ! # look at each *.html and *.pdf and check it for a match against ! # the given id # ! # Perl's exists() function is very fast. ! # ! # Use the older -o since Compaq's Unix is ancient. ! # ! # @filelist = `find . -name "*.html" -o -name "*.pdf" -o -name "*.txt" -o -name "*.jpeg" -o -name "*.jpg"`; ! @filelist = `find . -type f `; ! chomp(@filelist); ! ! open(IN, "< $checksum_filename"); ! my $csum; ! my $fname; ! while(my $line = <IN>) ! { ! chomp($line); ! ($fname, $csum) = split('\t', $line); ! $chash{$csum} = $fname; ! $chash{$fname} = $csum; ! } ! close(IN); ! ! my $xx; ! for($xx=0; $xx <= $#filelist; $xx++) { ! $file = $filelist[$xx]; ! # ! # jul 23 2002 twl8n ! # Fixed so that found but bad keys fall through to the else ! # to be recalculated. If the file were checked (and the cache created) ! # and the file was updated afterwards, it would say not found. ! # ! if (exists($chash{$file}) && ($key eq $chash{$file})) ! { ! $found = 1; ! mread_file("$file"); ! $xx = $#filelist+1; # exit the loop ! } ! else ! { ! $file_md5 = `$md5sum $file`; ! $file_md5 =~ s/(.*?) .*/$1/s; ! $chash{$file_md5} = $filelist[$xx]; ! $chash{$filelist[$xx]} = $file_md5; ! if ($file_md5 eq $key) ! { ! $found = 1; ! mread_file("$file"); ! $xx = $#filelist+1; # exit the loop ! } ! } } } ! update_chsums(\%chash, \@filelist); ! if ($found == 1) { if ($file =~ m/\.html/) { --- 52,81 ---- { # ! # There is a small nit with checksums. Identical files (different name, same contents) have ! # identical checksums. We will always return the correct contents, however, it is ! # possible that the file name will not be what the user expects. ! # We could double check the file name. # ! my $sth = getq("match_checksum", $dbh); ! $sth->execute($key); ! if ($sth->rows() >= 1) { ! $found = 1; ! ($file) = $sth->fetchrow_array(); ! mread_file($file); } + $sth->finish(); + $dbh->disconnect(); } ! # No need to update checksums in GeneX. If they aren't up to date, something else is seriously wrong. ! if ($found == 1) { + my $stem = $file; + if ($file =~ m/.*\/(.*)/) + { + $stem = $1; + } if ($file =~ m/\.html/) { *************** *** 156,161 **** else { - $file =~ m/.*\/(.*)/; - my $stem = $1; print "Content-type: application/octet-stream\n"; print "Content-disposition: attachment; filename=\"$stem\"\n"; --- 107,110 ---- *************** *** 182,209 **** } - sub update_chsums - { - my %chash = %{$_[0]}; - my @filelist = @{$_[1]}; - my $file; - - # - # Write out the (possibly) new checksums; - # I think if someone else wrote to the file, we might gain or lose an entry - # by overwriting later. The main concern is to avoid data corruption. - # - open(OUT, "> $checksum_filename"); - flock(OUT, LOCK_EX); - foreach $file (@filelist) - { - if (exists($chash{$file})) - { - print OUT "$file\t$chash{$file}\n"; - } - } - flock(OUT, LOCK_UN); - close(OUT); - chmod(0770, $checksum_filename); - } # --- 131,134 ---- Index: sessionlib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sessionlib.pl,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -C2 -d -r1.1.2.15 -r1.1.2.16 *** sessionlib.pl 10 Dec 2002 14:17:18 -0000 1.1.2.15 --- sessionlib.pl 10 Dec 2002 19:19:20 -0000 1.1.2.16 *************** *** 575,579 **** if (! open(OR, "< options.reminders")) { ! print "Could not open options.reminders\nPlease see INSTALL, or copy options.txt to options.reminders\nand edit options.reminders as necessary for your site\nExiting.\n"; exit(); } --- 575,583 ---- if (! open(OR, "< options.reminders")) { ! my $pwd = `pwd`; ! print "Can't open $pwd/options.reminders\n"; ! open(ERR, "> err.txt") || die "Can't open $pwd/err.txt either!\n"; ! print ERR "Could not open options.reminders\nPlease see INSTALL, or copy options.txt to options.reminders\nand edit options.reminders as necessary for your site\nExiting."; ! close(ERR); exit(); } *************** *** 1249,1265 **** my %Vars = read_optionsdotreminders(); - # my ($class,%args) = @_; - - # we default these to the global variables in case the user has - # changed them to affect all connections - #my $USER = $args{USER} || $Bio::Genex::USER; - # my $PASSWORD = $args{PASSWORD} || $Bio::Genex::PASSWORD; - # my $DBNAME = $args{DBNAME} || $Bio::Genex::DBNAME; - # my $HOST = $args{HOST} || $Bio::Genex::HOST; - # my $PORT = $args{PORT} || $Bio::Genex::PORT; - # my $DBMS = $args{DBMS} || $Bio::Genex::DBMS; - # my $LOCAL = $args{LOCAL} || $Bio::Genex::LOCAL; - # my $TRANSACTION = $args{TRANSACTION} || $Bio::Genex::TRANSACTION; - my $dbh; # --- 1253,1256 ---- *************** *** 1275,1279 **** $Vars{GENEX_SU_PASSWORD}, $dbargs); - if ($DBI::err) { --- 1266,1269 ---- *************** *** 1281,1302 **** } - # bless $dbh, $class; - - # aug 9 2002 Tom - # None of these properties show up in the DBI man page, so I commented the out. - # - # $dbh->db_name($Vars{DB_NAME}); - # $dbh->user($Vars{GENEX_SU_USER}); - # $dbh->transaction(1); - # $dbh->dbms($Vars{GENEX_DBMS}); - # $dbh->db_host($Vars{GENEX_HOST}); - # $dbh->db_port($Vars{GENEX_PORT}); - return $dbh; - - # return Bio::Genex::current_connection(USER=>$Bio::Genex::SU_USERNAME, - # PASSWORD=>$Bio::Genex::SU_PASSWORD, - # TRANSACTION=>1); - } --- 1271,1275 ---- Index: sql_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sql_lib.pl,v retrieving revision 1.1.2.19 retrieving revision 1.1.2.20 diff -C2 -d -r1.1.2.19 -r1.1.2.20 *** sql_lib.pl 6 Dec 2002 16:20:27 -0000 1.1.2.19 --- sql_lib.pl 10 Dec 2002 19:19:21 -0000 1.1.2.20 *************** *** 271,274 **** --- 271,279 ---- file_name"; } + elsif ($q_name eq "match_checksum") + { + # A security check here might be nice. + $sql = "select file_name from file_info where fi_checksum=?"; + } |
From: <tw...@us...> - 2002-12-10 14:17:21
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv2431 Modified Files: Tag: Rel-1_0_1-branch load_data2.pl edit_qc2.pl config.pl sessionlib.pl getfile.pl get_data2.pl get_data1.html edit_study2.pl qc.pl edit_atree2.pl edit_am2.pl Log Message: atree create had a bug, and a missing commit. several of the xyz2.pl scripts needed a fix (\d+) to (\d+)$ to force exact match all mdir calls changed to perl umask and mkdir getfile.pl fixed to recognize more extensions, force file name on downloads, stop html wrapping. Index: load_data2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/load_data2.pl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** load_data2.pl 24 Oct 2002 18:26:53 -0000 1.1.2.1 --- load_data2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.2 *************** *** 71,75 **** if (! -e $out_path) { ! `mkdir -p $out_path --mode=0770`; } if (-e $ch{in_file}) --- 71,77 ---- if (! -e $out_path) { ! umask(0002); ! mkdir($out_path, 0770); ! # `mkdir -p $out_path --mode=0770`; } if (-e $ch{in_file}) Index: edit_qc2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_qc2.pl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** edit_qc2.pl 24 Oct 2002 18:26:53 -0000 1.1.2.1 --- edit_qc2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.2 *************** *** 69,73 **** if (! -d $hybridization_name) { ! `mkdir $hybridization_name --mode=0770`; } chdir("$hybridization_name"); --- 69,75 ---- if (! -d $hybridization_name) { ! umask(0002); ! mkdir($hybridization_name, 0770); ! # `mkdir $hybridization_name --mode=0770`; } chdir("$hybridization_name"); Index: config.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/config.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** config.pl 24 Oct 2002 19:19:28 -0000 1.1.2.2 --- config.pl 10 Dec 2002 14:17:18 -0000 1.1.2.3 *************** *** 61,65 **** if (! -e $rel_dir) { ! `mkdir $rel_dir`; } --- 61,67 ---- if (! -e $rel_dir) { ! umask(0002); ! mkdir($rel_dir, 0770); ! # `mkdir $rel_dir`; } Index: sessionlib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sessionlib.pl,v retrieving revision 1.1.2.14 retrieving revision 1.1.2.15 diff -C2 -d -r1.1.2.14 -r1.1.2.15 *** sessionlib.pl 9 Dec 2002 14:29:11 -0000 1.1.2.14 --- sessionlib.pl 10 Dec 2002 14:17:18 -0000 1.1.2.15 *************** *** 1784,1791 **** # # Create the user's GeneX data directory. ! # The permissions setting for Perl's mkdir command doesn't seem to work correctly. ! # Setting 770 turned into 750, so I switched to the Linux utility. # ! `mkdir -m 770 $opts{USER_DATA_DIR}/$login_name`; `chgrp apache $opts{USER_DATA_DIR}/$login_name`; --- 1784,1792 ---- # # Create the user's GeneX data directory. ! # The permissions setting for Perl's mkdir command depends on the umask, which defaulted to 022. ! # Setting 770 turned into 750. The Linux mkdir ignores the umask. # ! umask(0002); ! mkdir("$opts{USER_DATA_DIR}/$login_name", 0770); `chgrp apache $opts{USER_DATA_DIR}/$login_name`; Index: getfile.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/getfile.pl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** getfile.pl 24 Oct 2002 18:26:53 -0000 1.1.2.1 --- getfile.pl 10 Dec 2002 14:17:18 -0000 1.1.2.2 *************** *** 76,80 **** # # @filelist = `find . -name "*.html" -o -name "*.pdf" -o -name "*.txt" -o -name "*.jpeg" -o -name "*.jpg"`; ! @filelist = `find . `; chomp(@filelist); --- 76,80 ---- # # @filelist = `find . -name "*.html" -o -name "*.pdf" -o -name "*.txt" -o -name "*.jpeg" -o -name "*.jpg"`; ! @filelist = `find . -type f `; chomp(@filelist); *************** *** 142,155 **** print "$::all_lines"; } else { ! print "Content-type: text/html\n\n"; ! print "<html>\n<title>Results</title>\n<body bgcolor=\"#FFFFFF\">\n"; ! print "<!--message: $::mesg\n -->\n"; ! ! print "<pre>\n"; print "$::all_lines"; - print "</pre>\n"; - print "</body>\n</html>\n"; } } --- 142,166 ---- print "$::all_lines"; } + elsif ($file =~ m/\.txt|.rpt|.exp/) + { + # + # Should this have a full header, since IE doesn't support text/plain? + # Probably. + # + print "Content-Type: text/plain\n"; + print "Content-disposition: attachment; filename=\"$stem\"\n"; + print "Content-transfer-encoding: binary\n"; + print "Content-length: $::file_size\n\n"; + print "$::all_lines"; + } else { ! $file =~ m/.*\/(.*)/; ! my $stem = $1; ! print "Content-type: application/octet-stream\n"; ! print "Content-disposition: attachment; filename=\"$stem\"\n"; ! print "Content-transfer-encoding: binary\n"; ! print "Content-length: $::file_size\n\n"; print "$::all_lines"; } } *************** *** 206,215 **** my $filename = $_[0]; my @statres = stat($filename); ! my $filesize = $statres[7]; $::all_lines = ""; if ( open(IN, "< $filename") ) { ! sysread(IN, $::all_lines, $filesize); close(IN); } --- 217,226 ---- my $filename = $_[0]; my @statres = stat($filename); ! $::file_size = $statres[7]; $::all_lines = ""; if ( open(IN, "< $filename") ) { ! sysread(IN, $::all_lines, $::file_size); close(IN); } Index: get_data2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/get_data2.pl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** get_data2.pl 19 Nov 2002 20:18:15 -0000 1.1.2.1 --- get_data2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.2 *************** *** 20,32 **** # my $al_fk = check_chip_type(\%ana); # Write a labels file. # Write the data file. ! write_data_file($dbh, \%ana); print "Content-type: text/html\n\n<html><body>get_data2.pl</body></html>\n"; $dbh->disconnect(); } sub build_ana_hash { --- 20,67 ---- # my $al_fk = check_chip_type(\%ana); + # Create a valid file name + my $file_name = create_valid_fn($dbh, $q); + # Write a labels file. # Write the data file. ! write_data_file($dbh, \%ana, $file_name, $q->param("comments")); print "Content-type: text/html\n\n<html><body>get_data2.pl</body></html>\n"; + $dbh->commit(); $dbh->disconnect(); } + sub create_valid_fn + { + my $dbh = $_[0]; + my $q = $_[1]; + my %opts = read_optionsdotreminders(); + my $fn = $q->param("file_name"); + $fn =~ s/[^a-zA-Z0-9]/_/g; # change all non-alpha numerics to underscore + # don't change case. We don't really care, and maybe users like uppercase. + if (length($fn) == 0) + { + $fn = "data_export"; + } + + + # + # If the file name exists, try _1 through _10 as an attempt to get a unique file name. + # If we fail at that, then die. This can be make more sophisticated later. + # + $fn = "$opts{USER_DATA_DIR}/$ENV{REMOTE_USER}/$fn"; + my $test_fn = "$fn.txt"; + for(my $xx = 1; ($xx<11) && (-e $test_fn); $xx++) + { + $test_fn = "$fn" . "_$xx.txt"; + } + if (-e $test_fn) + { + die "File name $test_fn exists. I'm unwilling to go higher than _10<br>\n"; + } + return $test_fn; + } + sub build_ana_hash { *************** *** 41,45 **** foreach my $key (keys (%ch)) { ! if ($key =~ m/am_pk_(\d+)/) { my $ch_key = "ec_pk_$1"; --- 76,80 ---- foreach my $key (keys (%ch)) { ! if ($key =~ m/am_pk_(\d+)$/) # force full match to the end! { my $ch_key = "ec_pk_$1"; *************** *** 63,66 **** --- 98,103 ---- my $dbh = $_[0]; my %ana = %{$_[1]}; + my $file_name = $_[2]; + my $comments = $_[3]; my @am_pk_list; *************** *** 92,97 **** my $am_pk = $am_pk_list[$xx]; $signal_name = "am_fk_$am_pk.signal"; ! $signal_select = "(select signal,usf_fk from am_spots_mas5 where am_fk=$am_pk) as am_fk_$am_pk"; ! $join = "am_fk_$am_pk.usf_fk=al_spots.als_pk"; if ($xx > 0) { --- 129,134 ---- my $am_pk = $am_pk_list[$xx]; $signal_name = "am_fk_$am_pk.signal"; ! $signal_select = "(select signal,als_fk from am_spots_mas5 where am_fk=$am_pk) as am_fk_$am_pk"; ! $join = "am_fk_$am_pk.als_fk=al_spots.als_pk"; if ($xx > 0) { *************** *** 107,114 **** # write_log("$sql_template"); my $sth = $dbh->prepare($sql_template) || die "gd prep: $sql_template\n$DBI::errstr\n"; ! $sth->execute(); my @data; # a single record ! open(OUT, "> /var/genres/twl8n/demo.dat") || die "Can't open demo.dat\n"; while( @data = $sth->fetchrow_array()) { --- 144,152 ---- # write_log("$sql_template"); + # fetch and write data to a file my $sth = $dbh->prepare($sql_template) || die "gd prep: $sql_template\n$DBI::errstr\n"; ! $sth->execute() || die "$sql_template\n$DBI::errstr\n"; my @data; # a single record ! open(OUT, "> $file_name") || die "Can't open $file_name\n"; while( @data = $sth->fetchrow_array()) { *************** *** 122,127 **** } close(OUT); ! ! # fetch and write data to a file } --- 160,166 ---- } close(OUT); ! $sth->finish() || die "finish error $DBI::errstr\n"; ! my $us_fk = get_us_fk($dbh); ! fi_update($dbh, $us_fk, $us_fk, $file_name, $comments); } *************** *** 139,143 **** foreach my $am_pk (@{$ana{$ec_pk}}) { ! # select spot_identifier,signal from am_spots_mas5, al_spots where am_spots_mas5.usf_fk=als_pk and am_fk=$am_pk; # push(@{$data{$spot_identifier}}, $signal); } --- 178,182 ---- foreach my $am_pk (@{$ana{$ec_pk}}) { ! # select spot_identifier,signal from am_spots_mas5, al_spots where am_spots_mas5.als_fk=als_pk and am_fk=$am_pk; # push(@{$data{$spot_identifier}}, $signal); } Index: get_data1.html =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/get_data1.html,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** get_data1.html 21 Nov 2002 21:48:47 -0000 1.1.2.1 --- get_data1.html 10 Dec 2002 14:17:18 -0000 1.1.2.2 *************** *** 15,20 **** <br> Comments:<br> ! <input type="text" name="comments" value="{comments}" size=50> <br> <br> --- 15,22 ---- <br> Comments:<br> ! <input type="text" name="comments" value="{comments}" size=50 maxlength="128"> <br> + Filename:<br> + <input type="text" name="file_name" value="{file_name}" size=30 maxlength="30"> <br> Index: edit_study2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_study2.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 *** edit_study2.pl 6 Dec 2002 16:19:13 -0000 1.1.2.4 --- edit_study2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.5 *************** *** 37,41 **** } my $pec = $q->param("paste_exp_condition"); ! write_log("pec: $pec"); if ($pec) { --- 37,41 ---- } my $pec = $q->param("paste_exp_condition"); ! # write_log("pec: $pec"); if ($pec) { *************** *** 104,108 **** foreach my $key (keys(%all_ch)) { ! if ($key =~ m/delete_(\d+)/) { push(@del, $1); --- 104,108 ---- foreach my $key (keys(%all_ch)) { ! if ($key =~ m/delete_(\d+)$/) # force full suffix match! { push(@del, $1); *************** *** 112,116 **** foreach my $del (@del) { - my $suffix = $1; my $val = $all_ch{"ec_pk_$del"}; --- 112,115 ---- *************** *** 137,141 **** foreach my $key (keys(%all_ch)) { ! $key =~ m/_(\d+)$/; my $suffix = $1; if ($suffix > $exp_count) --- 136,140 ---- foreach my $key (keys(%all_ch)) { ! $key =~ m/_(\d+)$/; # force full suffix match! my $suffix = $1; if ($suffix > $exp_count) *************** *** 163,169 **** next; } foreach my $key (keys(%all_ch)) { ! if ($key =~ m/(.*)_$xx/) { $ch{$1} = $all_ch{$key}; --- 162,169 ---- next; } + foreach my $key (keys(%all_ch)) { ! if ($key =~ m/(.*)_$xx$/) # force full suffix match! { $ch{$1} = $all_ch{$key}; *************** *** 353,357 **** $sth->finish(); my $ec_pk = insert_security($dbh, $us_fk, $us_fk, 0); ! write_log("inserted $ec_pk with sty_fk $r_hr->{sty_fk}"); return $message; } --- 353,357 ---- $sth->finish(); my $ec_pk = insert_security($dbh, $us_fk, $us_fk, 0); ! # write_log("inserted $ec_pk with sty_fk $r_hr->{sty_fk}"); return $message; } Index: qc.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/qc.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** qc.pl 21 Nov 2002 21:48:47 -0000 1.1.2.2 --- qc.pl 10 Dec 2002 14:17:18 -0000 1.1.2.3 *************** *** 84,88 **** foreach my $key (keys (%ch)) { ! if ($key =~ m/am_pk_(\d+)/) { $xx = $1; --- 84,88 ---- foreach my $key (keys (%ch)) { ! if ($key =~ m/am_pk_(\d+)$/) { $xx = $1; Index: edit_atree2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_atree2.pl,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -C2 -d -r1.1.2.6 -r1.1.2.7 *** edit_atree2.pl 12 Nov 2002 22:34:36 -0000 1.1.2.6 --- edit_atree2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.7 *************** *** 36,40 **** { # write_log("parse CGI key:$key"); ! if ($key =~ m/name_(\d+)/) { $tree{$1}[0] = $ch{$key}; --- 36,40 ---- { # write_log("parse CGI key:$key"); ! if ($key =~ m/name_(\d+)$/) # force full match! { $tree{$1}[0] = $ch{$key}; Index: edit_am2.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/edit_am2.pl,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** edit_am2.pl 21 Nov 2002 18:48:48 -0000 1.1.2.2 --- edit_am2.pl 10 Dec 2002 14:17:18 -0000 1.1.2.3 *************** *** 81,85 **** foreach my $key (keys(%all_ch)) { ! if ($key =~ m/delete_(\d+)/) { my $suffix = $1; # used below to clean up hash keys --- 81,85 ---- foreach my $key (keys(%all_ch)) { ! if ($key =~ m/delete_(\d+)$/) { my $suffix = $1; # used below to clean up hash keys |
From: <ki...@us...> - 2002-12-09 19:50:11
|
Update of /cvsroot/genex/genex-server/python In directory sc8-pr-cvs1:/tmp/cvs-serv22725 Added Files: README Log Message: description of files --- NEW FILE: README --- Description of Files: genex-server/python/Bio/Genex/Config.py - Function which converts the Genex 2.x config hash in Config.pm to a python dictionary. genex-server/python/Bio/Genex/Parse/agilent.py - Agilent Parser genex-server/python/Bio/Genex/Parse/genepix.py - GenePix GPR Parser genex-server/python/Bio/Genex/Widgets/tab2AD.py - GUI Widget for running tab2AD.pl genex-server/python/bin/fixarray-agilent.py - prepares file for tab2AD.pl which uses it to create MAGE-ML ArrayDesigns (needs work) genex-server/python/bin/fixarray-gpr.py - prepares file for tab2AD.pl which uses it to create MAGE-ML ArrayDesigns genex-server/python/bin/tab2ADgui.py - GUI for running tab2AD.pl genex-server/python/setup.py - distutils setup script for installing the BioGenex package and the scripts in the bin/ directory. |
From: <tw...@us...> - 2002-12-09 14:29:15
|
Update of /cvsroot/genex/genex-server/site/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv25834 Modified Files: Tag: Rel-1_0_1-branch analysis_tree_lib.pl sessionlib.pl admin_cli.pl Log Message: fixed a bug due to Perl's mkdir removed some debugs Index: analysis_tree_lib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/analysis_tree_lib.pl,v retrieving revision 1.1.2.31 retrieving revision 1.1.2.32 diff -C2 -d -r1.1.2.31 -r1.1.2.32 *** analysis_tree_lib.pl 2 Dec 2002 14:35:13 -0000 1.1.2.31 --- analysis_tree_lib.pl 9 Dec 2002 14:29:11 -0000 1.1.2.32 *************** *** 356,364 **** for(my $yy=0; $yy<=$tmax; $yy++) { ! write_log("$xx,$yy:$table[$xx][$yy]"); if (defined($table[$xx][$yy])) { my $node = $table[$xx][$yy]; ! write_log("node: $node"); if ($node =~ m/img/) { --- 356,364 ---- for(my $yy=0; $yy<=$tmax; $yy++) { ! # write_log("$xx,$yy:$table[$xx][$yy]"); if (defined($table[$xx][$yy])) { my $node = $table[$xx][$yy]; ! # write_log("node: $node"); if ($node =~ m/img/) { Index: sessionlib.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/sessionlib.pl,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -C2 -d -r1.1.2.13 -r1.1.2.14 *** sessionlib.pl 6 Dec 2002 16:19:49 -0000 1.1.2.13 --- sessionlib.pl 9 Dec 2002 14:29:11 -0000 1.1.2.14 *************** *** 1784,1789 **** # # Create the user's GeneX data directory. # ! mkdir("$opts{USER_DATA_DIR}/$login_name", 0770); `chgrp apache $opts{USER_DATA_DIR}/$login_name`; --- 1784,1791 ---- # # Create the user's GeneX data directory. + # The permissions setting for Perl's mkdir command doesn't seem to work correctly. + # Setting 770 turned into 750, so I switched to the Linux utility. # ! `mkdir -m 770 $opts{USER_DATA_DIR}/$login_name`; `chgrp apache $opts{USER_DATA_DIR}/$login_name`; *************** *** 1865,1869 **** } ! open(LOG_OUT, ">> $fn"); print LOG_OUT "$_[0]\n"; close(LOG_OUT); --- 1867,1871 ---- } ! open(LOG_OUT, ">> $fn") || die "Cannot open log $fn\n"; print LOG_OUT "$_[0]\n"; close(LOG_OUT); Index: admin_cli.pl =================================================================== RCS file: /cvsroot/genex/genex-server/site/webtools/Attic/admin_cli.pl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** admin_cli.pl 24 Oct 2002 18:26:53 -0000 1.1.2.1 --- admin_cli.pl 9 Dec 2002 14:29:11 -0000 1.1.2.2 *************** *** 55,58 **** --- 55,59 ---- my $htpasswd_flag = 1; + # see sessionlib.pl for create_acct() (my $new_login, my $new_password, $message) = create_acct($cli_opt{email}, $cli_opt{login_name}, |