(self, tn_type)
If this LabDataContainer has image content and the specified
        thumbnail type is valid, will return a URI pointing to the thumbnail
        itself. Otherwise, returns None.
If this LabDataContainer has image content and the specified
        thumbnail type is valid, will return a URI pointing to the thumbnail
        itself. Otherwise, returns None.
If this LabDataContainer has image content and the specified thumbnail type is valid will return a URI pointing to the thumbnail itself . Otherwise returns None .
def get_thumbnail_URI(self, tn_type):
        """If this LabDataContainer has image content and the specified
        thumbnail type is valid, will return a URI pointing to the thumbnail
        itself. Otherwise, returns None.
        """
        # this is not very extensible, but it is fast and simple:
        if self.content_type is not None and self.content_type.startswith('image/') and tn_type in config.LDC_THUMBNAIL_PARAMS:
            if tn_type == 'closeup':
                # the 'closeup' thumbnail has been deprecated, but we don't want to
                # break links, so we alias it to the main content URI for all images
                return self.get_content_URI()
            else:
                return '%s/%s' % (self.get_content_URI(), tn_type)
        else:
            return None
def get_thumbnail_URI ( self , tn_type ) : # this is not very extensible, but it is fast and simple: if self . content_type is not None and self . content_type . startswith ( 'image/' ) and tn_type in config . LDC_THUMBNAIL_PARAMS : if tn_type == 'closeup' : # the 'closeup' thumbnail has been deprecated, but we don't want to # break links, so we alias it to the main content URI for all images return self . get_content_URI ( ) else : return '%s/%s' % ( self . get_content_URI ( ) , tn_type ) else : return None