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), }
def export_plain(element): return {"options": export_attributes(element)}
def export(element): return { "ids": get_resource_id_set_list(element), "options": export_attributes(element), }