Project

General

Profile

« Previous | Next » 

Revision 5c9550bf

Added by Serghei Mihai about 12 years ago

agenda: holidays display for other services improved

Closes #4114

View differences:

calebasse/agenda/appointments.py
delta = interval.upper_bound - interval.lower_bound
delta_minutes = delta.seconds / 60
appointment = Appointment()
appointment.type = 'busy-here'
label = u"Congé (%s)" % holiday.holiday_type.name
appointment.init_holiday_time(label,
delta_minutes,
......
services = holiday.services.all()
if service not in services:
appointment.type = 'busy-elsewhere'
appointment.other_services_names = [s.slug for s in services]
appointment.other_services_names = [s.slug for s in services]
appointments.append(appointment)
for time_table in time_tables:
interval_set = IntervalSet.between(time_table.to_interval(date).lower_bound.time(),

Also available in: Unified diff