Пример #1
0
def main(argv):
    output_folder = ""
    if len(argv):
        output_folder = argv[0]
        if not output_folder.endswith("/"):
            output_folder = output_folder + "/"

    #!+bungeni_custom(mr, aug-2011) should be localized parameter, or
    # generated dynamically e.g. listing of workflow file definitions.
    workflow_names = [
        "address",
        "agendaitem",
        "attachedfile",
        "bill",
        "committee",
        "event",
        "groupsitting",
        "group",
        "heading",
        "motion",
        "parliament",
        "question",
        "report",
        "signatory",
        "tableddocument",
        "user",
    ]
    for name in workflow_names:
        write_file(output_folder, "%s.dot" % name, dot(get_workflow(name)))
Пример #2
0
def main(argv):
    output_folder = ""
    if len(argv):
        output_folder = argv[0]
        if not output_folder.endswith("/"):
            output_folder = output_folder + "/"
    
    #!+bungeni_custom(mr, aug-2011) should be localized parameter, or 
    # generated dynamically e.g. listing of workflow file definitions.
    workflow_names = [
        "address",
        "agendaitem",
        "attachedfile",
        "bill",
        "committee",
        "event",
        "groupsitting",
        "group",
        "heading",
        "motion",
        "parliament", 
        "question",
        "report",
        "signatory",
        "tableddocument",
        "user",
    ]
    for name in workflow_names:
        write_file(output_folder, "%s.dot" % name, dot(get_workflow(name)))
Пример #3
0
def main(argv):
    output_folder = ""
    if len(argv):
        output_folder = argv[0]
        if not output_folder.endswith("/"):
            output_folder = output_folder + "/"

    seen = set()
    for key, ti in capi.iter_type_info():
        wf = ti.workflow
        if wf and wf not in seen:
            seen.add(wf)
            write_file(output_folder, "%s.dot" % ti.workflow_key, dot(wf))
Пример #4
0
def main(argv):
    output_folder = ""
    if len(argv):
        output_folder = argv[0]
        if not output_folder.endswith("/"):
            output_folder = output_folder + "/"
    
    seen = set()
    for key, ti in capi.iter_type_info():
        wf = ti.workflow 
        if wf and wf not in seen:
            seen.add(wf)
            write_file(output_folder, "%s.dot" % ti.workflow_key, dot(wf))
Пример #5
0
def main(argv):
    output_folder = ""
    if (len(argv) > 0 ):
        output_folder = argv[0]
        if (output_folder.endswith("/") == False):
            output_folder = output_folder + "/"
    
    write_file(output_folder, "bill.dot", dot(get_workflow("bill")))
    write_file(output_folder, "question.dot", dot(get_workflow("question")))
    write_file(output_folder, "motion.dot", dot(get_workflow("motion")))
    write_file(output_folder, "version.dot", dot(get_workflow("version")))
    write_file(output_folder, "groupsitting.dot", 
        dot(get_workflow("groupsitting")))
    write_file(output_folder, "group.dot", dot(get_workflow("group")))
    write_file(output_folder, "question.dot", dot(get_workflow("question")))
    write_file(output_folder, "address.dot", dot(get_workflow("address")))
    write_file(output_folder, "tableddocument.dot", 
        dot(get_workflow("tableddocument")))
    write_file(output_folder, "agendaitem.dot", 
        dot(get_workflow("agendaitem")))
    write_file(output_folder, "committee.dot", 
        dot(get_workflow("committee")))
    write_file(output_folder, "parliament.dot", 
        dot(get_workflow("parliament")))
    write_file(output_folder, "signatory.dot", 
        dot(get_workflow("signatory")))
    write_file(output_folder, "event.dot", 
        dot(get_workflow("event")))
Пример #6
0
def main(argv):
    output_folder = ""
    if (len(argv) > 0):
        output_folder = argv[0]
        if (output_folder.endswith("/") == False):
            output_folder = output_folder + "/"

    write_file(output_folder, "bill.dot", dot(get_workflow("bill")))
    write_file(output_folder, "question.dot", dot(get_workflow("question")))
    write_file(output_folder, "motion.dot", dot(get_workflow("motion")))
    write_file(output_folder, "version.dot", dot(get_workflow("version")))
    write_file(output_folder, "groupsitting.dot",
               dot(get_workflow("groupsitting")))
    write_file(output_folder, "group.dot", dot(get_workflow("group")))
    write_file(output_folder, "question.dot", dot(get_workflow("question")))
    write_file(output_folder, "address.dot", dot(get_workflow("address")))
    write_file(output_folder, "tableddocument.dot",
               dot(get_workflow("tableddocument")))
    write_file(output_folder, "agendaitem.dot",
               dot(get_workflow("agendaitem")))
    write_file(output_folder, "committee.dot", dot(get_workflow("committee")))
    write_file(output_folder, "parliament.dot",
               dot(get_workflow("parliament")))
    write_file(output_folder, "signatory.dot", dot(get_workflow("signatory")))
    write_file(output_folder, "event.dot", dot(get_workflow("event")))