Exemplo n.º 1
0
def item(it_id, it_type, on_success=it_id + 1, on_failure=0, ref_id=[]):

    p = ProgramItem()
    p.id = it_id
    p.type = it_type
    p.on_success = on_success
    p.on_failure = on_failure
    p.ref_id = ref_id

    return p