コード例 #1
0
def export_with_set(element):
    return {
        "resource_sets": [
            resource_set.export(resource_set_item)
            for resource_set_item in element.findall(".//resource_set")
        ],
        "options": export_attributes(element),
    }
コード例 #2
0
ファイル: constraint.py プロジェクト: rriifftt/pcs
def export_with_set(element):
    return {
        "resource_sets": [
            resource_set.export(resource_set_item)
            for resource_set_item in element.findall(".//resource_set")
        ],
        "options":
        export_attributes(element),
    }
コード例 #3
0
ファイル: constraint.py プロジェクト: rriifftt/pcs
def export_plain(element):
    return {"options": export_attributes(element)}
コード例 #4
0
def export(element):
    return {
        "ids": get_resource_id_set_list(element),
        "options": export_attributes(element),
    }
コード例 #5
0
ファイル: resource_set.py プロジェクト: HideoYamauchi/pcs
def export(element):
    return {
        "ids": get_resource_id_set_list(element),
        "options": export_attributes(element),
    }
コード例 #6
0
def export_plain(element):
    return {"options": export_attributes(element)}