Changeset 55b3c5 in indico


Ignore:
Timestamp:
11/18/10 17:50:51 (3 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
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)
Message:

[FIX] Simplify rb email subject

  • subject of indico roombooking emails were simplified
  • fix#528
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/rb_reservation.py

    r05de6f r55b3c5  
    7171 
    7272# Room booking module notifications will be send to this e-mail when debug is on 
    73 NOTIFICATION_SUBJECT_PREFIX = "[CRBS] " 
     73NOTIFICATION_SUBJECT_PREFIX = "" 
    7474 
    7575# Carbon copy of ALL room booking notifications will be send to this email 
     
    150150 
    151151            if self.isConfirmed: 
    152                 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] You have made a New Booking on " + formatDateTime(self.startDT) 
     152                subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + formatDateTime(self.startDT) 
    153153                wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingInsertion' ) 
    154154            else: 
    155                 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Your PRE-Booking waits for Acceptance" 
     155                subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] PRE-Booking waiting Acceptance" 
    156156                wc = WTemplated( 'RoomBookingEmail_2UserAfterPreBookingInsertion' ) 
    157157            text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    177177 
    178178        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) 
    180180            bookingMessage = "Book" 
    181181        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) 
    183183            bookingMessage = "PRE-book" 
    184184        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingInsertion' ) 
     
    204204            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    205205            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) 
    207207                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 
    208208                text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) 
     
    248248            to2 = self._getContactEmailList() 
    249249 
    250             subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText 
     250            subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText 
    251251            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingCancellation' ) 
    252252            text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'date':date, 'firstName':firstName } ) 
     
    271271        toCustom = self._getNotificationEmailList() 
    272272 
    273         subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText 
     273        subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText 
    274274        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingCancellation' ) 
    275275        text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'date':date } ) 
     
    293293            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    294294            if to: 
    295                 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Booking Cancelled on " + startDate 
     295                subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Cancelled on " + startDate 
    296296                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingCancellation' ) 
    297297                text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) 
     
    338338            to2 = self._getContactEmailList() 
    339339 
    340             subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText 
     340            subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText 
    341341            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingRejection' ) 
    342342            text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName, 'reason':reason, 'date':date } ) 
     
    360360        toCustom = self._getNotificationEmailList() 
    361361 
    362         subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText 
     362        subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText 
    363363        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingRejection' ) 
    364364        text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'date':date, 'reason':reason } ) 
     
    400400            to2 = self._getContactEmailList() 
    401401 
    402             subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
     402            subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
    403403            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingConfirmation' ) 
    404404            text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    422422        toCustom = self._getNotificationEmailList() 
    423423 
    424         subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
     424        subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
    425425        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingConfirmation' ) 
    426426        text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self } ) 
     
    441441            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    442442            if to: 
    443                 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] New Booking on " + startDate 
     443                subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + startDate 
    444444                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 
    445445                text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) 
     
    480480            to2 = self._getContactEmailList() 
    481481 
    482             subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Booking Modified on " + startDate 
     482            subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Modified on " + startDate 
    483483            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingModification' ) 
    484484            text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    503503        toCustom = self._getNotificationEmailList() 
    504504 
    505         subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Booking Modified on " + startDate 
     505        subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Modified on " + startDate 
    506506        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingModification' ) 
    507507        text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self } ) 
     
    525525            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    526526            if to: 
    527                 subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Modified booking on " + startDate 
     527                subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Modified booking on " + startDate 
    528528                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingModification' ) 
    529529                text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation': self } ) 
     
    566566            to2 = self._getContactEmailList() 
    567567 
    568             subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate 
     568            subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate 
    569569            wc = WTemplated( 'RoomBookingEmail_2UserRequestProlongation' ) 
    570570            text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    600600        toCustom = self._getNotificationEmailList() 
    601601 
    602         subject = NOTIFICATION_SUBJECT_PREFIX + " [" + self.room.getFullName() + "] Consider Rejecting This Booking" 
     602        subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Consider Rejecting This Booking" 
    603603        wc = WTemplated( 'RoomBookingEmail_2ResponsibleConsiderRejecting' ) 
    604604        text = TEST_VERSION_WARNING + wc.getHTML( { 'reservation':self } ) 
Note: See TracChangeset for help on using the changeset viewer.