def _getBookingDetails(self, typeOfMail): return """ Booking / request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Type:</strong> </td> <td style="vertical-align: top;"> %(type)s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>id:</strong> </td> <td style="vertical-align: top;"> %(id)s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Modification link:</strong> </td> <td style="vertical-align: top;"> <a href="%(modifURL)s">link</a> </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %(creationDate)s </td> </tr> %(modificationDate)s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Booking parameters:</strong> </td> <td style="vertical-align: top;"> %(bookingParams)s </td> </tr> </table> """ % { "type": self._booking.getType(), "id": self._booking.getId(), "modifURL": self._modifLink, "creationDate": MailTools.bookingCreationDate(self._booking), "modificationDate": MailTools.bookingModificationDate(self._booking, typeOfMail), "bookingParams": beautify(self._bp) }
def _getRequestDetails(self, typeOfMail): bp = self._bp return """ Request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Request id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Talk(s) to be webcasted:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td colspan="2"> <strong>Audience:</strong><br /> %s </td> </tr> <tr> <td colspan="2"> <strong>Additional comments:</strong><br /> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>List of talks to be webcasted:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """ % (self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), self._getTalksShortMessage(), self._bp["audience"] or _("Public"), self._getComments(), self._getTalks())
def _getBookingDetails(self, typeOfMail): return """ Booking / request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Type:</strong> </td> <td style="vertical-align: top;"> %(type)s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>id:</strong> </td> <td style="vertical-align: top;"> %(id)s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Modification link:</strong> </td> <td style="vertical-align: top;"> <a href="%(modifURL)s">link</a> </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %(creationDate)s </td> </tr> %(modificationDate)s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Booking parameters:</strong> </td> <td style="vertical-align: top;"> %(bookingParams)s </td> </tr> </table> """%{"type": self._booking.getType(), "id" : self._booking.getId(), "modifURL": self._modifLink, "creationDate": MailTools.bookingCreationDate(self._booking), "modificationDate": MailTools.bookingModificationDate(self._booking, typeOfMail), "bookingParams": beautify(self._bp) }
def _getRequestDetails(self, typeOfMail): bp = self._bp return """ Request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Request id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Talk(s) to be recorded:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Posting urgency:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of remote viewers:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of attendees:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td colspan="2"> <strong>Additional comments:</strong><br /> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>List of talks to be recorded:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """ % (self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), self._getTalksShortMessage(), dict(postingUrgency)[bp['postingUrgency']], str(bp['numRemoteViewers']), str(bp['numAttendees']), self._getComments(), self._getTalks())
def _getBookingDetails(self, typeOfMail): bp = self._bp return """ Public room details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Booking id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Public room name:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Room owner:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Public room description:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Pin yes/no:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Manager chose to show PIN:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Auto-join URL:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Visibilty:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """ % ( self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), bp["roomName"], self._getOwnerText(), bp["roomDescription"], self._getHasPin(), self._getShowPin(), self._getAutoJoinURL(typeOfMail), self._getVisibility(), )
def _getRequestDetails(self, typeOfMail): bp = self._bp return """ Request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Request id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Talk(s) to be recorded:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Posting urgency:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of remote viewers:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of attendees:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td colspan="2"> <strong>Additional comments:</strong><br /> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>List of talks to be recorded:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """ % (self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate( self._booking, typeOfMail), self._getTalksShortMessage(), dict(postingUrgency)[bp['postingUrgency']], str(bp['numRemoteViewers']), str(bp['numAttendees']), self._getComments(), self._getTalks())
def _getBookingDetails(self, typeOfMail): bp = self._bp return """ Request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Booking id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Meeting title:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Meeting description:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Community:</strong> </td> <td style="vertical-align: top;"> %s (id: %s) </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Phone bridge ID:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Start date:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>End date:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Access password yes/no:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Auto-join URL:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """%(self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), bp["meetingTitle"], bp["meetingDescription"], self._booking.getCommunityName(), bp["communityId"], self._booking.getPhoneBridgeId(), formatDateTime(self._booking.getAdjustedStartDate()), formatDateTime(self._booking.getAdjustedEndDate()), self._getHasAccessPassword(), self._getAutoJoinURL(typeOfMail) )
def _getRequestDetails(self, typeOfMail): bp = self._bp return """ Request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Request id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Talk(s) to be recorded:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td colspan="2"> <strong>Comments about talk selection</strong><br /> %s </td> </tr> <tr> <td colspan="2"> <strong>Have all the speakers given permission to have their talks recorded?</strong> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Lecture options:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Type of event:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Posting urgency:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of remote viewers:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of attendees:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Recording purpose(s):</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Intended audience(s):</strong> </td> <td style="vertical-align: top; white-space : nowrap;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Subject matter(s):</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td colspan="2"> <strong>Additional comments:</strong><br /> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>List of talks to be recorded:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """%(self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), self._getTalksShortMessage(), self._getTalkSelectionComments(), bp["permission"], dict(lectureOptions)[bp["lectureOptions"]], dict(typeOfEvents)[bp['lectureStyle']], dict(postingUrgency)[bp['postingUrgency']], bp['numRemoteViewers'], bp['numAttendees'], self._getPurposes(), self._getAudiences(), self._getMatters(), self._getComments(), self._getTalks() )
def _getBookingDetails(self, typeOfMail): bp = self._bp return """ Public room details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Booking id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Public room name:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Room owner:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Public room description:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Pin yes/no:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Manager chose to show PIN:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Auto-join URL:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Visibilty:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """ % (self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), bp["roomName"], self._getOwnerText(), bp["roomDescription"], self._getHasPin(), self._getShowPin(), self._getAutoJoinURL(typeOfMail), self._getVisibility(), )
def _getRequestDetails(self, typeOfMail): bp = self._bp return """ Request details:<br /> <table style="border-spacing: 10px 10px;"> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Request id:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Creation date:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> %s <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Talk(s) to be webcasted:</strong> </td> <td style="vertical-align: top;"> %s </td> </tr> <tr> <td colspan="2"> <strong>Comments about talk selection</strong><br /> %s </td> </tr> <tr> <td colspan="2"> <strong>Have all the speakers given permission to have their talks webcasted?</strong> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Lecture options:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Type of event:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Posting urgency:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of webcast viewers:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of recording viewers:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Number of attendees:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Webcast purpose(s):</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Intended audience(s):</strong> </td> <td style="vertical-align: top; white-space : nowrap;"> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>Subject matter(s):</strong> </td> <td style="vertical-align: top"> %s </td> </tr> <tr> <td colspan="2"> <strong>Additional comments:</strong><br /> %s </td> </tr> <tr> <td style="vertical-align: top; white-space : nowrap;"> <strong>List of talks to be webcasted:</strong> </td> <td style="vertical-align: top"> %s </td> </tr> </table> """ % (self._booking.getId(), MailTools.bookingCreationDate(self._booking), MailTools.bookingModificationDate(self._booking, typeOfMail), self._getTalksShortMessage(), self._getTalkSelectionComments(), bp["permission"], dict(lectureOptions)[bp["lectureOptions"]], dict(typeOfEvents)[bp['lectureStyle']], dict(postingUrgency)[bp['postingUrgency']], bp['numWebcastViewers'], bp['numRecordingViewers'], bp['numAttendees'], self._getPurposes(), self._getAudiences(), self._getMatters(), self._getComments(), self._getTalks())