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 __init__(self, metadata=None, xmlns=None):
        self.metadata = metadata or {}
        if not xmlns:
            self.xmlns = wsgi.XMLNS_ATOM
        else:

src/n/o/nova-HEAD/nova/api/openstack/compute/versions.py   nova(Download)
    def __init__(self, metadata=None, xmlns=None):
        self.metadata = metadata or {}
        if not xmlns:
            self.xmlns = wsgi.XMLNS_ATOM
        else:

src/n/o/nova-gce-HEAD/nova/api/openstack/compute/versions.py   nova-gce(Download)
    def __init__(self, metadata=None, xmlns=None):
        self.metadata = metadata or {}
        if not xmlns:
            self.xmlns = wsgi.XMLNS_ATOM
        else:

src/d/o/dodai-compute-HEAD/nova/tests/api/openstack/test_versions.py   dodai-compute(Download)
            </version>
        </versions>""".replace("  ", "").replace("\n", "") % (wsgi.XMLNS_V11,
                                                              wsgi.XMLNS_ATOM)
 
        actual = res.body.replace("  ", "").replace("\n", "")
          </version>
        </choices>""".replace("  ", "").replace("\n", "") % (wsgi.XMLNS_V11,
                                                            wsgi.XMLNS_ATOM)
 
    def test_multi_choice_server_atom(self):