Projet

Général

Profil

0001-agenda-graying-the-arrival-and-departure-only-for-ot.patch

Serghei Mihai, 29 août 2014 15:55

Télécharger (1,37 ko)

Voir les différences:

Subject: [PATCH] agenda: graying the arrival and departure only for other
 services

Closes #2532
 calebasse/agenda/appointments.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
calebasse/agenda/appointments.py
202 202
            continue
203 203
        start_time = interval_set.lower_bound()
204 204
        end_time = interval_set.upper_bound()
205
        services = [s.slug for s in time_table.services.all() if s != service]
206 205

  
207
        if services:
208
            appointment_type = 'busy-elsewhere'
209
        else:
206
        services = time_table.services.all()
207
        common_service = service in services
208
        services = [s.slug for s in services if s != service]
209
        if common_service:
210 210
            appointment_type = 'info'
211

  
211
        else:
212
            appointment_type = 'busy-elsewhere'
212 213
        appointment = Appointment()
213 214
        appointment.other_services_names = services
214 215
        appointment.init_start_stop(u"Arrivée", start_time, appointment_type)
215
-