Package omero :: Package util :: Module populate_roi :: Class DownloadingOriginalFileProvider
[hide private]
[frames] | no frames]

Class DownloadingOriginalFileProvider

source code


Provides original file data by downloading it from an OMERO raw file store.

Instance Methods [hide private]
 
__init__(self, service_factory)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_original_file_data(self, original_file)
Downloads an original file to a temporary file and returns an open file handle to that temporary file seeked to zero.
source code
 
__delete__(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  BUFFER_SIZE = 1024* 1024
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, service_factory)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

get_original_file_data(self, original_file)

source code 

Downloads an original file to a temporary file and returns an open file handle to that temporary file seeked to zero. The caller is responsible for closing the temporary file.