IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16579


Ignore:
Timestamp:
Feb 21, 2008, 3:20:06 PM (18 years ago)
Author:
eugene
Message:

xxSite to complete

Location:
branches/eam_branch_20080219/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080219/ippTools/src/pxadminConfig.c

    r16542 r16579  
    3535    fprintf (stderr, " [mode] : -create | -delete\n\n");
    3636
    37     psString dbServer = psMetadataLookupStr(&status, config->modules->xxSite, "DBSERVER");
    38     psString dbUsername = psMetadataLookupStr(&status, config->modules->xxSite, "DBUSER");
    39     psString dbName = psMetadataLookupStr(&status, config->modules->xxSite, "DBNAME");
    40     psS32 dbPort = psMetadataLookupS32(&status, config->modules->xxSite, "DBPORT");
     37    // XXX EAM : this should be done with psDB function calls
     38    psString dbServer = psMetadataLookupStr(&status, config->modules->complete, "DBSERVER");
     39    psString dbUsername = psMetadataLookupStr(&status, config->modules->complete, "DBUSER");
     40    psString dbName = psMetadataLookupStr(&status, config->modules->complete, "DBNAME");
     41    psS32 dbPort = psMetadataLookupS32(&status, config->modules->complete, "DBPORT");
    4142
    4243    fprintf (stderr, "connecting to %s as %s (port %d)\n", dbServer, dbUsername, dbPort);
  • branches/eam_branch_20080219/ippTools/src/pxtables.c

    r16542 r16579  
    115115
    116116    // XXX use the values defined in config->dbh?
    117     psString dbName = psMetadataLookupStr(&status, config->modules->xxSite, "DBNAME");
     117    psString dbName = psMetadataLookupStr(&status, config->modules->complete, "DBNAME");
    118118
    119119    fprintf (stdout, "*** delete the chip tables from database %s? ***\n", dbName);
     
    135135    {
    136136        bool status;
    137         psString dbPassword = psMetadataLookupStr(&status, config->modules->xxSite, "DBPASSWORD");
     137        psString dbPassword = psMetadataLookupStr(&status, config->modules->complete, "DBPASSWORD");
    138138        if (strcmp (answer, dbPassword)) {
    139139            psError(PS_ERR_UNKNOWN, true, "tables NOT deleleted");
Note: See TracChangeset for help on using the changeset viewer.