Example #1
0
 def _get_stream(self):
     fp = self.outbound_source.open()
     return wrap_with_range(fp, self.outbound_source.get_content_length(),
                            self.relative_offset, self.length)
 def open(self):
     fp = super(UploadSourceLocalFileRange, self).open()
     return wrap_with_range(fp, self.file_size, self.offset,
                            self.content_length)