~glance-coresec/glance/trunk

« back to all changes in this revision

Viewing changes to glance/teller/controllers.py

  • Committer: Tarmac
  • Author(s): Rick Harris
  • Date: 2010-10-05 16:16:42 UTC
  • mfrom: (8.2.10 refactor_swift_authurl)
  • Revision ID: hudson@openstack.org-20101005161642-0h3ugq7i4x2pqn13
With this patch Parallax and teller now work end-to-end with the Swift backend.

bash-3.2$ curl localhost:9292/image?uri=http://localhost:9191/images/2 > testimg.tar.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 189M 0 189M 0 0 203k 0 --:--:-- 0:15:52 --:--:-- 214k

bash-3.2$ md5 testimg.tar.gz
MD5 (testimg.tar.gz) = ef6c5db4f55b0030828b71dd253a2384

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        try:
52
52
            image = registries.lookup_by_registry(registry, uri)
53
53
        except registries.UnknownRegistryAdapter:
54
 
            return exc.HTTPBadRequest(body="Uknown registry '%s'" % registry,
 
54
            return exc.HTTPBadRequest(body="Unknown registry '%s'" % registry,
55
55
                                      request=req,
56
56
                                      content_type="text/plain")
57
57
 
67
67
                for chunk in chunks:
68
68
                    yield chunk
69
69
 
70
 
 
71
70
        return req.get_response(Response(app_iter=image_iterator()))
72
71
    
73
72
    def detail(self, req):
100
99
                        collection={'detail': 'GET'})
101
100
        super(API, self).__init__(mapper)
102
101
 
103
 
 
104
 
 
105
 
 
106
 
 
107
 
 
108
 
 
109