'Handle all actions from staffing and enrollment view'

def post(self, request):

    action = request.POST.get('action', '')
    track.views.server_track(request, action, {}, page='staffing_sysdashboard')
    if (action == 'get_staff_csv'):
        data = []
        roles = [CourseInstructorRole, CourseStaffRole]
        for course in self.get_courses():
            for role in roles:
                for user in role(course.id).users_with_role():
                    datum = [course.id, role, user.username, user.email, user.profile.name]
                    data.append(datum)
        header = [_('course_id'), _('role'), _('username'), _('email'), _('full_name')]
        return self.return_csv('staff_{0}.csv'.format(request.META['SERVER_NAME']), header, data)
    return self.get(request)
