intranet.apps.eighth.views.admin package

Submodules

intranet.apps.eighth.views.admin.activities module

intranet.apps.eighth.views.admin.activities.add_activity_view(request)[source]
intranet.apps.eighth.views.admin.activities.delete_activity_view(request, activity_id=None)[source]
intranet.apps.eighth.views.admin.activities.edit_activity_view(request, activity_id)[source]

intranet.apps.eighth.views.admin.attendance module

intranet.apps.eighth.views.admin.attendance.activities_without_attendance_view(request)[source]
intranet.apps.eighth.views.admin.attendance.after_deadline_signup_view(request)[source]
intranet.apps.eighth.views.admin.attendance.clear_absence_view(request, signup_id)[source]
intranet.apps.eighth.views.admin.attendance.delinquent_students_view(request)[source]
intranet.apps.eighth.views.admin.attendance.migrate_outstanding_passes_view(request)[source]
intranet.apps.eighth.views.admin.attendance.no_signups_roster(request, block_id)[source]
intranet.apps.eighth.views.admin.attendance.open_passes_view(request)[source]
intranet.apps.eighth.views.admin.attendance.out_of_building_schedules_view(request, block_id=None)[source]

intranet.apps.eighth.views.admin.blocks module

intranet.apps.eighth.views.admin.blocks.add_block_view(request)[source]
intranet.apps.eighth.views.admin.blocks.copy_block_view(request, block_id)[source]
intranet.apps.eighth.views.admin.blocks.delete_block_view(request, block_id)[source]
intranet.apps.eighth.views.admin.blocks.edit_block_view(request, block_id)[source]
intranet.apps.eighth.views.admin.blocks.perform_hybrid_block_signup(fmtdate, celery_logger)[source]
intranet.apps.eighth.views.admin.blocks.print_block_rosters_view(request, block_id)[source]

intranet.apps.eighth.views.admin.general module

intranet.apps.eighth.views.admin.general.cache_view(request)[source]
intranet.apps.eighth.views.admin.general.edit_start_date_view(request)[source]
intranet.apps.eighth.views.admin.general.eighth_admin_dashboard_view(request, **kwargs)[source]
intranet.apps.eighth.views.admin.general.history_view(request)[source]

intranet.apps.eighth.views.admin.groups module

class intranet.apps.eighth.views.admin.groups.EighthAdminDistributeGroupWizard(**kwargs)[source]

Bases: SessionWizardView

