IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32879 for trunk


Ignore:
Timestamp:
Dec 7, 2011, 11:00:18 AM (15 years ago)
Author:
Serge CHASTEL
Message:

Documentation + constants

Location:
trunk/ippdor/src/ipp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdor/src/ipp/ChipManager.py

    r32876 r32879  
    203203        if len(chips) != 0:
    204204            # Send e-mail to recipient
    205             body = ChipConstants.email_body_failed_revert.replace('@COUNT_FAILED_CHIPS@',
     205            body = ChipConstants.EMAIL_BODY_FAILED_REVERT.replace('@COUNT_FAILED_CHIPS@',
    206206                                                                  len(chips))
    207207            body = body.replace('@LABEL@', self.label)
     
    224224                                                                           class_id)
    225225            body = body.replace('@CHIPTOOL_UPDATEPROCESSEDIMFILE@', updateprocessedimfile)
    226             self.send_email('Chip stage failed for label %s / exposure %s)' % (self.label,
    227                                                                                self.exposure_name),
     226            self.send_email(ChipConstants.EMAIL_SUBJECT_FAILED_REVERT % (self.label,
     227                                                                         self.exposure_name),
    228228                            body % (GlobalConstants.LOCAL_TMP_DIR))
    229229            print 'EMail sent to [%s]' % self.recipient
  • trunk/ippdor/src/ipp/constants/Chip.py

    r32876 r32879  
    33framework are defined for the chip stage.
    44
    5 It defines the following data members:
    6 TODO: list defined constants
     5It defines the following constants:
     6- REQUIREMENTS: The Condor requirements to run Chip jobs
     7- EMAIL_SUBJECT_FAILED_REVERT: The e-mail subject which is sent when
     8  revert has failed
     9- EMAIL_BODY_FAILED_REVERT: The e-mail body which is sent when revert
     10  has failed
     11-
    712"""
    813from ipp.exceptions.UninstantiableIppException import UninstantiableIppException
     
    1722
    1823    REQUIREMENTS = 'LoadAvg < 0.3'
    19     email_subject = ''
    2024
    21     # This is the e-mail body which is sent when revert as
     25    # This is the e-mail body which is sent when revert has failed. It
     26    # is expected to valuate this expression with two parameters:
     27    # - #1: The label (string)
     28    # - #2: The exposure name (string)
     29    EMAIL_SUBJECT_FAILED_REVERT = 'Chip stage failed for label %s / exposure %s)'
     30
     31    # This is the e-mail body which is sent when revert has
    2232    # failed. Some values need to be replaced, namely:
    2333    # - @COUNT_FAILED_CHIPS@: the number of chips which have failed;
     
    3242    # It is also expected to valuate this expression with one argument:
    3343    # - #1: The path to Globals.LOCAL_TMP_DIR
    34     email_body_failed_revert = """Hi,
     44    EMAIL_BODY_FAILED_REVERT = """Hi,
    3545
    3646this is an e-mail generated by the ippdor subsystem.
Note: See TracChangeset for help on using the changeset viewer.