IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32897 for trunk/ippdor/src


Ignore:
Timestamp:
Dec 8, 2011, 11:31:08 AM (15 years ago)
Author:
Serge CHASTEL
Message:

Localization

Location:
trunk/ippdor/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdor/src/executables/ippdor_chip_to_warp.py

    r32894 r32897  
    4444    def __init__(self,
    4545                 label,
    46                  recipient,
    47                  host='ippdb01.ifa.hawaii.edu',
    48                  user='ipp',
    49                  passwd='ipp'):
     46                 recipient):
    5047        """
    5148        The constructor:
     
    5451        - creates a local directory
    5552        """
    56         Gpc1Manager.__init__(self, recipient=recipient, host=host, user=user, passwd=passwd)
     53        Gpc1Manager.__init__(self, recipient=recipient)
    5754        self.label = label
    5855        if self.is_label_used():
     
    231228        print 'Aborting'
    232229        sys.exit(4)
    233     if os.getenv('USER') == 'ippdor':
    234         BUILDER = ChipWarpBuilder(LABEL, RECIPIENT)
    235     else:
    236         BUILDER = ChipWarpBuilder(LABEL, RECIPIENT, host='ipp0012.ifa.hawaii.edu')
     230    BUILDER = ChipWarpBuilder(LABEL, RECIPIENT)
    237231    # Check exposures       
    238232    EXPOSURES_IDS = dict()
  • trunk/ippdor/src/ipp/Gpc1Manager.py

    r32890 r32897  
    55import sys
    66import MySQLdb
     7from ipp.IppSite import Gpc1
    78
    89#################################################################
     
    1213    """
    1314    def __init__(self,
    14                  recipient = 'schastel@ifa.hawaii.edu',
    15                  host = 'ippdb01.ifa.hawaii.edu',
    16                  user = 'ipp',
    17                  passwd = 'ipp'):
     15                 recipient = 'schastel@ifa.hawaii.edu'):
    1816        """Create a connector to the gpc1 database
    1917        """
    2018        self.recipient = recipient
    21         self.connector = MySQLdb.connect(host, user, passwd, db = 'gpc1')
     19        self.connector = MySQLdb.connect(Gpc1.HOST,
     20                                         Gpc1.USER,
     21                                         Gpc1.PASSWORD,
     22                                         db = Gpc1.NAME)
    2223        self.label = None # Set by derived classes
    2324
  • trunk/ippdor/src/ipp/constants/Globals.py

    r32892 r32897  
    1717from ipp.helpers import hostname
    1818from ipp.exceptions.UninstantiableIppException import UninstantiableIppException
     19from ipp.IppSite import IppSite
    1920
    2021class Globals:
     
    2728        raise UninstantiableIppException()
    2829
    29     if hostname().startswith('ipp'): # Production cluster
    30         IPPDOR_BINARY_PATH = '/home/panstarrs/ippdor/local/bin'
    31         LOCAL_TMP_DIR    = '/export/%s.0/ippdor/processing' % hostname()
    32         NFS_TMP_DIR    = '/home/panstarrs/ippdor/processing'
    33         IPP_BIN_PATH = '/home/panstarrs/ippdor/psconfig/20110920/current.lin64/bin'
    34     else: # Development
    35         IPPDOR_BINARY_PATH = '~/local/bin'
    36         LOCAL_TMP_DIR    = '/tmp/ippdor_processing'
    37         NFS_TMP_DIR    = '~/ippdor_processing'
    38         IPP_BIN_PATH = '~/ipp/default.linux'
     30    IPPDOR_BINARY_PATH = IppSite.TARGET_BINARY_DIRECTORY
     31    LOCAL_TMP_DIR = IppSite.LOCAL_TMP_DIR
     32    NFS_TMP_DIR = IppSite.NFS_TMP_DIR
     33    IPP_BIN_PATH = IppSite.IPP_BIN_PATH
    3934
    4035    # Global requirements
     
    4237
    4338    # Condor scripts
    44     GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (IPPDOR_BINARY_PATH, '%s', '%s', '%s')
     39    GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (IPPDOR_BINARY_PATH,
     40                                                                      '%s', '%s', '%s')
    4541
    4642    ###################
     
    6763    # Stack stage
    6864    STACKTOOL = '%s/stacktool' % IPP_BIN_PATH
    69 
Note: See TracChangeset for help on using the changeset viewer.