IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2008, 10:21:52 AM (18 years ago)
Author:
eugene
Message:

using new user/site/system construction for config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxadminConfig.c

    r16588 r16611  
    3535    fprintf (stderr, " [mode] : -create | -delete\n\n");
    3636
    37     psString dbServer = psMetadataLookupStr(&status, config->modules->site, "DBSERVER");
    38     psString dbUsername = psMetadataLookupStr(&status, config->modules->site, "DBUSER");
    39     psString dbName = psMetadataLookupStr(&status, config->modules->site, "DBNAME");
    40     psS32 dbPort = psMetadataLookupS32(&status, config->modules->site, "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);
Note: See TracChangeset for help on using the changeset viewer.