Project

General

Profile

« Previous | Next » 

Revision e36e0819

Added by Mikaël Ates about 13 years ago

validation : feasible in the services of the appointment only, double only at the CMPP (#2030).

View differences:

calebasse/agenda/appointments.py
display_name = VALIDATION_STATES[state.state_name]
if not state.previous_state:
state = None
self.validation = (event_act, state, display_name)
validation_states = None
if service in services:
validation_states = dict(VALIDATION_STATES)
if not 'CMPP' in [s.name for s in services] and \
'ACT_DOUBLE' in validation_states:
validation_states.pop('ACT_DOUBLE')
self.validation = (event_act, state, display_name, validation_states)
else:
self.event_type = occurrence.event.event_type

Also available in: Unified diff