'Return the index for course_key.'

def get_course_index(self, course_key, ignore_case=False):

    if self._is_in_bulk_operation(course_key, ignore_case):
        return self._get_bulk_ops_record(course_key, ignore_case).index
    else:
        return self.db_connection.get_course_index(course_key, ignore_case)
