IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32880


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

Documentation + constants

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

Legend:

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

    r32874 r32880  
    9595            (exp_tag, cam_id, camera, state, workdir, reduction, dvodb) = camera
    9696            if len(cameras) > 1:
    97                 body = CameraConstants.email_body_multiple_cam_entries % (self.label,
     97                body = CameraConstants.EMAIL_BODY_MULTIPLE_CAM_ENTRIES % (self.label,
    9898                                                                          self.exposure_name,
    9999                                                                          cam_id)
     
    165165            # Send e-mail to recipient
    166166            print 'Default for exposure [%s] at cam level' % (self.exposure_name)
    167             body = CameraConstants.email_body_revert_failure % (self.exposure_name,
     167            body = CameraConstants.EMAIL_BODY_REVERT_FAILURE % (self.exposure_name,
    168168                                                                self.label,
    169169                                                                self.exposure_name)
  • trunk/ippdor/src/ipp/constants/Camera.py

    r32874 r32880  
    33framework are defined for the Camera 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 Cam jobs
     7- EMAIL_BODY_MULTIPLE_CAM_ENTRIES: The e-mail body when there is more
     8  than one cam entry for one chip (Note: it seems it was useful when
     9  chiptool has a bug but it seems to be fixed now (see svn log for
     10  revision 32520))
     11- EMAIL_BODY_REVERT_FAILURE: The e-mail body which is sent when revert
     12  has failed
    713"""
    814from ipp.exceptions.UninstantiableIppException import UninstantiableIppException
     
    1925    REQUIREMENTS = GlobalConstants.REQUIREMENTS
    2026
    21     email_body_multiple_cam_entries = """Hi,
     27    # Body of the e-mail which is sent when there is more than one cam
     28    # entry for one chip (Note: it seems it was useful when chiptool
     29    # has a bug but it seems to be fixed now (see svn log for revision
     30    # 32520)).
     31    # It is expected to valuate this expression with 3 parameters:
     32    # - #1: label (str)
     33    # - #2: exposure name (str)
     34    # - #3: cam_id (int)
     35    EMAIL_BODY_MULTIPLE_CAM_ENTRIES = """Hi,
    2236
    2337this is an e-mail generated by the ippdor subsystem.
     
    3145Thanks,
    3246"""
    33     email_body_revert_failure = """Hi,
     47    # Body of the e-mail which is sent when revert has failed. It is
     48    # expected to valuate this expression with 3 parameters:
     49    # - #1: exposure name (str)
     50    # - #2: label (str)
     51    # - #3: exposure name (str)
     52    EMAIL_BODY_REVERT_FAILURE = """Hi,
    3453
    3554this is an e-mail generated by the ippdor subsystem.
  • trunk/ippdor/src/ipp/constants/Chip.py

    r32879 r32880  
    99- EMAIL_BODY_FAILED_REVERT: The e-mail body which is sent when revert
    1010  has failed
    11 -
     11
    1212"""
    1313from ipp.exceptions.UninstantiableIppException import UninstantiableIppException
Note: See TracChangeset for help on using the changeset viewer.