Revision 33487500 kamaki/clients/storage.py

b/kamaki/clients/storage.py
234 234
        r = self.post(path, success=202)
235 235
        r.release()
236 236

  
237
    def get_object(self, obj):
238
        """
239
        :param obj: (str)
240

  
241
        :returns: (int, int) # of objects, size in bytes
242
        """
243
        self._assert_container()
244
        path = path4url(self.account, self.container, obj)
245
        r = self.get(path, success=200)
246
        size = int(r.headers['content-length'])
247
        cnt = r.content
248
        return cnt, size
249

  
250 237
    def copy_object(
251 238
            self, src_container, src_object, dst_container,
252 239
            dst_object=False):

Also available in: Unified diff