Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 1 addition & 24 deletions reporting-plugins/update-experiment-metadata/update.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import smtplib
from email.mime.text import MIMEText

def process(tr, parameters, tableBuilder):
"""Change properties of experiment
Expand All @@ -9,30 +7,9 @@ def process(tr, parameters, tableBuilder):
if not user == None:
tr.setUserId(user)
expId = parameters.get("identifier")
exp = tr.getExperimentForUpdate(expId)
exp = tr.getExperimentForUpdate(str(expId))

properties = parameters.get("properties")

for prop in properties.keySet():
exp.setPropertyValue(prop, properties.get(prop))

#server = "smtpserv.uni-tuebingen.de"
#fromA = "notification_service@qbis.qbic.uni-tuebingen.de"

# TODO get emails of space users
# Get it via liferay and pass it to this service ?
#toA = "mohr@informatik.uni-tuebingen.de"
#subject = "Update information for Experiment %s" % expId
#text = "Status of Experiment %s has been updated" % expId #, properties.get("Q_CURRENT_STATUS"))

#msg = MIMEText(text)
#msg['From'] = fromA
#msg['To'] = toA
#msg['Subject'] = subject
# check for info@qbic.uni-tuebingen.de
#msg['reply-to'] = "mohr@informatik.uni-tuebingen.de"

#smtpServer = smtplib.SMTP(server)
#smtpServer.sendmail(fromA, toA, msg.as_string())
#smtpServer.close()