Switch to unified view

a/scripts/teamforge-import.py b/scripts/teamforge-import.py
...
...
632
632
633
    out_file = os.path.join(options.output_dir, *filepaths)
633
    out_file = os.path.join(options.output_dir, *filepaths)
634
    if not os.path.exists(os.path.dirname(out_file)):
634
    if not os.path.exists(os.path.dirname(out_file)):
635
        os.makedirs(os.path.dirname(out_file))
635
        os.makedirs(os.path.dirname(out_file))
636
636
637
    if '://' in url_path:
638
        url = url_path
639
    else:
637
    hostname = urlparse(options.api_url).hostname
640
        hostname = urlparse(options.api_url).hostname
638
    scheme = urlparse(options.api_url).scheme
641
        scheme = urlparse(options.api_url).scheme
639
    url = scheme + '://' + hostname + action_url + url_path
642
        url = scheme + '://' + hostname + action_url + url_path
640
    log.debug('fetching %s' % url)
643
    log.debug('fetching %s' % url)
641
    statusCheckingURLopener.retrieve(url, out_file)
644
    statusCheckingURLopener.retrieve(url, out_file)
642
    return out_file
645
    return out_file
643
646
644
bracket_macro = re.compile(r'\[(.*?)\]')
647
bracket_macro = re.compile(r'\[(.*?)\]')