def isValidQuicktimeVideoURL(field_data, all_data):
 uc = URLMimeTypeCheck(('video/quicktime', 'video/mpeg'))
 try:
  uc(field_data, all_data)
 except URLMimeTypeCheck.InvalidContentType:
  raise ValidationError, (gettext('The URL %s does not point to a valid QuickTime video.') % field_data)

def isValidQuicktimeVideoURL ( field_data , all_data ) : uc = URLMimeTypeCheck ( ( 'video/quicktime' , 'video/mpeg' ) ) try : uc ( field_data , all_data ) except URLMimeTypeCheck . InvalidContentType : raise ValidationError , ( gettext ( 'The URL %s does not point to a valid QuickTime video.' ) % field_data )
checks that the given url is a video that can be played by quicktime .