def send(cls, req, data): if (req.id is not None and req.state == RequestState.accepted and ('webcast' in req.data['services']) != ('webcast' in data['services'])): send_webcast_ping.delay() super(AVRequest, cls).send(req, data) req.data['identifiers'] = get_data_identifiers(req) flag_modified(req, 'data')
def accept(cls, req, data, user): if 'webcast' in req.data['services']: send_webcast_ping.delay() super(AVRequest, cls).accept(req, data, user)
def withdraw(cls, req, notify_event_managers=True): if req.state == RequestState.accepted and 'webcast' in req.data[ 'services']: send_webcast_ping.delay() super(AVRequest, cls).withdraw(req, notify_event_managers)
def reject(cls, req, data, user): if req.state == RequestState.accepted and 'webcast' in req.data[ 'services']: send_webcast_ping.delay() super(AVRequest, cls).reject(req, data, user)