'Displays course Enrollment and staffing course statistics'

def get(self, request):

    if (not request.user.is_staff):
        raise Http404
    data = []
    for course in self.get_courses():
        datum = [course.display_name, course.id]
        datum += [CourseEnrollment.objects.filter(course_id=course.id).count()]
        datum += [CourseStaffRole(course.id).users_with_role().count()]
        datum += [','.join([x.username for x in CourseInstructorRole(course.id).users_with_role()])]
        data.append(datum)
    datatable = dict(header=[_('Course    Name'), _('course_id'), _('#    enrolled'), _('#    staff'), _('instructors')], title=_('Enrollment    information    for    all    courses'), data=data)
    context = {'datatable': datatable, 'msg': self.msg, 'djangopid': os.getpid(), 'modeflag': {'staffing': 'active-section'}, 'edx_platform_version': getattr(settings, 'EDX_PLATFORM_VERSION_STRING', '')}
    return render_to_response(self.template_name, context)
