Skip to content
Snippets Groups Projects
Commit 2706a7f2 authored by tpylak's avatar tpylak
Browse files

SE-352 1. minor email content improvement 2. do not strip tabs from the...

SE-352 1. minor email content improvement 2. do not strip tabs from the library template (to allow empty wells)

SVN: 22125
parent 4171c17a
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment