예제 #1
0
 def sendParticipantsEmail(self, operation):
     params = self.getBookingParams()
     try:
         if params.has_key('sendAttendeesEmail') and params['sendAttendeesEmail'][0].lower() == 'yes':
             recipients = []
             for k in self._participants.keys():
                 recipients.append( self._participants[k]._email )
             if len(recipients)>0:
                 if operation == 'remove':
                     notification = WebExParticipantNotification( self,recipients, operation )
                     GenericMailer.send( notification )
                 else:
                     notification = WebExParticipantNotification( self,recipients, operation, additionalText="This is a WebEx meeting invitation.<br/><br/>" )
                     GenericMailer.send( notification )
         if params.has_key('sendCreatorEmail') and params['sendCreatorEmail'][0].lower() == 'yes':
             recipients = MailTools.getManagersEmailList(self.getConference(), 'WebEx')
             notification = WebExParticipantNotification( self,recipients, operation, additionalText="Dear event manager:<br/><br/>\n\n  " )
             GenericMailer.send( notification )
         if params.has_key('sendSelfEmail') and params['sendSelfEmail'][0].lower() == 'yes' and params.has_key("loggedInEmail") and params["loggedInEmail"] != "":
             recipients = [ params["loggedInEmail"] ]
             notification = WebExParticipantNotification( self,recipients, operation, additionalText="You are receiving this email because you requested it when creating a WebEx booking via Indico.<br/><br/>\n\n  " )
             GenericMailer.send( notification )
     except Exception,e:
         Logger.get('WebEx').error(
             """Could not send participant email for booking with id %s of event with id %s, operation %s, exception: %s""" %
             (self.getId(), self.getConference().getId(), operation, str(e)))
         Logger.get('WebEx').error( MailTools.getManagersEmailList(self.getConference(), 'WebEx') )
         self._warning = _("The operation appears to have been successful, however there was an error in sending the emails to participants: %s" % str(e) )
예제 #2
0
 def sendParticipantsEmail(self, operation):
     params = self.getBookingParams()
     try:
         if params.has_key('sendAttendeesEmail') and params[
                 'sendAttendeesEmail'][0].lower() == 'yes':
             recipients = []
             for k in self._participants.keys():
                 recipients.append(self._participants[k]._email)
             if len(recipients) > 0:
                 if operation == 'remove':
                     notification = WebExParticipantNotification(
                         self, recipients, operation)
                     GenericMailer.send(notification)
                 else:
                     notification = WebExParticipantNotification(
                         self,
                         recipients,
                         operation,
                         additionalText=
                         "This is a WebEx meeting invitation.<br/><br/>")
                     GenericMailer.send(notification)
         if params.has_key('sendCreatorEmail') and params[
                 'sendCreatorEmail'][0].lower() == 'yes':
             recipients = MailTools.getManagersEmailList(
                 self.getConference(), 'WebEx')
             notification = WebExParticipantNotification(
                 self,
                 recipients,
                 operation,
                 additionalText="Dear event manager:<br/><br/>\n\n  ")
             GenericMailer.send(notification)
         if params.has_key('sendSelfEmail') and params['sendSelfEmail'][
                 0].lower() == 'yes' and params.has_key(
                     "loggedInEmail") and params["loggedInEmail"] != "":
             recipients = [params["loggedInEmail"]]
             notification = WebExParticipantNotification(
                 self,
                 recipients,
                 operation,
                 additionalText=
                 "You are receiving this email because you requested it when creating a WebEx booking via Indico.<br/><br/>\n\n  "
             )
             GenericMailer.send(notification)
     except Exception, e:
         Logger.get('WebEx').error(
             """Could not send participant email for booking with id %s of event with id %s, operation %s, exception: %s"""
             % (self.getId(), self.getConference().getId(), operation,
                str(e)))
         Logger.get('WebEx').error(
             MailTools.getManagersEmailList(self.getConference(), 'WebEx'))
         self._warning = _(
             "The operation appears to have been successful, however there was an error in sending the emails to participants: %s"
             % str(e))
예제 #3
0
파일: mail.py 프로젝트: bubbas/indico
 def __init__(self, booking):
     RecordingRequestNotificationBase.__init__(self, booking)
     self.setToList(MailTools.getManagersEmailList(self._conference, 'RecordingRequest'))
예제 #4
0
파일: mail.py 프로젝트: sylvestre/indico
 def __init__(self, booking):
     VidyoNotificationBase.__init__(self, booking)
     self.setToList(
         MailTools.getManagersEmailList(self._conference, 'Vidyo'))
예제 #5
0
 def __init__(self, booking):
     WebcastRequestNotificationBase.__init__(self, booking)
     self.setToList(
         MailTools.getManagersEmailList(self._conference, 'WebcastRequest'))
예제 #6
0
파일: mail.py 프로젝트: VishrutMehta/indico
 def __init__(self, booking):
     EVONotificationBase.__init__(self, booking)
     self.setToList(MailTools.getManagersEmailList(self._conference, 'EVO'))