'Check if connection is possible'

def __nonzero__(self):

    try:
        _logger.info('__nonzero__()    is    deprecated.    (It    is    too    expensive    to    test    a    connection.)')
        cr = self.cursor()
        cr.close()
        return True
    except Exception:
        return False
