def create_session_block_entry(session_, data): from indico.modules.events.sessions.operations import create_session_block start_dt = data.pop('start_dt') block = create_session_block(session_=session_, data=data) entry_data = {'object': block, 'start_dt': start_dt} return create_timetable_entry(session_.event, entry_data, extend_parent=True)
def create_session_block_entry(session_, data): from indico.modules.events.sessions.operations import create_session_block start_dt = data.pop("start_dt") block = create_session_block(session_=session_, data=data) entry_data = {"object": block, "start_dt": start_dt} return create_timetable_entry(session_.event_new, entry_data, extend_parent=True)