Changeset 2ba3ab in indico
- Timestamp:
- 05/18/11 14:54:52 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 4c7d4152dff271ba5df5a8606605969cab454080
- Children:
- 6dc695
- Parents:
- 345890
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (04/11/11 14:28:02)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (05/18/11 14:54:52)
- File:
-
- 1 edited
-
indico/MaKaC/rb_reservation.py (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/rb_reservation.py
r345890 r2ba3ab 67 67 EMAIL_FROM_PREFIX = "noreply-" 68 68 69 # Room booking module notifications will be send to this e-mail when debug is on70 NOTIFICATION_SUBJECT_PREFIX = ""71 72 69 # Carbon copy of ALL room booking notifications will be send to this email 73 70 EMAIL_FOR_CATCH_ALL_NOTIFICATIONS = "" … … 147 144 148 145 if self.isConfirmed: 149 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT)146 subject = "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 150 147 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingInsertion' ) 151 148 else: 152 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] PRE-Booking waiting Acceptance"149 subject = "[" + self.room.getFullName() + "] PRE-Booking waiting Acceptance" 153 150 wc = WTemplated( 'RoomBookingEmail_2UserAfterPreBookingInsertion' ) 154 151 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 174 171 175 172 if self.isConfirmed: 176 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT)173 subject = "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 177 174 bookingMessage = "Book" 178 175 else: 179 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] New PRE-Booking on " + formatDateTime(self.startDT)176 subject = "[" + self.room.getFullName() + "] New PRE-Booking on " + formatDateTime(self.startDT) 180 177 bookingMessage = "PRE-book" 181 178 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingInsertion' ) … … 201 198 to = Location.parse( self.locationName ).getAVCSupportEmails() 202 199 if to: 203 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT)200 subject = "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 204 201 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 205 202 text = wc.getHTML( { 'reservation': self } ) … … 245 242 to2 = self._getContactEmailList() 246 243 247 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText244 subject = "[" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText 248 245 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingCancellation' ) 249 246 text = wc.getHTML( { 'reservation':self, 'date':date, 'firstName':firstName } ) … … 268 265 toCustom = self._getNotificationEmailList() 269 266 270 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText267 subject = "[" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText 271 268 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingCancellation' ) 272 269 text = wc.getHTML( { 'reservation':self, 'date':date } ) … … 290 287 to = Location.parse( self.locationName ).getAVCSupportEmails() 291 288 if to: 292 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Booking Cancelled on " + startDate289 subject = "[" + self.room.getFullName() + "] Booking Cancelled on " + startDate 293 290 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingCancellation' ) 294 291 text = wc.getHTML( { 'reservation': self } ) … … 335 332 to2 = self._getContactEmailList() 336 333 337 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText334 subject = "[" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText 338 335 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingRejection' ) 339 336 text = wc.getHTML( { 'reservation':self, 'firstName':firstName, 'reason':reason, 'date':date } ) … … 357 354 toCustom = self._getNotificationEmailList() 358 355 359 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText356 subject = "[" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText 360 357 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingRejection' ) 361 358 text = wc.getHTML( { 'reservation':self, 'date':date, 'reason':reason } ) … … 397 394 to2 = self._getContactEmailList() 398 395 399 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Confirmed Booking on " + startDate396 subject = "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 400 397 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingConfirmation' ) 401 398 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 419 416 toCustom = self._getNotificationEmailList() 420 417 421 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Confirmed Booking on " + startDate418 subject = "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 422 419 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingConfirmation' ) 423 420 text = wc.getHTML( { 'reservation':self } ) … … 438 435 to = Location.parse( self.locationName ).getAVCSupportEmails() 439 436 if to: 440 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] New Booking on " + startDate437 subject = "[" + self.room.getFullName() + "] New Booking on " + startDate 441 438 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 442 439 text = wc.getHTML( { 'reservation': self } ) … … 477 474 to2 = self._getContactEmailList() 478 475 479 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Booking Modified on " + startDate476 subject = "[" + self.room.getFullName() + "] Booking Modified on " + startDate 480 477 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingModification' ) 481 478 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 500 497 toCustom = self._getNotificationEmailList() 501 498 502 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Booking Modified on " + startDate499 subject = "[" + self.room.getFullName() + "] Booking Modified on " + startDate 503 500 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingModification' ) 504 501 text = wc.getHTML( { 'reservation':self } ) … … 522 519 to = Location.parse( self.locationName ).getAVCSupportEmails() 523 520 if to: 524 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Modified booking on " + startDate521 subject = "[" + self.room.getFullName() + "] Modified booking on " + startDate 525 522 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingModification' ) 526 523 text = wc.getHTML( { 'reservation': self } ) … … 563 560 to2 = self._getContactEmailList() 564 561 565 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate562 subject = "[" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate 566 563 wc = WTemplated( 'RoomBookingEmail_2UserRequestProlongation' ) 567 564 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 597 594 toCustom = self._getNotificationEmailList() 598 595 599 subject = NOTIFICATION_SUBJECT_PREFIX +"[" + self.room.getFullName() + "] Consider Rejecting This Booking"596 subject = "[" + self.room.getFullName() + "] Consider Rejecting This Booking" 600 597 wc = WTemplated( 'RoomBookingEmail_2ResponsibleConsiderRejecting' ) 601 598 text = wc.getHTML( { 'reservation':self } )
Note: See TracChangeset
for help on using the changeset viewer.
