diff --git a/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py b/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py index 7d9eb01aa52a67c0e26b1526388e8e5a09ccc7da..892768fd461d35105bb892c606d2ed393b1768f0 100644 --- a/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py +++ b/sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py @@ -104,7 +104,7 @@ def commit_transaction(service, transaction): sendEmail("openBIS: New data registered for %s" % (plateCode), """ Dear openBIS user, - New data from folder '%(incomingFileName)s' has been successfully registered in plate %(plateLink)s. + New data from folder '%(incomingFileName)s' has been successfully registered for plate %(plateLink)s. This email has been generated automatically. @@ -161,8 +161,8 @@ def sendAdminError(service, errorDetails, recipients): Dear openBIS Administrator, The registration of data sets from incoming folder '%(incomingFileName)s' has failed - in an unexpected way. The most probable cause is a misconfiguration of a bug in the system. - Here is a full description of the encountered error : + in an unexpected way. The most probable cause is a misconfiguration of the system. It may be also a bug. + Here is a full description of the encountered error: %(errorDetails)s @@ -221,7 +221,7 @@ def findPlateByCode(transaction, code): platesFound = list(searchService.searchForSamples(criteria)) if not platesFound: - raise ValidationException("Plate with code '%(code)s' does not exist in openBIS.\n" + raise ValidationException("Plate with code '%(code)s' does not exist in openBIS. " "Please check if the barcode provided in the folder name is correct " "or register the plate in openBIS." % vars()) if len(platesFound) > 1: diff --git a/sanofi/dist/etc/sanofi-dropbox/utilfunctions.py b/sanofi/dist/etc/sanofi-dropbox/utilfunctions.py index 06b41f084e48010b6b7c9ab5ae83de2be03b5336..f509c60c683ba1598574a2140cae9a57847baf05 100644 --- a/sanofi/dist/etc/sanofi-dropbox/utilfunctions.py +++ b/sanofi/dist/etc/sanofi-dropbox/utilfunctions.py @@ -68,7 +68,8 @@ def removeTrailingEmptyElements(list): pos = len(list) while (pos > 0): pos = pos - 1 - if not list[pos].strip(): + # do not remove tabs + if not list[pos].strip(' \n'): del list[pos] else: break