def _build_url(url, projects, branches):
 ret = ''
 all_built = {}
 all_not_building = {}
 for project in projects:
  (built, not_building) = build_branches(project, branches)
  if (not built):
   update_imported_docs.delay(project.versions.get(slug=LATEST).pk)
   msg = ('(URL Build) Syncing versions for %s' % project.slug)
   log.info(msg)
  all_built[project.slug] = built
  all_not_building[project.slug] = not_building
 for (project_slug, built) in all_built.items():
  if built:
   msg = ('(URL Build) Build Started: %s [%s]' % (url, ' '.join(built)))
   log_info(project_slug, msg=msg)
   ret += msg
 for (project_slug, not_building) in all_not_building.items():
  if not_building:
   msg = ('(URL Build) Not Building: %s [%s]' % (url, ' '.join(not_building)))
   log_info(project_slug, msg=msg)
   ret += msg
 if (not ret):
  ret = '(URL Build) No known branches were pushed to.'
 return HttpResponse(ret)

def _build_url ( url , projects , branches ) : ret = '' all_built = { } all_not_building = { } for project in projects : ( built , not_building ) = build_branches ( project , branches ) if ( not built ) : update_imported_docs . delay ( project . versions . get ( slug = LATEST ) . pk ) msg = ( '(URL Build) Syncing versions for %s' % project . slug ) log . info ( msg ) all_built [ project . slug ] = built all_not_building [ project . slug ] = not_building for ( project_slug , built ) in all_built . items ( ) : if built : msg = ( '(URL Build) Build Started: %s [%s]' % ( url , ' ' . join ( built ) ) ) log_info ( project_slug , msg = msg ) ret += msg for ( project_slug , not_building ) in all_not_building . items ( ) : if not_building : msg = ( '(URL Build) Not Building: %s [%s]' % ( url , ' ' . join ( not_building ) ) ) log_info ( project_slug , msg = msg ) ret += msg if ( not ret ) : ret = '(URL Build) No known branches were pushed to.' return HttpResponse ( ret )
map a url onto specific projects to build that are linked to that url .