def _get_to_protocol(self):

        if not self._to_protocol_loaded:
            if isinstance(self._to_protocol, basestring):
                self._to_protocol = import_symbol(self._to_protocol)

            self._to_protocol_loaded = True

        return self._to_protocol
Trait property getter.
dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_offer.py/AdaptationOffer._get_to_protocol