示例#1
0
文件: operations.py 项目: wdbm/indico
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)
示例#2
0
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)