|
@@ -1436,7 +1436,7 @@ def edit_event(request): |
|
|
[60, 90, 120, 150, 180, 210, 240] ) |
|
|
[60, 90, 120, 150, 180, 210, 240] ) |
|
|
if not duration in map(lambda (d,y): d, form.duration.choices): |
|
|
if not duration in map(lambda (d,y): d, form.duration.choices): |
|
|
form.duration.choices.append( (duration,u'Atelier (%dh%.2d)' % (duration/60, duration%60) ) ) |
|
|
form.duration.choices.append( (duration,u'Atelier (%dh%.2d)' % (duration/60, duration%60) ) ) |
|
|
SalleDispo = SalleDispo.filter(Salles.place_type.in_(['Ateliers', 'MAO'])) |
|
|
|
|
|
|
|
|
SalleDispo = SalleDispo.filter(Salles.place_type.in_(['Atelier', 'MAO'])) |
|
|
elif intervention=="Table_ronde": |
|
|
elif intervention=="Table_ronde": |
|
|
form.duration.choices = map( lambda d:(d, u'Table ronde (%dh%.2d)' % (d/60, d%60) ), \ |
|
|
form.duration.choices = map( lambda d:(d, u'Table ronde (%dh%.2d)' % (d/60, d%60) ), \ |
|
|
[60, 90, 120, 150] ) |
|
|
[60, 90, 120, 150] ) |
|
|