parameters: (self, context, *args)
return_statement: return url
docstring: Verify that the thumbnail actually exists. If it does not then use the site image.
          Call example: 'mnvXpath:tributecaThumbnailLink(string(.//img/@src))'
          return the thumbnail url
docstring_summary: Verify that the thumbnail actually exists. If it does not then use the site image.
          Call example: 'mnvXpath:tributecaThumbnailLink(string(.//img/
docstring_tokens: Verify that the thumbnail actually exists . If it does not then use the site image . Call example : mnvXpath : tributecaThumbnailLink ( string ( . // img /
function: def tributecaThumbnailLink(self, context, *args):
          '''Verify that the thumbnail actually exists. If it does not then use the site image.
          Call example: 'mnvXpath:tributecaThumbnailLink(string(.//img/@src))'
          return the thumbnail url
          '''
          siteImage = 'http://www.tribute.ca/images/tribute_title.gif'
          if not len(args[0]) or not self.persistence['tributecaThumbnailLink']:
              return siteImage
  
          if args[0].startswith('http:'):
              url = args[0].strip()
          else:
              url = 'http://www.tribute.ca/tribute_objects/images/movies/%s%s' % (self.persistence['tributecaThumbnailLink'], '/poster.jpg')
          resultCheckUrl = common.checkURL(url)
          if not resultCheckUrl[0] or resultCheckUrl[1]['Content-Type'] != 'image/jpeg':
              return siteImage
  
          return url
function_tokens: def tributecaThumbnailLink ( self , context , * args ) : siteImage = 'http://www.tribute.ca/images/tribute_title.gif' if not len ( args [ 0 ] ) or not self . persistence [ 'tributecaThumbnailLink' ] : return siteImage if args [ 0 ] . startswith ( 'http:' ) : url = args [ 0 ] . strip ( ) else : url = 'http://www.tribute.ca/tribute_objects/images/movies/%s%s' % ( self . persistence [ 'tributecaThumbnailLink' ] , '/poster.jpg' ) resultCheckUrl = common . checkURL ( url ) if not resultCheckUrl [ 0 ] or resultCheckUrl [ 1 ] [ 'Content-Type' ] != 'image/jpeg' : return siteImage return url