def isEnabled(self):
        """
        Returns whether or not this connection is enabled.
        
        :sa     disableWithLayer
        
        :return     <bool>
        """
        if self._disableWithLayer and self._layer:
            lenabled = self._layer.isEnabled()
        elif self._inputNode and self._outputNode:
            lenabled = self._inputNode.isEnabled() and self._outputNode.isEnabled()
        else:
            lenabled = True

        return self._enabled and lenabled
def isEnabled ( self ) : if self . _disableWithLayer and self . _layer : lenabled = self . _layer . isEnabled ( ) elif self . _inputNode and self . _outputNode : lenabled = self . _inputNode . isEnabled ( ) and self . _outputNode . isEnabled ( ) else : lenabled = True return self . _enabled and lenabled
Returns whether or not this connection is enabled.
        
        :sa     disableWithLayer
        
        :return     <bool>