def resolve_version(root, _info): ovaldef = root.find('ovaldef') if ovaldef is not None: return get_int_from_element(ovaldef, 'version') return None
def resolve_medium(parent, _info): return get_int_from_element(parent.find('warning'), 'page')
def resolve_false_positive(parent, _info): return get_int_from_element(parent.find('false_positive'), 'page')
def resolve_udp(root, _info): return get_int_from_element(root, 'udp')
def resolve_distance(root, _info): return get_int_from_element(root, 'distance')
def resolve_start(root, _info): return get_int_from_element(root, 'start')
def resolve_count_all(root, _info): return get_int_from_element(root, 'all')
def resolve_trash(root, _info): return get_int_from_element(root, 'trash')
def resolve_preference_id(root, _info): return get_int_from_element(root, 'id')
def resolve_known_nvt_count(root, _info): return get_int_from_element(root, 'known_nvt_count')
def resolve_selector_type(root, _info): return get_int_from_element(root, 'type')
def resolve_nvt_growing(root, _info): nvt_count = root.find('nvt_count') return get_int_from_element(nvt_count, 'growing')
def resolve_family_growing(root, _info): family_count = root.find('family_count') return get_int_from_element(family_count, 'growing')
def resolve_family_count(root, _info): return get_int_from_element(root, 'family_count')
def resolve_score(root, _info): return get_int_from_element(root, 'score')
def resolve_max_nvt_count(root, _info): return get_int_from_element(root, 'max_nvt_count')
def resolve_value(root, _info): return get_int_from_element(root, 'value')
def resolve_category(root, _info): return get_int_from_element(root, 'category')
def resolve_end(root, _info): return get_int_from_element(root, 'end')
def resolve_preference_count(root, _info): return get_int_from_element(root, 'preference_count')
def resolve_tcp(root, _info): return get_int_from_element(root, 'tcp')
def resolve_default_timeout(root, _info): return get_int_from_element(root, 'default_timeout')
def resolve_cve_refs(root, _info): cpe = root.find('cpe') if cpe: return get_int_from_element(cpe, 'cve_refs') return None
def resolve_category(root, _info): nvt = root.find('nvt') if nvt is not None: return get_int_from_element(nvt, 'category')
def resolve_high(parent, _info): return get_int_from_element(parent.find('hole'), 'page')
def resolve_preference_count(root, _info): nvt = root.find('nvt') if nvt is not None: return get_int_from_element(nvt, 'preference_count')
def resolve_log(parent, _info): return get_int_from_element(parent.find('log'), 'page')
def resolve_default_timeout(root, _info): nvt = root.find('nvt') if nvt is not None: return get_int_from_element(nvt, 'default_timeout')
def resolve_current(parent, _info): return get_int_from_element(parent, 'page')
def resolve_cve_refs(root, _info): ovaldef = root.find('ovaldef') if ovaldef is not None: return get_int_from_element(ovaldef, 'cve_refs') return None