Changeset e92836 in indico


Ignore:
Timestamp:
02/17/11 17:20:11 (2 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, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
8ca1b0
Parents:
08b56c
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (01/18/11 15:45:34)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (02/17/11 17:20:11)
Message:

[FIX] Use proper email subjects and add pay link

  • Do not use "new registrant" subject in payment emails
  • Include payment link in payment summary email
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/registration.py

    r08b56c re92836  
    794794        idRegistrant=registrant.getIdPay() 
    795795        detailPayment=registrant.getConference().getModPay().getPaymentDetails() 
    796         subject=_("""New registrant in '%s': %s - payment""")%(strip_ml_tags(registrant.getConference().getTitle()), registrant.getFullName()) 
     796        subject=_("""Payment summary for '%s': %s""")%(strip_ml_tags(registrant.getConference().getTitle()), registrant.getFullName()) 
    797797        body= _(""" 
    798798Please use this information for your payment (except for e-payment):\n 
     
    852852        #    GenericMailer.send(GenericNotification(maildata)) 
    853853        # send email to participants 
     854        paymentMsg = _("If you haven't paid for your registration yet, you can do it at %s") % urlHandlers.UHConfRegistrationFormCreationDone.getURL(registrant) 
    854855        if registrant.getEmail().strip() != "": 
    855             bodyReg = _("""%s\n\n%s\n\n%s""")%( 
     856            bodyReg = _("""%s\n\n%s\n\n%s\n\n%s""")%( 
    856857                registrant.getConference().getModPay().getPaymentReceiptMsg(), 
    857                 "\n".join(booking), body) 
     858                "\n".join(booking), body, paymentMsg) 
    858859            to=registrant.getEmail().strip() 
    859860            maildata = { "fromAddr": fromAddr, "toList": [to], "subject": subject, "body": bodyReg } 
     
    866867        idRegistrant=registrant.getIdPay() 
    867868 
    868         subject= _("""New registrant in '%s': %s""")%(strip_ml_tags(registrant.getConference().getTitle()), registrant.getFullName()) 
     869        subject= _("""Payment successful for '%s': %s""")%(strip_ml_tags(registrant.getConference().getTitle()), registrant.getFullName()) 
    869870        body= _("""- detail of payment  : \n%s 
    870871- date conference    : %s 
Note: See TracChangeset for help on using the changeset viewer.