def create_media_urls(nav, path_list):
 final_urls = []
 for path in path_list:
  parsed = urlparse(path)
  if parsed.netloc:
   final_urls.append(path)
   continue
  url = path_to_url(path)
  relative_url = (u'%s/%s' % (nav.url_context.make_relative(u'/'), url))
  final_urls.append(relative_url)
 return final_urls

def create_media_urls ( nav , path_list ) : final_urls = [ ] for path in path_list : parsed = urlparse ( path ) if parsed . netloc : final_urls . append ( path ) continue url = path_to_url ( path ) relative_url = ( u'%s/%s' % ( nav . url_context . make_relative ( u'/' ) , url ) ) final_urls . append ( relative_url ) return final_urls
return a list of urls that have been processed correctly for inclusion in a page .