src/hg/hgTables/identifiers.c 1.27

1.27 2009/03/17 04:28:39 kent
Adding parameter to getHti, and creating a hti object for bigBed tables out of the associated .as information.
Index: src/hg/hgTables/identifiers.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/identifiers.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -b -B -U 4 -r1.26 -r1.27
--- src/hg/hgTables/identifiers.c	9 Jan 2009 00:58:27 -0000	1.26
+++ src/hg/hgTables/identifiers.c	17 Mar 2009 04:28:39 -0000	1.27
@@ -141,9 +141,9 @@
     }
 
 char *oldPasted = forCurTable() ?
     cartUsualString(cart, hgtaPastedIdentifiers, "") : "";
-struct hTableInfo *hti = maybeGetHti(actualDb, curTable);
+struct hTableInfo *hti = maybeGetHti(actualDb, curTable, conn);
 char *idField = getIdField(actualDb, curTrack, curTable, hti);
 htmlOpen("Paste In Identifiers for %s", curTableLabel());
 if (idField == NULL)
     errAbort("Sorry, I can't tell which field of table %s to treat as the "
@@ -169,9 +169,9 @@
 
 void doUploadIdentifiers(struct sqlConnection *conn)
 /* Respond to upload identifiers button. */
 {
-struct hTableInfo *hti = maybeGetHti(database, curTable);
+struct hTableInfo *hti = maybeGetHti(database, curTable, conn);
 char *idField = getIdField(database, curTrack, curTable, hti);
 htmlOpen("Upload Identifiers for %s", curTableLabel());
 if (idField == NULL)
     errAbort("Sorry, I can't tell which field of table %s to treat as the "
@@ -339,9 +339,9 @@
     char *exampleMiss = NULL;
     char *actualDb = database;
     if (sameWord(curTable, WIKI_TRACK_TABLE))
 	actualDb = wikiDbName();
-    struct hTableInfo *hti = maybeGetHti(actualDb, curTable);
+    struct hTableInfo *hti = maybeGetHti(actualDb, curTable, conn);
     char *idField = getIdField(actualDb, curTrack, curTable, hti);
     if (idField == NULL)
 	{
 	warn("Sorry, I can't tell which field of table %s to treat as the "