Next / Previous / Contents / Shipman's homepage

70. class PulledField: Feather-pulled code

Scans a feather-pulled code. See the specification.

This is a typical single-character field that inherits from Section 27, “class SingleField: Generic single-character field”.

baseclasses.py
# - - - - -   c l a s s   P u l l e d F i e l d   - - - - -

class PulledField(SingleField):
    """Represents a feather-pulled field.
    """
    VALID_CODES  =  "OI"

#   @staticmethod
    def scanField ( encounter, scan, fieldName ):
        """Scan a feather-pulled field.
        """
        SingleField.scanField ( encounter, scan, fieldName,
                                PulledField, "feather-pulled" )

    scanField  =  staticmethod ( scanField )