Changeset 45a4a3 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, 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)
- File:
-
- 1 edited
-
indico/MaKaC/rb_reservation.py (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/rb_reservation.py
rf8d0a1 r45a4a3 63 63 week2desc = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday' ] 64 64 65 # Room booking module notifications will be send to this e-mail when debug is on66 EMAIL_FROM_PREFIX = "noreply-"67 68 65 class ReservationBase( object ): 69 66 """ … … 145 142 wc = WTemplated( 'RoomBookingEmail_2UserAfterPreBookingInsertion' ) 146 143 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 147 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()144 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 148 145 addrs = [] 149 146 if to: … … 169 166 text = wc.getHTML( { 'reservation':self, 'bookingMessage': bookingMessage } ) 170 167 171 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()168 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 172 169 addrs = [] 173 170 addrs.append( toMain ) … … 186 183 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 187 184 text = wc.getHTML( { 'reservation': self } ) 188 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()185 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 189 186 addrs = [] 190 187 addrs += to … … 224 221 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingCancellation' ) 225 222 text = wc.getHTML( { 'reservation':self, 'date':date, 'firstName':firstName } ) 226 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()223 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 227 224 addrs = [] 228 225 if to: … … 242 239 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingCancellation' ) 243 240 text = wc.getHTML( { 'reservation':self, 'date':date } ) 244 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()241 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 245 242 addrs = [] 246 243 addrs.append( toMain ) … … 259 256 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingCancellation' ) 260 257 text = wc.getHTML( { 'reservation': self } ) 261 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()258 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 262 259 addrs = [] 263 260 addrs += to … … 298 295 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingRejection' ) 299 296 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) 301 298 addrs = [] 302 299 if to: … … 315 312 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingRejection' ) 316 313 text = wc.getHTML( { 'reservation':self, 'date':date, 'reason':reason } ) 317 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()314 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 318 315 addrs = [] 319 316 addrs.extend( toCustom ) … … 349 346 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingConfirmation' ) 350 347 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 351 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()348 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 352 349 addrs = [] 353 350 if to: … … 366 363 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingConfirmation' ) 367 364 text = wc.getHTML( { 'reservation':self } ) 368 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()365 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 369 366 addrs = [] 370 367 addrs.extend( toCustom ) … … 380 377 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingInsertion' ) 381 378 text = wc.getHTML( { 'reservation': self } ) 382 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()379 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 383 380 addrs = [] 384 381 addrs += to … … 413 410 wc = WTemplated( 'RoomBookingEmail_2UserAfterBookingModification' ) 414 411 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 415 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()412 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 416 413 addrs = [] 417 414 if to: … … 431 428 wc = WTemplated( 'RoomBookingEmail_2ResponsibleAfterBookingModification' ) 432 429 text = wc.getHTML( { 'reservation':self } ) 433 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()430 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 434 431 addrs = [] 435 432 addrs.append( toMain ) … … 448 445 wc = WTemplated( 'RoomBookingEmail_2AVCSupportAfterBookingModification' ) 449 446 text = wc.getHTML( { 'reservation': self } ) 450 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()447 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 451 448 addrs = [] 452 449 addrs += to … … 483 480 wc = WTemplated( 'RoomBookingEmail_2UserRequestProlongation' ) 484 481 text = wc.getHTML( { 'reservation':self, 'firstName':firstName } ) 485 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()482 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 486 483 addrs = [] 487 484 if to: … … 511 508 wc = WTemplated( 'RoomBookingEmail_2ResponsibleConsiderRejecting' ) 512 509 text = wc.getHTML( { 'reservation':self } ) 513 fromAddr = EMAIL_FROM_PREFIX+HelperMaKaCInfo.getMaKaCInfoInstance().getSupportEmail()510 fromAddr = HelperMaKaCInfo.getMaKaCInfoInstance().getNoReplyEmail(returnSupport=True) 514 511 addrs = [] 515 512 addrs.append( toMain )
Note: See TracChangeset
for help on using the changeset viewer.
