Changeset 2ba3ab in indico


Ignore:
Timestamp:
05/18/11 14:54:52 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
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)
Message:

[MIN] Get rid of NOTIFICATION_SUBJECT_PREFIX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/rb_reservation.py

    r345890 r2ba3ab  
    6767EMAIL_FROM_PREFIX = "noreply-" 
    6868 
    69 # Room booking module notifications will be send to this e-mail when debug is on 
    70 NOTIFICATION_SUBJECT_PREFIX = "" 
    71  
    7269# Carbon copy of ALL room booking notifications will be send to this email 
    7370EMAIL_FOR_CATCH_ALL_NOTIFICATIONS = "" 
     
    147144 
    148145            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) 
    150147                wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingInsertion' ) 
    151148            else: 
    152                 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] PRE-Booking waiting Acceptance" 
     149                subject = "[" + self.room.getFullName() + "] PRE-Booking waiting Acceptance" 
    153150                wc = WTemplated( 'RoomBookingEmail_2UserAfterPreBookingInsertion' ) 
    154151            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    174171 
    175172        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) 
    177174            bookingMessage = "Book" 
    178175        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) 
    180177            bookingMessage = "PRE-book" 
    181178        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingInsertion' ) 
     
    201198            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    202199            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) 
    204201                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 
    205202                text = wc.getHTML( { 'reservation': self } ) 
     
    245242            to2 = self._getContactEmailList() 
    246243 
    247             subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText 
     244            subject = "[" + self.room.getFullName() + "] Cancellation Confirmation on " + startDate + " %s" % occurrenceText 
    248245            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingCancellation' ) 
    249246            text = wc.getHTML( { 'reservation':self, 'date':date, 'firstName':firstName } ) 
     
    268265        toCustom = self._getNotificationEmailList() 
    269266 
    270         subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText 
     267        subject = "[" + self.room.getFullName() + "] Cancelled Booking on " + startDate + " %s" % occurrenceText 
    271268        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingCancellation' ) 
    272269        text = wc.getHTML( { 'reservation':self, 'date':date } ) 
     
    290287            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    291288            if to: 
    292                 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Cancelled on " + startDate 
     289                subject = "[" + self.room.getFullName() + "] Booking Cancelled on " + startDate 
    293290                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingCancellation' ) 
    294291                text = wc.getHTML( { 'reservation': self } ) 
     
    335332            to2 = self._getContactEmailList() 
    336333 
    337             subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText 
     334            subject = "[" + self.room.getFullName() + "] REJECTED Booking on " + startDate + " %s" % occurrenceText 
    338335            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingRejection' ) 
    339336            text = wc.getHTML( { 'reservation':self, 'firstName':firstName, 'reason':reason, 'date':date } ) 
     
    357354        toCustom = self._getNotificationEmailList() 
    358355 
    359         subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText 
     356        subject = "[" + self.room.getFullName() + "] Rejected Booking on " + startDate + " %s" % occurrenceText 
    360357        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingRejection' ) 
    361358        text = wc.getHTML( { 'reservation':self, 'date':date, 'reason':reason } ) 
     
    397394            to2 = self._getContactEmailList() 
    398395 
    399             subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
     396            subject = "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
    400397            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingConfirmation' ) 
    401398            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    419416        toCustom = self._getNotificationEmailList() 
    420417 
    421         subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
     418        subject = "[" + self.room.getFullName() + "] Confirmed Booking on " + startDate 
    422419        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingConfirmation' ) 
    423420        text = wc.getHTML( { 'reservation':self } ) 
     
    438435            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    439436            if to: 
    440                 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] New Booking on " + startDate 
     437                subject = "[" + self.room.getFullName() + "] New Booking on " + startDate 
    441438                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 
    442439                text = wc.getHTML( { 'reservation': self } ) 
     
    477474            to2 = self._getContactEmailList() 
    478475 
    479             subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Modified on " + startDate 
     476            subject = "[" + self.room.getFullName() + "] Booking Modified on " + startDate 
    480477            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingModification' ) 
    481478            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    500497        toCustom = self._getNotificationEmailList() 
    501498 
    502         subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Booking Modified on " + startDate 
     499        subject = "[" + self.room.getFullName() + "] Booking Modified on " + startDate 
    503500        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingModification' ) 
    504501        text = wc.getHTML( { 'reservation':self } ) 
     
    522519            to = Location.parse( self.locationName ).getAVCSupportEmails() 
    523520            if to: 
    524                 subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Modified booking on " + startDate 
     521                subject = "[" + self.room.getFullName() + "] Modified booking on " + startDate 
    525522                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingModification' ) 
    526523                text = wc.getHTML( { 'reservation': self } ) 
     
    563560            to2 = self._getContactEmailList() 
    564561 
    565             subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate 
     562            subject = "[" + self.room.getFullName() + "] Request for Booking Prolongation on " + startDate 
    566563            wc = WTemplated( 'RoomBookingEmail_2UserRequestProlongation' ) 
    567564            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
     
    597594        toCustom = self._getNotificationEmailList() 
    598595 
    599         subject = NOTIFICATION_SUBJECT_PREFIX + "[" + self.room.getFullName() + "] Consider Rejecting This Booking" 
     596        subject = "[" + self.room.getFullName() + "] Consider Rejecting This Booking" 
    600597        wc = WTemplated( 'RoomBookingEmail_2ResponsibleConsiderRejecting' ) 
    601598        text = wc.getHTML( { 'reservation':self } ) 
Note: See TracChangeset for help on using the changeset viewer.