FORMS = [('block', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('activity', <class 'intranet.apps.eighth.forms.admin.activities.ScheduledActivityMultiSelectForm'>)]
TEMPLATES = {'activity': 'eighth/admin/distribute_group.html', 'block': 'eighth/admin/distribute_group.html', 'choose': 'eighth/admin/distribute_group.html'}
dispatch(request, *args, **kwargs)[source]
done(form_list, **kwargs)[source]
get_context_data(form, **kwargs)[source]
get_form_kwargs(step=None)[source]
get_template_names()[source]
class intranet.apps.eighth.views.admin.groups.EighthAdminSignUpGroupWizard(**kwargs)[source]

Bases: SessionWizardView

FORMS = [('block', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('activity', <class 'intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm'>)]
TEMPLATES = {'activity': 'eighth/admin/sign_up_group.html', 'block': 'eighth/admin/sign_up_group.html'}
done(form_list, **kwargs)[source]
get_context_data(form, **kwargs)[source]
get_form_kwargs(step=None)[source]
get_template_names()[source]
intranet.apps.eighth.views.admin.groups.add_group_view(request)[source]
intranet.apps.eighth.views.admin.groups.add_member_to_group_view(request, group_id)[source]
intranet.apps.eighth.views.admin.groups.delete_empty_groups_view(request)[source]
intranet.apps.eighth.views.admin.groups.delete_group_view(request, group_id)[source]
intranet.apps.eighth.views.admin.groups.download_group_csv_view(request, group_id)[source]
intranet.apps.eighth.views.admin.groups.edit_group_view(request, group_id)[source]
intranet.apps.eighth.views.admin.groups.eighth_admin_distribute_action(request)[source]
intranet.apps.eighth.views.admin.groups.eighth_admin_distribute_group(self, request, *args, **kwargs)
intranet.apps.eighth.views.admin.groups.eighth_admin_distribute_unsigned(self, request, *args, **kwargs)
intranet.apps.eighth.views.admin.groups.eighth_admin_perform_group_signup(*, group_id: int, schact_id: int, request: Optional[HttpRequest], skip_users: set)[source]

Performs sign up of all users in a specific group up for a specific scheduled activity.

Parameters:
  • group_id – The ID of the group that should be signed up for the activity.

  • schact_id – The ID of the EighthScheduledActivity all the users in the group should be signed up for.

  • request – If possible, the request object associated with the operation.

  • skip_users – A list of users that should not be signed up for the activity, usually because they are stickied into another activity.

intranet.apps.eighth.views.admin.groups.eighth_admin_signup_group(self, request, *args, **kwargs)
intranet.apps.eighth.views.admin.groups.eighth_admin_signup_group_action(request, group_id, schact_id)[source]
intranet.apps.eighth.views.admin.groups.find_users_input(lines: List[str])[source]
intranet.apps.eighth.views.admin.groups.get_file_string(fileobj)[source]
intranet.apps.eighth.views.admin.groups.get_user_info(key: str, val) Optional[List[User]][source]
intranet.apps.eighth.views.admin.groups.handle_group_input(filetext: str)[source]
intranet.apps.eighth.views.admin.groups.remove_member_from_group_view(request, group_id, user_id)[source]
intranet.apps.eighth.views.admin.groups.upload_group_members_view(request, group_id)[source]

intranet.apps.eighth.views.admin.hybrid module

class intranet.apps.eighth.views.admin.hybrid.EighthAdminSignUpGroupWizard(**kwargs)[source]

Bases: SessionWizardView

FORMS = [('block', <class 'intranet.apps.eighth.forms.admin.blocks.HybridBlockSelectionForm'>), ('activity', <class 'intranet.apps.eighth.forms.admin.activities.HybridActivitySelectionForm'>)]
TEMPLATES = {'activity': 'eighth/admin/sign_up_group.html', 'block': 'eighth/admin/sign_up_group.html'}
done(form_list, **kwargs)[source]
get_context_data(form, **kwargs)[source]
get_form_kwargs(step=None)[source]
get_template_names()[source]
intranet.apps.eighth.views.admin.hybrid.activities_without_attendance_view(request)[source]
intranet.apps.eighth.views.admin.hybrid.eighth_admin_perform_group_signup(*, group_id: int, schact_virtual_id: int, schact_person_id: int, request: Optional[HttpRequest])[source]

Performs sign up of all users in a specific group up for a specific scheduled activity.

Parameters:
  • group_id – The ID of the group that should be signed up for the activity.

  • schact_virtual_id – The ID of the EighthScheduledActivity all the virtual users in the group should be signed up for.

  • schact_person_id – The ID of the EighthScheduledActivity all the in-person users in the group should be signed up for.

  • request – If possible, the request object associated with the operation.

intranet.apps.eighth.views.admin.hybrid.eighth_admin_signup_group_action_hybrid(request, group_id, schact_virtual_id, schact_person_id)[source]
intranet.apps.eighth.views.admin.hybrid.eighth_admin_signup_group_hybrid_view(self, request, *args, **kwargs)
intranet.apps.eighth.views.admin.hybrid.list_sponsor_view(request)[source]

intranet.apps.eighth.views.admin.maintenance module

intranet.apps.eighth.views.admin.rooms module

class intranet.apps.eighth.views.admin.rooms.EighthAdminRoomUtilizationWizard(**kwargs)[source]

Bases: SessionWizardView

FORMS = [('start_block', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('end_block', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>)]
TEMPLATES = {'end_block': 'eighth/admin/room_utilization.html', 'start_block': 'eighth/admin/room_utilization.html'}
done(form_list, **kwargs)[source]
get_context_data(form, **kwargs)[source]
get_form_kwargs(step=None)[source]
get_template_names()[source]
intranet.apps.eighth.views.admin.rooms.add_room_view(request)[source]
intranet.apps.eighth.views.admin.rooms.delete_room_view(request, room_id)[source]
intranet.apps.eighth.views.admin.rooms.edit_room_view(request, room_id)[source]
intranet.apps.eighth.views.admin.rooms.room_sanity_check_view(request)[source]
intranet.apps.eighth.views.admin.rooms.room_utilization_action(request, start_id, end_id)[source]
intranet.apps.eighth.views.admin.rooms.room_utilization_for_block_view(request)[source]
intranet.apps.eighth.views.admin.rooms.room_utilization_view(self, request, *args, **kwargs)

intranet.apps.eighth.views.admin.scheduling module

class intranet.apps.eighth.views.admin.scheduling.EighthAdminTransferStudentsWizard(**kwargs)[source]

Bases: SessionWizardView

FORMS = [('block_1', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('activity_1', <class 'intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm'>), ('block_2', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('activity_2', <class 'intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm'>)]
TEMPLATES = {'activity_1': 'eighth/admin/transfer_students.html', 'activity_2': 'eighth/admin/transfer_students.html', 'block_1': 'eighth/admin/transfer_students.html', 'block_2': 'eighth/admin/transfer_students.html'}
done(form_list, **kwargs)[source]
get_context_data(form, **kwargs)[source]
get_form_kwargs(step=None)[source]
get_template_names()[source]
class intranet.apps.eighth.views.admin.scheduling.EighthAdminUnsignupStudentsWizard(**kwargs)[source]

Bases: SessionWizardView

FORMS = [('block_1', <class 'intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm'>), ('activity_1', <class 'intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm'>)]
TEMPLATES = {'activity_1': 'eighth/admin/transfer_students.html', 'block_1': 'eighth/admin/transfer_students.html'}
done(form_list, **kwargs)[source]
get_context_data(form, **kwargs)[source]
get_form_kwargs(step=None)[source]
get_template_names()[source]
intranet.apps.eighth.views.admin.scheduling.distribute_students_view(request)[source]
intranet.apps.eighth.views.admin.scheduling.remove_duplicates_view(request)[source]
intranet.apps.eighth.views.admin.scheduling.schedule_activity_view(request)[source]
intranet.apps.eighth.views.admin.scheduling.show_activity_schedule_view(request)[source]
intranet.apps.eighth.views.admin.scheduling.transfer_students_action(request)[source]

Do the actual process of transferring students.

intranet.apps.eighth.views.admin.scheduling.transfer_students_view(self, request, *args, **kwargs)
intranet.apps.eighth.views.admin.scheduling.unsignup_students_view(self, request, *args, **kwargs)

intranet.apps.eighth.views.admin.sponsors module

intranet.apps.eighth.views.admin.sponsors.add_sponsor_view(request)[source]
intranet.apps.eighth.views.admin.sponsors.delete_sponsor_view(request, sponsor_id)[source]
intranet.apps.eighth.views.admin.sponsors.edit_sponsor_view(request, sponsor_id)[source]
intranet.apps.eighth.views.admin.sponsors.list_sponsor_activity_view(request)[source]
intranet.apps.eighth.views.admin.sponsors.list_sponsor_view(request)[source]
intranet.apps.eighth.views.admin.sponsors.sponsor_sanity_check_view(request)[source]
intranet.apps.eighth.views.admin.sponsors.sponsor_schedule_view(request, sponsor_id)[source]

intranet.apps.eighth.views.admin.users module

intranet.apps.eighth.views.admin.users.add_user_view(request)[source]

Add a new user

intranet.apps.eighth.views.admin.users.delete_user_view(request, pk)[source]
intranet.apps.eighth.views.admin.users.list_non_graduated_view(request)[source]
intranet.apps.eighth.views.admin.users.list_user_view(request)[source]

Module contents