Next / Previous / Contents / Shipman's homepage

45. class FlightMoltField: Flight feather molt

Represents a flight feather molt code; derived from Section 27, “class SingleField: Generic single-character field”. For valid codes, see the specification.

Code “0” is accepted because it is frequently used, and IBP has never complained about that value. It's not clear whether that means “none” or the same as blank, that is, not checked.

baseclasses.py
# - - - - -   c l a s s   F l i g h t M o l t F i e l d   - - - - -

class FlightMoltField(SingleField):
    '''Represents a flight feather molt code.
    '''

    VALID_CODES = "NASJ0 "

    @staticmethod
    def scanField(encounter, scan, fieldName):
        '''Scan a flight feather molt field.
        '''
        SingleField.scanField(encounter, scan, fieldName,
                              FlightMoltField, "ff molt")