Timetable Modification: Section meeting locations

Registered by Ignas Mikalajūnas

We can't expect schools to have their timetables 100% complete on the first day of the school-year, as changes are inevitable we need to allow at least some degrees of freedom.

Locations for section meetings:
Currently you can book resources for TimetableCalendarEvent one by one, there is no way to book them for all the section events.

In the future we want to have a view that would show ALL the resources booked for events of this meeting with date ranges. And ability to unbook these resources, book new resorces either retroactively, or only for the future.

Blueprint information

Status:
Complete
Approver:
Ignas Mikalajūnas
Priority:
Medium
Drafter:
Ignas Mikalajūnas
Direction:
Approved
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Not started
Milestone target:
None
Completed by
Tom Hoffman

Related branches

Sprints

Whiteboard

First step towards the goal would be to add a Resources view for a section that would look approximately like this:

Monday Period 1
----------------
Room15 [Remove]
[Book Resource]

Tuesday Period 2
----------------
Room24 [Remove]
[Book Resource]

To get already booked resources you have to iterate through ISchoolToolCalendar(section) and collect all the events that ITimetableCalendarEvent.providedBy(event)

See what what "day id" and what "period id" are (look at ITimetableCalendarEvent definition for attribute names) and collect a dict with keys like (day_id, period_id) and values set to all Resources that you have seen booked for this day and period pair.

Then add a form of some kind and use functions in ISchoolToolCalendarEvent to do the actual booking/unbooking.

You might want to look at RelationshipViewBase for an example of a "booking" form to give you an idea on how to implement a resource list to select a resource for booking.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.