Index: trunk/ippdor/src/ipp/Constants.py
===================================================================
--- trunk/ippdor/src/ipp/Constants.py	(revision 32883)
+++ 	(revision )
@@ -1,130 +1,0 @@
-"""
-This is the file in which all constants relative to the Conodr-IPP
-framework are defined. It defines the following data members
-(according to the hostname value):
-
-- LOCAL_TMP_DIR
-- NFS_TMP_DIR
-- IPP_BIN_PATH
--
-"""
-
-from ipp.helpers import hostname
-from ipp.IppException import IppException
-
-class Constants:
-    """
-    This class is not intended to be used as a class instance.
-    All its members are static.
-    """
-    def __init__(self):
-        raise IppException('Not intended to be used as a class instance')
-
-    if hostname().startswith('ipp'): # Production cluster
-        ippdorBinaryPath = '/home/panstarrs/ippdor/local/bin'
-        LOCAL_TMP_DIR    = '/export/%s.0/ippdor/processing' % hostname()
-        NFS_TMP_DIR    = '/home/panstarrs/ippdor/processing'
-        IPP_BIN_PATH = '/home/panstarrs/ippdor/psconfig/20110920/current.lin64/bin'
-    else: # Development
-        ippdorBinaryPath = '~/local/bin'
-        LOCAL_TMP_DIR    = '/tmp/ippdor_processing'
-        NFS_TMP_DIR    = '~/ippdor_processing'
-        IPP_BIN_PATH = '~/ipp/default.linux'
-
-    # Global requirements
-    REQUIREMENTS     = 'LoadAvg < 0.3'
-
-    # Condor scripts
-    GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (ippdorBinaryPath, '%s', '%s', '%s')
-
-    # IPP executables
-    CHIPTOOL = '%s/chiptool -dbname gpc1' % IPP_BIN_PATH
-    CHIPIMFILE = '%s/chip_imfile.pl --verbose --dbname gpc1 --redirect-output --threads 1' % IPP_BIN_PATH
-    CAMTOOL = '%s/camtool' % IPP_BIN_PATH
-    CAMEXP = '%s/camera_exp.pl --redirect-output --verbose --dbname gpc1' % IPP_BIN_PATH
-    FAKETOOL = '%s/faketool' % IPP_BIN_PATH
-    WARPTOOL = '%s/warptool' % IPP_BIN_PATH
-    STACKTOOL = '%s/stacktool' % IPP_BIN_PATH
-
-    class Chip:
-        """
-        Class where all chip stage constants are defined
-        """
-        def __init__(self):
-            raise IppException('Not intended to be used as a class instance')
-        REQUIREMENTS = 'LoadAvg < 0.3'
-        email_subject = ''
-        email_body = """Hi,
-
-this is an e-mail generated by the ippdor subsystem.
-
-@COUNT_FAILED_CHIPS@ chips have a fault after 3 revert attempts.
-
-You can identify them by running the query:
-SELECT exp_name, chip_id, class_id, chipProcessedImfile.fault, path_base FROM chipProcessedImfile JOIN chipRun USING(chip_id) JOIN rawExp ON chipRun.exp_id = rawExp.exp_id WHERE chipRun.label = '@LABEL@' AND exp_name = '@EXPOSURE_NAME@' AND chipProcessedImfile.fault!=0;
-
-You can have a look at the processing logs:
-@LIST_PROCESSING_LOGS@
-
-Please fix those faults.
-
-Note that some people will use:
-@CHIPTOOL_UPDATEPROCESSEDIMFILE@
-and then:
-@CHIPTOOL_REVERTPROCESSEDIMFILE@
-
-Once you have FIXED ALL PROBLEMS FOR ALL EXPOSURES, on the host where the Condor task was submitted, submit the DAG (the host name is shown in the following line) again:
-condor_submit_dag -maxidle 1000 -maxjobs 500 %s/%s/ch2st.dag
-
-Thanks,
-
-"""
-
-    class Camera:
-        """
-        Class where all cam stage constants are defined
-        """
-        def __init__(self):
-            raise IppException('Not intended to be used as a class instance')
-
-        REQUIREMENTS = 'LoadAvg < 0.3'
-        email_body_multiple_cam_entries = """Hi,
-
-this is an e-mail generated by the ippdor subsystem.
-
-There is more than one entry for the camera stage for 
-label %s / exposure %s.
-
-I will only process the entry with cam_id = %d and I strongly
-suggest to delete the other entries in the camRun table.
-
-Thanks,
-"""
-        email_body_revert_failure = """Hi,
-
-this is an e-mail generated by the ippdor subsystem.
-
-exposure %s has a fault at camera stage (after 3 revert attempts).
-
-You could identify where the problem comes from by running the query:
-
-SELECT exp_name, rawExp.exp_id, chipRun.chip_id, camRun.cam_id, camRun.state, camProcessedExp.fault, camProcessedExp.quality, camProcessedExp.path_base FROM camRun JOIN camProcessedExp USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE camRun.label = '%s' AND exp_name='%s';
-
-Thanks,
-"""
-
-    class Fake:
-        """
-        Class where all fake stage constants are defined
-        """
-        def __init__(self):
-            raise IppException('Not intended to be used as a class instance')
-        REQUIREMENTS = 'LoadAvg < 0.3'
-
-    class Warp:
-        """
-        Class where all cam warp constants are defined
-        """
-        def __init__(self):
-            raise IppException('Not intended to be used as a class instance')
-        REQUIREMENTS = 'LoadAvg < 0.3'
