def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>"%Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) if isinstance(judgement, EditorJudgement): typeR = "Layout" elif isinstance(judgement, ReviewerJudgement): typeR = "Content" self.setSubject("""%s Assessment of the paper "%s" for "%s" """% (typeR, contribution.title.encode('utf-8'), conference.getTitle())) self.setBody("""Dear %s, The assigned %s Reviewer, %s, has partially reviewed the paper entitled "%s" (id: %s) submitted for "%s". The assessment is as follows: %s. %s You may proceed to the Referee Area for this paper: %s Kind regards, Indico on behalf of "%s" """ % (user.user.full_name.encode('utf-8'), typeR, judgement.getAuthor().getStraightFullName(), contribution.title.encode('utf-8'), str(contribution.friendly_id),conference.getTitle(), judgement.getJudgement(), judgement.getCommentsVerbose(), url_for('event_mgmt.contributionReviewing-contributionReviewingJudgements', contribution, _external=True), conference.getTitle()))
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>"%Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) if isinstance(judgement, EditorJudgement): typeR = "Layout" elif isinstance(judgement, ReviewerJudgement): typeR = "Content" self.setSubject("""%s Assessment of the paper "%s" for "%s" """% (typeR, contribution.title, conference.getTitle())) self.setBody("""Dear %s, The assigned %s Reviewer, %s, has partially reviewed the paper entitled "%s" (id: %s) submitted for "%s". The assessment is as follows: %s. %s You may proceed to the Referee Area for this paper: %s Kind regards, Indico on behalf of "%s" """ % (user.user.full_name, typeR, judgement.getAuthor().getStraightFullName(), contribution.title, str(contribution.friendly_id),conference.getTitle(), judgement.getJudgement(), judgement.getCommentsVerbose(), url_for('event_mgmt.contributionReviewing-contributionReviewingJudgements', contribution, _external=True), conference.getTitle()))
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setBCCList([judgement.getAuthor().getEmail()]) if isinstance(judgement, RefereeJudgement): typeR = "Referee" elif isinstance(judgement, EditorJudgement): typeR = "Layout Reviewer" elif isinstance(judgement, ReviewerJudgement): typeR = "Content Reviewer" self.setSubject(""""%s" has been put back into reviewing by the %s """ % (contribution.title.encode('utf-8'), typeR)) self.setBody("""Dear %s, Your paper entitled "%s" (id: %s) submitted for "%s" has been put back into reviewing by the assigned %s: %s Kind regards, Indico on behalf of "%s" """ % (user.full_name.encode('utf-8'), contribution.title.encode('utf-8'), str(contribution.friendly_id), conference.getTitle(), typeR, url_for('contributions.display_contribution', contribution, _external=True), conference.getTitle()))
def __init__(self, psList): self._psList = psList self._participationsByConf = self._calculateParticipationsByConf() self._forceIndicoFromAddress = len(self._participationsByConf) > 1 data = {} data["subject"] = "[Indico] User account creation required" data["toList"] = [self._psList[0].getEmail()] GenericNotification.__init__(self, data)
def __init__(self, booking): GenericNotification.__init__(self) self._booking = booking self._bp = booking._bookingParams self._conference = booking.getConference() self._modifLink = str(booking.getModificationURL()) self.setFromAddr("Indico Mailer<%s>"%HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setContentType("text/html")
def __init__(self, booking): GenericNotification.__init__(self) self._booking = booking self._bp = booking.getBookingParams() self._conference = booking.getConference() self._isLecture = self._conference.getType() == 'simple_event' self._modifLink = str(booking.getModificationURL()) self.setFromAddr("Indico Mailer<%s>"%Config.getInstance().getSupportEmail()) self.setContentType("text/html")
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) if isinstance(judgement, EditorJudgement): self.setSubject( """[Indico] The layout of your contribution "%s" (id: %s) has been reviewed""" % (contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, The layout of your contribution "%s" (id: %s) has been reviewed. The judgement was: %s The comments of the editor were: "%s" Thank you for using our system. """ % (contribution.getTitle(), str(contribution.getId()), judgement.getJudgement(), judgement.getComments())) elif isinstance(judgement, ReviewerJudgement): self.setSubject( """[Indico] The content of your contribution "%s" (id: %s) has been reviewed""" % (contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, The content of your contribution "%s" (id: %s) has been reviewed. The judgement was: %s The comments of the reviewer were: "%s" Thank you for using our system. """ % (contribution.getTitle(), str(contribution.getId()), judgement.getJudgement(), judgement.getComments())) elif isinstance(judgement, RefereeJudgement): self.setSubject( """[Indico] Your contribution "%s" (id: %s) has been completely reviewed by the referee""" % (contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, Your contribution "%s" (id: %s) has been completely reviewed by the assigned referee. The judgement was: %s The comments of the referee were: "%s" Thank you for using our system. """ % (contribution.getTitle(), str(contribution.getId()), judgement.getJudgement(), judgement.getComments()))
def __init__(self, booking): GenericNotification.__init__(self) self._booking = booking self._bp = booking._bookingParams self._conference = booking.getConference() self._modifLink = str(booking.getModificationURL()) self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setContentType("text/html")
def __init__(self, booking): GenericNotification.__init__(self) self._booking = booking self._bp = booking._bookingParams self._conference = booking.getConference() self._modifLink = str(self._booking.getModificationURL()) self.setFromAddr("Indico Mailer <%s>"%Config.getInstance().getSupportEmail()) self.setToList(MailTools.getAdminEmailList()) self.setContentType("text/html")
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer<%s>"%HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) if isinstance(judgement, EditorJudgement): self.setSubject("""[Indico] The layout of your contribution "%s" (id: %s) has been reviewed""" % (contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, The layout of your contribution "%s" (id: %s) has been reviewed. The judgement was: %s The comments of the editor were: "%s" Thank you for using our system. """ % ( contribution.getTitle(), str(contribution.getId()), judgement.getJudgement(), judgement.getComments()) ) elif isinstance(judgement, ReviewerJudgement): self.setSubject("""[Indico] The content of your contribution "%s" (id: %s) has been reviewed""" % (contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, The content of your contribution "%s" (id: %s) has been reviewed. The judgement was: %s The comments of the reviewer were: "%s" Thank you for using our system. """ % ( contribution.getTitle(), str(contribution.getId()), judgement.getJudgement(), judgement.getComments()) ) elif isinstance(judgement, RefereeJudgement): self.setSubject("""[Indico] Your contribution "%s" (id: %s) has been completely reviewed by the referee""" % (contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, Your contribution "%s" (id: %s) has been completely reviewed by the assigned referee. The judgement was: %s The comments of the referee were: "%s" Thank you for using our system. """ % ( contribution.getTitle(), str(contribution.getId()), judgement.getJudgement(), judgement.getComments()) )
def __init__(self, booking): GenericNotification.__init__(self) self._booking = booking self._bp = booking._bookingParams self._conference = booking.getConference() self._modifLink = str(self._booking.getModificationURL()) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getSupportEmail()) self.setToList(MailTools.getAdminEmailList()) self.setContentType("text/html")
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.getEmail()]) self.setSubject("""[Indico] You have been removed as %s of the conference "%s" (id: %s)""" % (role, conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, We are sorry to inform you that you have been removed as %s of the conference "%s" (id: %s). Thank you for using our system. """ % ( role, conference.getTitle(), str(conference.getId()) ))
def __init__(self, user, role, contribution): conference = contribution.getConference() GenericNotification.__init__(self) self.setFromAddr("Indico Mailer<%s>"%HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject("""[Indico] You have been removed as %s of the contribution "%s" (id: %s) of the conference %s (id: %s)""" % (role, contribution.getTitle(), str(contribution.getId()), conference.getTitle(),str(conference.getId()))) self.setBody("""Dear Indico user, We are sorry to inform you that you have been removed as %s of the contribution "%s" (id: %s). Thank you for using our system. """ % ( role, contribution.getTitle(), str(contribution.getId()) ))
def __init__(self, user, role, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setSubject("""You are no longer a %s of a paper for "%s" """ % (role, conference.getTitle())) self.setBody("""Dear %s, Please, be aware that you are no longer a %s of the paper entitled "%s" (id: %s) for the conference "%s": %s Kind regards, Indico on behalf of "%s" """ % ( user.full_name, role, contribution.title, str(contribution.friendly_id), conference.getTitle(), str(urlHandlers.UHConferenceDisplay.getURL(conference)), conference.getTitle()))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.getEmail()]) self.setSubject("""You have been chosen as a %s for the conference "%s" """ % (role, conference.getTitle())) self.setBody("""Dear %s, You have been chosen as a %s for the conference entitled "%s" in order to help with the paper reviewing process. Please find the Paper Reviewing utilities here: %s Kind regards, Indico on behalf of "%s" """ % ( user.getStraightFullName(), role, conference.getTitle(), urlHandlers.UHPaperReviewingDisplay.getURL(conference), conference.getTitle()))
def __init__(self, user, role, contribution): conference = contribution.getConference() GenericNotification.__init__(self) self.setFromAddr("Indico Mailer<%s>"%HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject("""[Indico] The author of the contribution %s (id: %s) of the conference %s has submitted his/her materials (id: %s)""" % (contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, The author of the contribution %s (id: %s) of the conference %s (id: %s) has marked his / her materials as submitted. You can now start the reviewing process as a %s. Thank you for using our system. """ % ( contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()), role))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.getEmail()]) self.setSubject("""You are no longer a %s of the conference "%s" """ % (role, conference.getTitle())) self.setBody("""Dear %s, Please, be aware that you are no longer a %s of the conference "%s": %s Kind regards, Indico on behalf of "%s" """% ( user.getStraightFullName(), role, conference.getTitle(), urlHandlers.UHConferenceDisplay.getURL(conference), conference.getTitle()))
def __init__(self, user, contribution): conference = contribution.getConference() GenericNotification.__init__(self) self.setFromAddr("Indico Mailer<%s>"%HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject("""[Indico] Warning: the author of the contribution %s (id: %s) of the conference %s (id: %s) has changed his/her materials """ % (contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, The author of the contribution %s (id: %s) of the conference %s (id: %s) has removed the 'submitted' mark from his / her materials. This means that he may have changed the content of the materials. Thus, you should wait until he has marked the materials again to start / continue the reviewing process. Thank you for using our system. """ % ( contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId())))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.getEmail()]) self.setSubject("""You have been chosen as a %s for the conference "%s" """ % (role, conference.getTitle())) self.setBody("""Dear %s, You have been chosen as a %s for the conference entitled "%s" in order to help with the paper reviewing process. Please find the Paper Reviewing utilities here: %s Kind regards, Indico on behalf of "%s" """ % ( user.getStraightFullName(), role, conference.getTitle(), urlHandlers.UHPaperReviewingDisplay.getURL(conference), conference.getTitle()))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.getEmail()]) self.setSubject("""You are no longer a %s of the conference "%s" """ % (role, conference.getTitle())) self.setBody("""Dear %s, Please, be aware that you are no longer a %s of the conference "%s": %s Kind regards, Indico on behalf of "%s" """% ( user.getStraightFullName(), role, conference.getTitle(), urlHandlers.UHConferenceDisplay.getURL(conference), conference.getTitle()))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject( """[Indico] You have been removed as %s of the conference "%s" (id: %s)""" % (role, conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, We are sorry to inform you that you have been removed as %s of the conference "%s" (id: %s). Thank you for using our system. """ % (role, conference.getTitle(), str(conference.getId())))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.getEmail()]) self.setSubject("""[Indico] You have been chosen as %s for the conference "%s" (id: %s)""" % (role, conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Sir or Madam, You have been chosen as %s of the conference "%s" (id: %s), in order to help with the paper reviewing process. You can go to the conference main page: %s After logging in, you will find a link under 'Paper reviewing' on which you can click to perform your new functions. Best regards """ % ( role, conference.getTitle(), str(conference.getId()), urlHandlers.UHConferenceDisplay.getURL(conference) ))
def __init__(self, task): GenericNotification.__init__(self) self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([task.avatar.getEmail()]) self.setSubject(""" The offline version of the event "%s" is ready to be downloaded """ % (task.conference.getTitle())) self.setBody(""" Dear %s, The offline version for the event "%s" was successfully generated and it is ready to be downloaded. Download link: %s Best Regards, -- Indico""" % (task.avatar.getStraightFullName(), task.conference.getTitle(), task.getDownloadLink()))
def __init__(self, task): GenericNotification.__init__(self) self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([task.avatar.getEmail()]) self.setSubject(""" The offline version of the event "%s" is ready to be downloaded """ % (task.conference.getTitle())) self.setBody(""" Dear %s, The offline version for the event "%s" was successfully generated and it is ready to be downloaded. Download link: %s Best Regards, -- Indico""" % (task.avatar.getStraightFullName(), task.conference.getTitle(), task.getDownloadLink()))
def __init__(self, user, role, contribution): GenericNotification.__init__(self) conference = contribution.getConference() self.setFromAddr("Indico Mailer<%s>"%HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject("""[Indico] You have been chosen as %s for the contribution "%s" (id: %s)""" % (role, contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, You have been chosen as %s of the contribution "%s" (id: %s) of the conference %s (id: %s). You can go to the contribution reviewing page: %s If you have not already, you will have to log in to see this page. Thank you for using our system. """ % ( role, contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()), urlHandlers.UHContributionModifReviewing.getURL(contribution) ))
def __init__(self, user, role, conference): GenericNotification.__init__(self) self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject( """[Indico] You have been chosen as %s for the conference "%s" (id: %s)""" % (role, conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, You have been chosen as %s of the conference "%s" (id: %s), in order to help with the abstract / contribution reviewing process. You can go to the conference main page: %s After loggin in, you will find a link under 'My Conference' where you can click to perform your new functions. Thank you for using our system. """ % (role, conference.getTitle(), str(conference.getId()), urlHandlers.UHConferenceDisplay.getURL(conference)))
def __init__(self, user, contribution): conference = contribution.getConference() GenericNotification.__init__(self) self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject( """[Indico] Warning: the author of the contribution %s (id: %s) of the conference %s (id: %s) has changed his/her materials """ % (contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, The author of the contribution %s (id: %s) of the conference %s (id: %s) has removed the 'submitted' mark from his / her materials. This means that he may have changed the content of the materials. Thus, you should wait until he has marked the materials again to start / continue the reviewing process. Thank you for using our system. """ % (contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId())))
def __init__(self, user, role, contribution): conference = contribution.getConference() GenericNotification.__init__(self) self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject( """[Indico] The author of the contribution %s (id: %s) of the conference %s has submitted his/her materials (id: %s)""" % (contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()))) self.setBody("""Dear Indico user, The author of the contribution %s (id: %s) of the conference %s (id: %s) has marked his / her materials as submitted. You can now start the reviewing process as a %s. Thank you for using our system. """ % (contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()), role))
def __init__(self, maxDate, previousTotal, newTotal, error=None, attainedDate=None): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getSupportEmail()) self.setContentType("text/html") self.setToList(MailTools.getAdminEmailList('Vidyo')) serverTimezone = info.HelperMaKaCInfo.getMaKaCInfoInstance( ).getTimezone() if error: self.setSubject( """[Vidyo] Old room cleaning failed: %s rooms deleted""" % str(previousTotal - newTotal)) self.setBody("""Dear Vidyo Manager,<br /> <br /> A cleanup of old Vidyo rooms in <a href="%s">%s</a> encountered the following error:%s<br /> "All rooms before %s (%s, server timezone) should have been deleted but only the date %s was reached.<br /> There were %s rooms before the operation and there are %s rooms left now.<br /> """ % (MailTools.getServerName(), MailTools.getServerName(), escape( str(error)), formatDateTime(getAdjustedDate(maxDate, tz=serverTimezone)), serverTimezone, formatDateTime(getAdjustedDate(attainedDate, tz=serverTimezone)), str(previousTotal), str(newTotal))) else: self.setSubject( """[Vidyo] Old room cleaning successful: %s rooms deleted""" % str(previousTotal - newTotal)) self.setBody("""Dear Vidyo Manager,<br /> <br /> A cleanup was successfully executed for old Vidyo rooms in <a href="%s">%s</a>.<br /> All rooms attached to events finishing before %s (%s, server timezone) were deleted in the Vidyo server.<br /> There were %s rooms before the operation and there are %s rooms left now.<br /> """ % (MailTools.getServerName(), MailTools.getServerName(), formatDateTime(getAdjustedDate(maxDate, tz=serverTimezone)), serverTimezone, str(previousTotal), str(newTotal)))
def __init__(self, user, role, contribution): GenericNotification.__init__(self) conference = contribution.getConference() self.setFromAddr( "Indico Mailer<%s>" % HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()) self.setToList([user.getEmail()]) self.setSubject( """[Indico] You have been chosen as %s for the contribution "%s" (id: %s)""" % (role, contribution.getTitle(), str(contribution.getId()))) self.setBody("""Dear Indico user, You have been chosen as %s of the contribution "%s" (id: %s) of the conference %s (id: %s). You can go to the contribution reviewing page: %s If you have not already, you will have to log in to see this page. Thank you for using our system. """ % (role, contribution.getTitle(), str(contribution.getId()), conference.getTitle(), str(conference.getId()), urlHandlers.UHContributionModifReviewing.getURL(contribution)))
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) if isinstance(judgement, EditorJudgement): typeR = "Layout" elif isinstance(judgement, ReviewerJudgement): typeR = "Content" self.setSubject(""""%s" has been put back into reviewing by the %s Reviewer"""% (contribution.title, typeR)) self.setBody("""Dear %s, The paper entitled "%s" (id: %s) submitted for "%s" has been put back into reviewing by the assigned %s Reviewer: %s Kind regards, Indico on behalf of "%s" """ % (user.user.full_name, contribution.title, str(contribution.friendly_id), conference.getTitle(), typeR, url_for('event_mgmt.confListContribToJudge', contribution, _external=True), conference.getTitle()))
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>"%Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setBCCList([judgement.getAuthor().getEmail()]) if isinstance(judgement, EditorJudgement): if conference.getConfPaperReview().getChoice() == ConferencePaperReview.LAYOUT_REVIEWING: if judgement.getJudgement() in ["Accept", "Reject"]: self.setAcceptedRejected(user, judgement, contribution, conference, "Layout Reviewer") else: self.setFullyReviewed(user, judgement, contribution, conference, "Layout Reviewer") elif not judgement.getJudgement() in ["Accept", "Reject"]: self.setPartiallyReviewed(user, judgement, contribution, conference, "Layout") elif isinstance(judgement, ReviewerJudgement) and not judgement.getJudgement() in ["Accept", "Reject"]: self.setPartiallyReviewed(user, judgement, contribution, conference, "Content") elif isinstance(judgement, RefereeJudgement): if judgement.getJudgement() in ["Accept", "Reject"]: self.setAcceptedRejected(user, judgement, contribution, conference, "Referee") else: self.setFullyReviewed(user, judgement, contribution, conference, "Referee")
def __init__(self, user, judgement, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>"%Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setBCCList([judgement.getAuthor().getEmail()]) if isinstance(judgement, EditorJudgement): if conference.getConfPaperReview().getChoice() == ConferencePaperReview.LAYOUT_REVIEWING: if judgement.getJudgement() in ["Accept", "Reject"]: self.setAcceptedRejected(user, judgement, contribution, conference, "Layout Reviewer") else: self.setFullyReviewed(user, judgement, contribution, conference, "Layout Reviewer") elif not judgement.getJudgement() in ["Accept", "Reject"]: self.setPartiallyReviewed(user, judgement, contribution, conference, "Layout") elif isinstance(judgement, ReviewerJudgement) and not judgement.getJudgement() in ["Accept", "Reject"]: self.setPartiallyReviewed(user, judgement, contribution, conference, "Content") elif isinstance(judgement, RefereeJudgement): if judgement.getJudgement() in ["Accept", "Reject"]: self.setAcceptedRejected(user, judgement, contribution, conference, "Referee") else: self.setFullyReviewed(user, judgement, contribution, conference, "Referee")
def __init__(self, user, role, contribution): conference = contribution.event_new.as_legacy GenericNotification.__init__(self) self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setSubject("""An author has submitted a paper for "%s" """% conference.getTitle()) if role == 'Referee': url = url_for('event_mgmt.confListContribToJudge', conference, _external=True) elif role == 'Layout Reviewer': url = url_for('event_mgmt.confListContribToJudge-asEditor', conference, _external=True) elif role == 'Content Reviewer': url = url_for('event_mgmt.confListContribToJudge-asReviewer', conference, _external=True) self.setBody("""Dear %s, An author has submitted a paper entitled "%s" (id: %s) for the conference "%s". You can now start the reviewing process as a %s: %s Kind regards, Indico on behalf of "%s" """ % ( user.full_name, contribution.title, str(contribution.friendly_id), conference.getTitle(), role, url, conference.getTitle()))
def __init__(self, maxDate, previousTotal, newTotal, error = None, attainedDate = None): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getSupportEmail()) self.setContentType("text/html") self.setToList(MailTools.getAdminEmailList('Vidyo')) serverTimezone = info.HelperMaKaCInfo.getMaKaCInfoInstance().getTimezone() if error: self.setSubject("""[Vidyo] Old room cleaning failed: %s rooms deleted""" % str(previousTotal - newTotal)) self.setBody("""Dear Vidyo Manager,<br /> <br /> A cleanup of old Vidyo rooms in <a href="%s">%s</a> encountered the following error:%s<br /> "All rooms before %s (%s, server timezone) should have been deleted but only the date %s was reached.<br /> There were %s rooms before the operation and there are %s rooms left now.<br /> """ % (MailTools.getServerName(), MailTools.getServerName(), escape(str(error)), formatDateTime(getAdjustedDate(maxDate, tz=serverTimezone)), serverTimezone, formatDateTime(getAdjustedDate(attainedDate, tz=serverTimezone)), str(previousTotal), str(newTotal))) else: self.setSubject("""[Vidyo] Old room cleaning successful: %s rooms deleted""" % str(previousTotal - newTotal)) self.setBody("""Dear Vidyo Manager,<br /> <br /> A cleanup was successfully executed for old Vidyo rooms in <a href="%s">%s</a>.<br /> All rooms attached to events finishing before %s (%s, server timezone) were deleted in the Vidyo server.<br /> There were %s rooms before the operation and there are %s rooms left now.<br /> """ % (MailTools.getServerName(), MailTools.getServerName(), formatDateTime(getAdjustedDate(maxDate, tz=serverTimezone)), serverTimezone, str(previousTotal), str(newTotal)))
def __init__(self, user, role, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setSubject("""You have been chosen as a %s for "%s" """% (role, conference.getTitle())) if role == 'Referee': url = url_for('event_mgmt.confListContribToJudge', conference, _external=True) elif role == 'Layout Reviewer': url = url_for('event_mgmt.confListContribToJudge-asEditor', conference, _external=True) elif role == 'Content Reviewer': url = url_for('event_mgmt.confListContribToJudge-asReviewer', conference, _external=True) self.setBody("""Dear %s, You have been chosen as a %s for the paper entitled "%s" (id: %s) for the conference "%s". Please find the %s utilities here: %s Kind regards, Indico on behalf of "%s" """ % (user.full_name.encode('utf-8'), role, contribution.title.encode('utf-8'), str(contribution.friendly_id), conference.getTitle(), role, url, conference.getTitle()))
def __init__(self, user, role, contribution): GenericNotification.__init__(self) conference = contribution.event_new.as_legacy self.setFromAddr("Indico <%s>" % Config.getInstance().getNoReplyEmail()) self.setToList([user.email]) self.setSubject("""You have been chosen as a %s for "%s" """% (role, conference.getTitle())) if role == 'Referee': url = url_for('event_mgmt.confListContribToJudge', conference, _external=True) elif role == 'Layout Reviewer': url = url_for('event_mgmt.confListContribToJudge-asEditor', conference, _external=True) elif role == 'Content Reviewer': url = url_for('event_mgmt.confListContribToJudge-asReviewer', conference, _external=True) self.setBody("""Dear %s, You have been chosen as a %s for the paper entitled "%s" (id: %s) for the conference "%s". Please find the %s utilities here: %s Kind regards, Indico on behalf of "%s" """ % ( user.full_name, role, contribution.title, str(contribution.friendly_id), conference.getTitle(), role, url, conference.getTitle()))
def __init__(self, room, userList): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>" % Config.getInstance().getSupportEmail()) self.setToList(userList)
def __init__(self, sendToList, fromEmail, fromName ="Indico Mailer"): GenericNotification.__init__(self) self.setContentType("text/html") self.setFromAddr("%s<%s>"%(fromName, fromEmail)) self.setToList(sendToList)
def __init__(self, sendToList, fromEmail): GenericNotification.__init__(self) self.setContentType("text/html") self.setFromAddr("Indico Mailer<%s>"%fromEmail) self.setToList(sendToList)
def __init__(self, room, userList): GenericNotification.__init__(self) self.setFromAddr("Indico Mailer <%s>"%Config.getInstance().getSupportEmail()) self.setToList(userList)
def __init__(self, sendToList, fromEmail, fromName="Indico Mailer"): GenericNotification.__init__(self) self.setContentType("text/html") self.setFromAddr("%s<%s>" % (fromName, fromEmail)) self.setToList(sendToList)