@task(queue='web')
def fileify(version_pk, commit):
 version = Version.objects.get(pk=version_pk)
 project = version.project
 if (not project.cdn_enabled):
  return
 if (not commit):
  log.info(LOG_TEMPLATE.format(project=project.slug, version=version.slug, msg='Imported File not being built because no commit information'))
 path = project.rtd_build_path(version.slug)
 if path:
  log.info(LOG_TEMPLATE.format(project=version.project.slug, version=version.slug, msg='Creating ImportedFiles'))
  _manage_imported_files(version, path, commit)
 else:
  log.info(LOG_TEMPLATE.format(project=project.slug, version=version.slug, msg='No ImportedFile files'))

@ task ( queue = 'web' ) def fileify ( version_pk , commit ) : version = Version . objects . get ( pk = version_pk ) project = version . project if ( not project . cdn_enabled ) : return if ( not commit ) : log . info ( LOG_TEMPLATE . format ( project = project . slug , version = version . slug , msg = 'Imported File not being built because no commit information' ) ) path = project . rtd_build_path ( version . slug ) if path : log . info ( LOG_TEMPLATE . format ( project = version . project . slug , version = version . slug , msg = 'Creating ImportedFiles' ) ) _manage_imported_files ( version , path , commit ) else : log . info ( LOG_TEMPLATE . format ( project = project . slug , version = version . slug , msg = 'No ImportedFile files' ) )
create importedfile objects for all of a versions files .