Package conduit :: Package modules :: Module TestModule :: Class TestImageSink
[hide private]

Class TestImageSink

source code


Instance Methods [hide private]
 
__init__(self, *args) source code
 
_upload_photo(self, uploadInfo)
Upload a photo
source code
 
_get_photo_info(self, luid)
This should return the info for a given photo id, If this returns anything different from None, it will be passed onto _get_raw_photo_url
source code
 
_get_photo_formats(self)
This should return the allowed photo mimetypes
source code
 
_get_default_format(self)
This should return the preferred format of images the sink accepts
source code
 
_get_photo_size(self)
Return the preferred photo size string for rescaling, or None
source code
 
configure(self, window) source code

Inherited from _TestBase: get_UID, get_configuration, initialize

Inherited from _TestBase (private): _change_detected

Inherited from dataproviders.DataProvider.DataProviderBase: emit, emit_change_detected, finish, get_configuration_xml, get_input_conversion_args, get_input_type, get_name, get_output_conversion_args, get_output_type, get_status, is_busy, is_configured, refresh, set_configuration, set_configuration_xml, set_status, uninitialize

Inherited from dataproviders.Image.ImageSink: delete, put

Inherited from dataproviders.Image.ImageSink (private): _get_raw_photo_url, _replace_photo, _resize_combobox_build, _resize_combobox_get_active

Class Variables [hide private]
  _name_ = "Test Image Sink"
  _description_ = "Consumes Images"
  _icon_ = "image-x-generic"
  _category_ = DataProviderCategory.DataProviderCategory("Test")

Inherited from _TestBase: _configurable_

Inherited from dataproviders.DataProvider.DataProviderBase: __gsignals__, _in_type_, _module_type_, _out_type_

Inherited from dataproviders.Image.ImageSink: IMAGE_SIZES, NO_RESIZE

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
Overrides: _TestBase.__init__

_upload_photo(self, uploadInfo)

source code 
Upload a photo
Overrides: dataproviders.Image.ImageSink._upload_photo
(inherited documentation)

_get_photo_info(self, luid)

source code 
This should return the info for a given photo id, If this returns anything different from None, it will be passed onto _get_raw_photo_url
Overrides: dataproviders.Image.ImageSink._get_photo_info
(inherited documentation)

_get_photo_formats(self)

source code 
This should return the allowed photo mimetypes
Overrides: dataproviders.Image.ImageSink._get_photo_formats
(inherited documentation)

_get_default_format(self)

source code 
This should return the preferred format of images the sink accepts
Overrides: dataproviders.Image.ImageSink._get_default_format
(inherited documentation)

_get_photo_size(self)

source code 
Return the preferred photo size string for rescaling, or None
Overrides: dataproviders.Image.ImageSink._get_photo_size
(inherited documentation)

configure(self, window)

source code 
Overrides: _TestBase.configure