Did I find the right examples for you? yes no

All Samples(60)  |  Call(58)  |  Derive(2)  |  Import(0)

src/n/o/nova-HEAD/nova/api/openstack/compute/servers.py   nova(Download)
        # If the caller wanted a reservation_id, return it
        if ret_resv_id:
            return wsgi.ResponseObject({'reservation_id': resv_id},
                                       xml=ServerMultipleCreateTemplate)
 
            server['server']['adminPass'] = password
 
        robj = wsgi.ResponseObject(server)
 
        return self._add_location(robj)
            view['server']['adminPass'] = password
 
        robj = wsgi.ResponseObject(view)
        return self._add_location(robj)
 

src/n/o/nova-gce-HEAD/nova/api/openstack/volume/volumes.py   nova-gce(Download)
        location = '%s/%s' % (req.url, new_volume['id'])
 
        return wsgi.ResponseObject(result, headers=dict(location=location))
 
    def _get_volume_search_options(self):

src/n/o/nova-HEAD/nova/api/openstack/compute/contrib/volumes.py   nova(Download)
        location = '%s/%s' % (req.url, new_volume['id'])
 
        return wsgi.ResponseObject(result, headers=dict(location=location))
 
 

src/n/o/nova-gce-HEAD/nova/api/openstack/compute/contrib/volumes.py   nova-gce(Download)
        location = '%s/%s' % (req.url, new_volume['id'])
 
        return wsgi.ResponseObject(result, headers=dict(location=location))
 
 

src/n/o/nova-HEAD/nova/api/openstack/compute/contrib/floating_ip_dns.py   nova(Download)
                         for entry in entries]
            dns_entries = _translate_dns_entries_view(entrylist)
            return wsgi.ResponseObject(dns_entries,
                                       xml=FloatingIPDNSsTemplate)
 

src/n/o/nova-HEAD/nova/tests/api/openstack/test_wsgi.py   nova(Download)
    def test_default_code(self):
        robj = wsgi.ResponseObject({})
        self.assertEqual(robj.code, 200)
 
    def test_modified_code(self):
        robj = wsgi.ResponseObject({})
    def test_override_default_code(self):
        robj = wsgi.ResponseObject({}, code=404)
        self.assertEqual(robj.code, 404)
 
    def test_override_modified_code(self):
        robj = wsgi.ResponseObject({}, code=404)
    def test_set_header(self):
        robj = wsgi.ResponseObject({})
        robj['Header'] = 'foo'
        self.assertEqual(robj.headers, {'header': 'foo'})
 

src/n/o/nova-gce-HEAD/nova/tests/api/openstack/test_wsgi.py   nova-gce(Download)
    def test_default_code(self):
        robj = wsgi.ResponseObject({})
        self.assertEqual(robj.code, 200)
 
    def test_modified_code(self):
        robj = wsgi.ResponseObject({})
    def test_override_default_code(self):
        robj = wsgi.ResponseObject({}, code=404)
        self.assertEqual(robj.code, 404)
 
    def test_override_modified_code(self):
        robj = wsgi.ResponseObject({}, code=404)
    def test_set_header(self):
        robj = wsgi.ResponseObject({})
        robj['Header'] = 'foo'
        self.assertEqual(robj.headers, {'header': 'foo'})
 

src/n/o/nova-HEAD/nova/api/openstack/compute/plugins/v3/servers.py   nova(Download)
        if return_reservation_id:
            return wsgi.ResponseObject(
                {'servers_reservation': {'reservation_id': resv_id}})
 
        req.cache_db_instances(instances)
            server['server']['admin_password'] = password
 
        robj = wsgi.ResponseObject(server)
 
        return self._add_location(robj)
            view['server']['admin_password'] = password
 
        robj = wsgi.ResponseObject(view)
        return self._add_location(robj)
 

src/n/o/nova-gce-HEAD/nova/api/openstack/compute/servers.py   nova-gce(Download)
                server['server']['adminPass'] = password
 
        robj = wsgi.ResponseObject(server)
 
        return self._add_location(robj)
            view['server']['adminPass'] = password
 
        robj = wsgi.ResponseObject(view)
        return self._add_location(robj)
 

src/n/o/nova-HEAD/nova/api/openstack/compute/contrib/server_external_events.py   nova(Download)
        # FIXME(cyeoh): This needs some infrastructure support so that
        # we have a general way to do this
        robj = wsgi.ResponseObject({'events': events})
        robj._code = result
        return robj

  1 | 2  Next