Next / Previous / Contents / Shipman's homepage

66.2. StationCodeField.flatten()

Flattens a StationCodeField object.

baseclasses.py
# - - -   S t a t i o n C o d e F i e l d . f l a t t e n   - - -

    @staticmethod
    def flatten(stationCodeField):
        '''Flattens a StationCodeField.
        '''
        if  stationCodeField is None:
            return BLANK_STA_CODE
        else:
            return stationCodeField.value