Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/o/dodai-compute-HEAD/nova/api/openstack/versions.py   dodai-compute(Download)
    def _versions_to_xml(self, versions, name="versions", xmlns=None):
        root = self._xml_doc.createElement(name)
        root.setAttribute("xmlns", wsgi.XMLNS_V11)
        root.setAttribute("xmlns:atom", wsgi.XMLNS_ATOM)
 
    def _create_version_node(self, version, create_ns=False):
        version_node = self._xml_doc.createElement('version')
        if create_ns:
            xmlns = wsgi.XMLNS_V11
            xmlns_atom = wsgi.XMLNS_ATOM
    def multi(self, data):
        self._xml_doc = minidom.Document()
        node = self._versions_to_xml(data['choices'], 'choices',
                         xmlns=wsgi.XMLNS_V11)
 

src/d/o/dodai-compute-HEAD/nova/api/openstack/contrib/security_groups.py   dodai-compute(Download)
        body_serializers = {
            'application/xml': wsgi.XMLDictSerializer(metadata=metadata,
                                                      xmlns=wsgi.XMLNS_V11),
        }
        serializer = wsgi.ResponseSerializer(body_serializers, None)

src/d/o/dodai-compute-HEAD/nova/api/openstack/faults.py   dodai-compute(Download)
        xml_serializer = {
            '1.0': wsgi.XMLDictSerializer(metadata, wsgi.XMLNS_V10),
            '1.1': wsgi.XMLDictSerializer(metadata, wsgi.XMLNS_V11),
        }[common.get_version_from_href(req.url)]
 
        xml_serializer = {
            '1.0': wsgi.XMLDictSerializer(metadata, wsgi.XMLNS_V10),
            '1.1': wsgi.XMLDictSerializer(metadata, wsgi.XMLNS_V11),
        }[common.get_version_from_href(request.url)]
 

src/d/o/dodai-compute-HEAD/nova/api/openstack/servers.py   dodai-compute(Download)
class ServerXMLSerializer(wsgi.XMLDictSerializer):
 
    xmlns = wsgi.XMLNS_V11
 
    def __init__(self):
    xmlns = {
        '1.0': wsgi.XMLNS_V10,
        '1.1': wsgi.XMLNS_V11,
    }[version]
 

src/d/o/dodai-compute-HEAD/nova/api/openstack/ips.py   dodai-compute(Download)
 
    xml_serializer = {
        '1.0': wsgi.XMLDictSerializer(metadata=metadata, xmlns=wsgi.XMLNS_V11),
        '1.1': IPXMLSerializer(),
    }[version]

src/d/o/dodai-compute-HEAD/nova/api/openstack/limits.py   dodai-compute(Download)
class LimitsXMLSerializer(wsgi.XMLDictSerializer):
 
    xmlns = wsgi.XMLNS_V11
 
    def __init__(self):
    xmlns = {
        '1.0': wsgi.XMLNS_V10,
        '1.1': wsgi.XMLNS_V11,
    }[version]
 

src/d/o/dodai-compute-HEAD/nova/api/openstack/contrib/virtual_interfaces.py   dodai-compute(Download)
        body_serializers = {
            'application/xml': wsgi.XMLDictSerializer(metadata=metadata,
                                                      xmlns=wsgi.XMLNS_V11)}
        serializer = wsgi.ResponseSerializer(body_serializers, None)
        res = extensions.ResourceExtension(

src/d/o/dodai-compute-HEAD/nova/api/openstack/images.py   dodai-compute(Download)
class ImageXMLSerializer(wsgi.XMLDictSerializer):
 
    xmlns = wsgi.XMLNS_V11
 
    def __init__(self):

src/d/o/dodai-compute-HEAD/nova/api/openstack/flavors.py   dodai-compute(Download)
    def __init__(self):
        super(FlavorXMLSerializer, self).__init__(xmlns=wsgi.XMLNS_V11)
 
    def _flavor_to_xml(self, xml_doc, flavor, detailed):
        flavor_node = xml_doc.createElement('flavor')

src/n/o/nova-HEAD/nova/api/openstack/compute/contrib/security_groups.py   nova(Download)
    return context
 
sg_nsmap = {None: wsgi.XMLNS_V11}
 
 

  1 | 2 | 3  Next