From 2706a7f21847bcc13f47b1e2b0339f9f1a8ad891 Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Wed, 13 Jul 2011 13:02:42 +0000 Subject: [PATCH] SE-352 1. minor email content improvement 2. do not strip tabs from the library template (to allow empty wells) SVN: 22125 --- .../etc/sanofi-dropbox/dropbox-all-in-one-with-library.py | 8 ++++---- sanofi/dist/etc/sanofi-dropbox/utilfunctions.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) 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 7d9eb01aa52..892768fd461 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 06b41f084e4..f509c60c683 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 -- GitLab