# HG changeset patch # User Catherine Wise # Date 1390434487 -39600 # Node ID 6e2dba73eebde2ec159ca3200c2ccbf4bc45f081 # Parent c659bd6342ae96db0fa33a477e621e33096f0462 Undo multi file ugh. diff -r c659bd6342ae -r 6e2dba73eebd TrustStoreGalaxyImport.py --- a/TrustStoreGalaxyImport.py Thu Jan 23 10:36:03 2014 +1100 +++ b/TrustStoreGalaxyImport.py Thu Jan 23 10:48:07 2014 +1100 @@ -63,9 +63,9 @@ if len(sys.argv) > 10: filename = sys.argv[9] outputFile = sys.argv[10] - outputFileId = sys.argv[11] - outputFileType = sys.argv[12] - otherFilesDir = sys.argv[13] + # outputFileId = sys.argv[11] + # outputFileType = sys.argv[12] + # otherFilesDir = sys.argv[13] else: outputFile = sys.argv[9] @@ -94,13 +94,13 @@ if filename and filename != "": outputFileList = [outputFile] inputFileList = None - if "," in filename: # we have multiple files guys. - inputFileList = filename.split(",") - for inputFile in inputFileList: - outName = "%s_%s_%s_%s_%s" % ('primary', outputFileId, inputFile.replace(".","-"), 'visible', outputFileType) - outputFileList.append(os.path.join(otherFilesDir, outName)) - else: - inputFileList = [filename] + # if "," in filename: # we have multiple files guys. + # inputFileList = filename.split(",") + # for inputFile in inputFileList: + # outName = "%s_%s_%s_%s_%s" % ('primary', outputFileId, inputFile.replace(".","-"), 'visible', outputFileType) + # outputFileList.append(os.path.join(otherFilesDir, outName)) + # else: + inputFileList = [filename] for inFile, outFile in zip(inputFileList, outputFileList): downloadMe = ts_utils.ts_utils.recurseToChildNamed(location, inFile) if downloadMe: diff -r c659bd6342ae -r 6e2dba73eebd TrustStoreGalaxyImport.xml --- a/TrustStoreGalaxyImport.xml Thu Jan 23 10:36:03 2014 +1100 +++ b/TrustStoreGalaxyImport.xml Thu Jan 23 10:48:07 2014 +1100 @@ -6,7 +6,7 @@ - TrustStoreGalaxyImport.py https://tstest-kms.it.csiro.au/kmscolab_3_0 https://tstest-ims.it.csiro.au/ims_3_0/services/IMS $username $password desktop cpU92F1PT7VOCANjSknuCDp4DrubmujoBaF6b0miz8OpKNokEbGMHCaSFK5/lISbBmaaGVCgeADI2A39F3Hkeg== $storename $path $filename $output1 $output1.id $file_type $__new_file_path__ + TrustStoreGalaxyImport.py https://tstest-kms.it.csiro.au/kmscolab_3_0 https://tstest-ims.it.csiro.au/ims_3_0/services/IMS $username $password desktop cpU92F1PT7VOCANjSknuCDp4DrubmujoBaF6b0miz8OpKNokEbGMHCaSFK5/lISbBmaaGVCgeADI2A39F3Hkeg== $storename $path $filename $output1