Changeset 55b3c5 in indico
- Timestamp:
- 11/18/10 17:50:51 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 4c7d4152dff271ba5df5a8606605969cab454080
- Children:
- 9043f3
- Parents:
- 156859
- git-author:
- Leszek Syroka <leszek.marek.syroka@…> (11/17/10 16:50:50)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (11/18/10 17:50:51)
- File:
-
- 1 edited
-
indico/MaKaC/rb_reservation.py (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/rb_reservation.py
r05de6f r55b3c5 71 71 72 72 # Room booking module notifications will be send to this e-mail when debug is on 73 NOTIFICATION_SUBJECT_PREFIX = " [CRBS]"73 NOTIFICATION_SUBJECT_PREFIX = "" 74 74 75 75 # Carbon copy of ALL room booking notifications will be send to this email … … 150 150 151 151 if self.isConfirmed: 152 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] You have made aNew Booking on " + formatDateTime(self.startDT)152 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 153 153 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingInsertion' ) 154 154 else: 155 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Your PRE-Booking waits forAcceptance"155 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] PRE-Booking waiting Acceptance" 156 156 wc = WTemplated( 'RoomBookingEmail_2UserAfterPreBookingInsertion' ) 157 157 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 177 177 178 178 if self.isConfirmed: 179 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT)179 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 180 180 bookingMessage = "Book" 181 181 else: 182 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] New PRE-Booking on " + formatDateTime(self.startDT)182 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New PRE-Booking on " + formatDateTime(self.startDT) 183 183 bookingMessage = "PRE-book" 184 184 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingInsertion' ) … … 204 204 to = Location.parse( self.locationName ).getAVCSupportEmails() 205 205 if to: 206 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT)206 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 207 207 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 208 208 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) … … 248 248 to2 = self._getContactEmailList() 249 249 250 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText250 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText 251 251 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingCancellation' ) 252 252 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'date':date, 'firstName':firstName } ) … … 271 271 toCustom = self._getNotificationEmailList() 272 272 273 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText273 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText 274 274 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingCancellation' ) 275 275 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'date':date } ) … … 293 293 to = Location.parse( self.locationName ).getAVCSupportEmails() 294 294 if to: 295 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Booking Cancelled on " + startDate295 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Cancelled on " + startDate 296 296 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingCancellation' ) 297 297 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) … … 338 338 to2 = self._getContactEmailList() 339 339 340 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText340 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText 341 341 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingRejection' ) 342 342 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName, 'reason':reason, 'date':date } ) … … 360 360 toCustom = self._getNotificationEmailList() 361 361 362 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText362 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText 363 363 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingRejection' ) 364 364 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'date':date, 'reason':reason } ) … … 400 400 to2 = self._getContactEmailList() 401 401 402 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Confirmed Booking on " + startDate402 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 403 403 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingConfirmation' ) 404 404 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 422 422 toCustom = self._getNotificationEmailList() 423 423 424 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Confirmed Booking on " + startDate424 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 425 425 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingConfirmation' ) 426 426 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self } ) … … 441 441 to = Location.parse( self.locationName ).getAVCSupportEmails() 442 442 if to: 443 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] New Booking on " + startDate443 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + startDate 444 444 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 445 445 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) … … 480 480 to2 = self._getContactEmailList() 481 481 482 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Booking Modified on " + startDate482 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Modified on " + startDate 483 483 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingModification' ) 484 484 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 503 503 toCustom = self._getNotificationEmailList() 504 504 505 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Booking Modified on " + startDate505 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Modified on " + startDate 506 506 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingModification' ) 507 507 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self } ) … … 525 525 to = Location.parse( self.locationName ).getAVCSupportEmails() 526 526 if to: 527 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Modified booking on " + startDate527 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Modified booking on " + startDate 528 528 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingModification' ) 529 529 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) … … 566 566 to2 = self._getContactEmailList() 567 567 568 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate568 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate 569 569 wc = WTemplated( 'RoomBookingEmail_2UserRequestProlongation' ) 570 570 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) … … 600 600 toCustom = self._getNotificationEmailList() 601 601 602 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Consider Rejecting This Booking"602 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Consider Rejecting This Booking" 603 603 wc = WTemplated( 'RoomBookingEmail_2ResponsibleConsiderRejecting' ) 604 604 text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self } )
Note: See TracChangeset
for help on using the changeset viewer.
