Revision 176894c1 kamaki/clients/storage.py
b/kamaki/clients/storage.py | ||
---|---|---|
82 | 82 |
data = f.read() |
83 | 83 |
self.http_put(path, data, success=201) |
84 | 84 |
|
85 |
def get_object(self, object): |
|
86 |
path = '/%s/%s/%s' % (self.account, self.container, object) |
|
87 |
resp, reply = self.raw_http_cmd('GET', path, success=200, |
|
88 |
skip_read=True) |
|
89 |
return resp.fp |
|
90 |
|
|
85 | 91 |
def delete_object(self, object): |
86 | 92 |
path = '/%s/%s/%s' % (self.account, self.container, object) |
87 | 93 |
self.http_delete(path) |
Also available in: Unified diff