def uses_shib(course):
 return (course.enrollment_domain and course.enrollment_domain.startswith(settings.SHIBBOLETH_DOMAIN_PREFIX))

def uses_shib ( course ) : return ( course . enrollment_domain and course . enrollment_domain . startswith ( settings . SHIBBOLETH_DOMAIN_PREFIX ) )
used to return whether course has shibboleth as the enrollment domain returns a boolean indicating if shibboleth authentication is set for this course .