示例#1
0
import pyxb.binding.saxer
import io
import pyxb.utils.utility
import pyxb.utils.domutils
import sys
import pyxb.utils.six as _six

# Unique identifier for bindings created at the same time
_GenerationUID = pyxb.utils.utility.UniqueIdentifier(
    'urn:uuid:6a0e222e-5baa-11e4-9adb-e4ce8f358f7e')

# Version of PyXB used to generate the bindings
_PyXBVersion = '1.2.4'
# Generated bindings are not compatible across PyXB versions
if pyxb.__version__ != _PyXBVersion:
    raise pyxb.PyXBVersionError(_PyXBVersion)

# Import bindings for namespaces imported into schema
import pyxb.binding.datatypes
import lib.nvd._scap_core as _ImportedBinding__scap_core

# NOTE: All namespace declarations are reserved within the binding
Namespace = pyxb.namespace.NamespaceForURI(
    'http://scap.nist.gov/schema/cve/0.1', create_if_missing=True)
Namespace.configureCategories(['typeBinding', 'elementBinding'])


def CreateFromDocument(xml_text, default_namespace=None, location_base=None):
    """Parse the given XML and use the document element to create a
    Python instance.
示例#2
0
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
#
import pyxb
if pyxb.__version__ == '1.2.4':
    from fatturapa_v_1_2_1__1_2_4 import *
# elif pyxb.__version__ == '1.2.5':
#     from fatturapa_v_1_2_1__1_2_5 import *
# elif pyxb.__version__ == '1.2.6':
#     from fatturapa_v_1_2_1__1_2_6 import *
else:
    # raise pyxb.PyXBVersionError('1.2.4 to 1.2.6')
    raise pyxb.PyXBVersionError('Supported version: 1.2.4')
示例#3
0
# flake8: noqa
# -*- coding: utf-8 -*-
# Copyright 2017-2019 - SHS-AV s.r.l. <http://wiki.zeroincombenze.org/it/Odoo>
# Copyright 2019-2021 - Didotech s.r.l. <http://didotech.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
#
import pyxb
if pyxb.__version__ == '1.2.4':
    from dati_fattura_v_2_1_1__1_2_4 import *
# elif pyxb.__version__ == '1.2.5':
#     from dati_fattura_v_2_1_1__1_2_5 import *
# elif pyxb.__version__ == '1.2.6':
#     from dati_fattura_v_2_1_1__1_2_6 import *
else:
    # raise pyxb.PyXBVersionError('1.2.4 to 1.2.6')
    raise pyxb.PyXBVersionError('1.2.4')
示例#4
0
# flake8: noqa
# -*- coding: utf-8 -*-
# Copyright 2017-2019 - SHS-AV s.r.l. <http://wiki.zeroincombenze.org/it/Odoo>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
#
import pyxb
if pyxb.__version__ == '1.2.4':
    from _ds__1_2_4 import *
elif pyxb.__version__ == '1.2.5':
    from _ds__1_2_5 import *
elif pyxb.__version__ == '1.2.6':
    from _ds__1_2_6 import *
else:
    raise pyxb.PyXBVersionError('1.2.4 to 1.2.6')