dax/dax_tools_utils.py
def upload_tasks(logfile, debug, upload_settings=None,
                 host=None, username=None, password=None,
                 projects=None, suffix=None, emailaddress=None):
    """
    Upload tasks from the queue folder.

    :param logfile: Full file of the file used to log to
    :param debug: Should debug mode be used
    :param upload_settings: settings file (csv, py, json) to define
                            xnat host/project relationship.
    :param host: XNAT host
    :param username: XNAT username
    :param password: XNAT password
    :param suffix: suffix for flagfile
    :param emailaddress: email address for warnings
    :param projects: Project(s) to upload

    """
    bin.set_logger(logfile, debug)

    # Check if folders exist
    check_folders()
    ##flagfile = "%s%s.txt" % (FLAGFILE_TEMPLATE, suffix)

    # Load the settings for upload
    upload_settings = load_upload_settings(upload_settings, host, username,
                                           password, projects)
    print_upload_settings(upload_settings)
    # create the flag file showing that the spider is running
    ##if is_dax_upload_running(flagfile):
    ##    pass
    ##else:
    ##    try:
    upload_results(upload_settings, emailaddress)
    ##    finally:
            # remove flagfile
    ##        os.remove(flagfile)

    Upload tasks from the queue folder.

    :param logfile: Full file of the file used to log to
    :param debug: Should debug mode be used
    :param upload_settings: settings file (csv, py, json) to define
                            xnat host/project relationship.
    :param host: XNAT host
    :param username: XNAT username
    :param password: XNAT password
    :param suffix: suffix for flagfile
    :param emailaddress: email address for warnings
    :param projects: Project(s) to upload

    
Upload tasks from the queue folder.
Upload tasks from the queue folder .
def upload_tasks(logfile, debug, upload_settings=None,
                 host=None, username=None, password=None,
                 projects=None, suffix=None, emailaddress=None):
    bin.set_logger(logfile, debug)
    check_folders()
    upload_settings = load_upload_settings(upload_settings, host, username,
                                           password, projects)
    print_upload_settings(upload_settings)
    upload_results(upload_settings, emailaddress)
def upload_tasks ( logfile , debug , upload_settings = None , host = None , username = None , password = None , projects = None , suffix = None , emailaddress = None ) : bin . set_logger ( logfile , debug ) check_folders ( ) upload_settings = load_upload_settings ( upload_settings , host , username , password , projects ) print_upload_settings ( upload_settings ) upload_results ( upload_settings , emailaddress )
Upload tasks from the queue folder.
Upload tasks from the queue folder .
"""
    Upload tasks from the queue folder.

    :param logfile: Full file of the file used to log to
    :param debug: Should debug mode be used
    :param upload_settings: settings file (csv, py, json) to define
                            xnat host/project relationship.
    :param host: XNAT host
    :param username: XNAT username
    :param password: XNAT password
    :param suffix: suffix for flagfile
    :param emailaddress: email address for warnings
    :param projects: Project(s) to upload

    """ # Check if folders exist ##flagfile = "%s%s.txt" % (FLAGFILE_TEMPLATE, suffix) # Load the settings for upload # create the flag file showing that the spider is running ##if is_dax_upload_running(flagfile): ##    pass ##else: ##    try: ##    finally: # remove flagfile ##        os.remove(flagfile)
logfile
Full file of the file used to log to
Full file of the file used to log to
debug
Should debug mode be used
Should debug mode be used
upload_settings
settings file (csv, py, json) to define
xnat host/project relationship.
settings file ( csv py json ) to define xnat host / project relationship .
host
None
username
None
password
None
projects
Project(s) to upload
Project ( s ) to upload
suffix
suffix for flagfile
suffix for flagfile
emailaddress
email address for warnings
email address for warnings