Changeset 45a4a3 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, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
880a3e, 66d952
Parents:
f8d0a1
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (04/11/11 14:38:04)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (05/18/11 14:54:52)
Message:

[MIN] Get rid of EMAIL_FROM_PREFIX

  • in favor of MaKaCInfo.getNoReplyEmail
  • fixes #728
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/rb_reservation.py

    rf8d0a1 r45a4a3  
    6363    week2desc = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ] 
    6464 
    65 # Room booking module notifications will be send to this e-mail when debug is on 
    66 EMAIL_FROM_PREFIX = "noreply-" 
    67  
    6865class ReservationBase( object ): 
    6966    """ 
     
    145142                wc = WTemplated( 'RoomBookingEmail_2UserAfterPreBookingInsertion' ) 
    146143            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
    147             fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     144            fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    148145            addrs = [] 
    149146            if to: 
     
    169166        text = wc.getHTML( { 'reservation':self, 'bookingMessage': bookingMessage } ) 
    170167 
    171         fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     168        fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    172169        addrs = [] 
    173170        addrs.append( toMain ) 
     
    186183                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 
    187184                text = wc.getHTML( { 'reservation': self } ) 
    188                 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     185                fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    189186                addrs = [] 
    190187                addrs += to 
     
    224221            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingCancellation' ) 
    225222            text = wc.getHTML( { 'reservation':self, 'date':date, 'firstName':firstName } ) 
    226             fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     223            fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    227224            addrs = [] 
    228225            if to: 
     
    242239        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingCancellation' ) 
    243240        text = wc.getHTML( { 'reservation':self, 'date':date } ) 
    244         fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     241        fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    245242        addrs = [] 
    246243        addrs.append( toMain ) 
     
    259256                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingCancellation' ) 
    260257                text = wc.getHTML( { 'reservation': self } ) 
    261                 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     258                fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    262259                addrs = [] 
    263260                addrs += to 
     
    298295            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingRejection' ) 
    299296            text = wc.getHTML( { 'reservation':self, 'firstName':firstName, 'reason':reason, 'date':date } ) 
    300             fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     297            fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    301298            addrs = [] 
    302299            if to: 
     
    315312        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingRejection' ) 
    316313        text = wc.getHTML( { 'reservation':self, 'date':date, 'reason':reason } ) 
    317         fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     314        fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    318315        addrs = [] 
    319316        addrs.extend( toCustom ) 
     
    349346            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingConfirmation' ) 
    350347            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
    351             fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     348            fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    352349            addrs = [] 
    353350            if to: 
     
    366363        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingConfirmation' ) 
    367364        text = wc.getHTML( { 'reservation':self } ) 
    368         fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     365        fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    369366        addrs = [] 
    370367        addrs.extend( toCustom ) 
     
    380377                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 
    381378                text = wc.getHTML( { 'reservation': self } ) 
    382                 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     379                fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    383380                addrs = [] 
    384381                addrs += to 
     
    413410            wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingModification' ) 
    414411            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
    415             fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     412            fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    416413            addrs = [] 
    417414            if to: 
     
    431428        wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingModification' ) 
    432429        text = wc.getHTML( { 'reservation':self } ) 
    433         fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     430        fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    434431        addrs = [] 
    435432        addrs.append( toMain ) 
     
    448445                wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingModification' ) 
    449446                text = wc.getHTML( { 'reservation': self } ) 
    450                 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     447                fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    451448                addrs = [] 
    452449                addrs += to 
     
    483480            wc = WTemplated( 'RoomBookingEmail_2UserRequestProlongation' ) 
    484481            text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 
    485             fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     482            fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    486483            addrs = [] 
    487484            if to: 
     
    511508        wc = WTemplated( 'RoomBookingEmail_2ResponsibleConsiderRejecting' ) 
    512509        text = wc.getHTML( { 'reservation':self } ) 
    513         fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail() 
     510        fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 
    514511        addrs = [] 
    515512        addrs.append( toMain ) 
Note: See TracChangeset for help on using the changeset viewer.