Changeset 8ca1b0 in indico
- Timestamp:
- 02/17/11 17:20:11 (2 years ago)
- 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:
- e6d9f55
- Parents:
- e92836
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (01/18/11 16:30:15)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (02/17/11 17:20:11)
- Location:
- indico/MaKaC
- Files:
-
- 5 edited
-
registration.py (modified) (6 diffs)
-
webinterface/pages/registrationForm.py (modified) (5 diffs)
-
webinterface/rh/registrationFormModif.py (modified) (1 diff)
-
webinterface/tpls/ConfModifRegForm.tpl (modified) (3 diffs)
-
webinterface/tpls/ConfModifRegFormDataModification.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/registration.py
re92836 r8ca1b0 126 126 form.setActivated(self.isActivated()) 127 127 form.setMandatoryAccount(self.isMandatoryAccount()) 128 form.setNotificationSender(self.getNotificationSender()) 128 129 form.setSendRegEmail(self.isSendRegEmail()) 129 130 form.setSendReceiptEmail(self.isSendReceiptEmail()) … … 206 207 def setMandatoryAccount(self, v=True): 207 208 self._mandatoryAccount = v 209 210 def setNotificationSender(self, sender): 211 self._notificationSender = sender 212 213 def getNotificationSender(self): 214 sender = None 215 try: 216 if self._notificationSender: 217 sender = self._notificationSender 218 except AttributeError, e: 219 pass 220 if not sender: 221 self._notificationSender = self._conf.getSupportEmail(returnNoReply=True).split(',', 1)[0] 222 return self._notificationSender 208 223 209 224 def isSendRegEmail(self): … … 728 743 Creates an email to be sent to the user after registration 729 744 """ 730 fromAddr =regForm.getConference().getSupportEmail(returnNoReply=True)745 fromAddr = regForm.getNotificationSender() 731 746 url = urlHandlers.UHConferenceDisplay.getURL(regForm.getConference()) 732 747 … … 789 804 if not registrant.getConference().getModPay().isEnableSendEmailPaymentDetails(): 790 805 return 791 fromAddr =registrant.getConference().getSupportEmail(returnNoReply=True)806 fromAddr = regForm.getNotificationSender() 792 807 date=registrant.getConference().getStartDate() 793 808 getTitle=strip_ml_tags(registrant.getConference().getTitle()) … … 862 877 863 878 def sendEmailNewRegistrantConfirmPay(self, regForm,registrant): 864 fromAddr =registrant.getConference().getSupportEmail(returnNoReply=True)879 fromAddr = regForm.getNotificationSender() 865 880 date=registrant.getConference().getStartDate() 866 881 getTitle=strip_ml_tags(registrant.getConference().getTitle()) … … 929 944 930 945 def sendEmailModificationRegistrant(self, regForm, rp): 931 fromAddr =regForm.getConference().getSupportEmail(returnNoReply=True)946 fromAddr = regForm.getNotificationSender() 932 947 subject= _("""Registration modified for '%s': %s""")%(strip_ml_tags(regForm.getConference().getTitle()), rp.getFullName()) 933 948 body= _(""" -
indico/MaKaC/webinterface/pages/registrationForm.py
rab85b3 r8ca1b0 214 214 vars["disablePic"]=quoteattr(str(Configuration.Config.getInstance().getSystemIconURL( "disabledSection" ))) 215 215 if regForm.isActivated(): 216 vars["activated"] = True 216 217 vars["changeTo"] = "False" 217 218 vars["status"] = _("ENABLED") … … 253 254 if not regForm.isMandatoryAccount(): 254 255 vars["mandatoryAccount"] = _("No") 256 vars["notificationSender"] = regForm.getNotificationSender() 255 257 vars["sendRegEmail"] = _("Yes") 256 258 if not regForm.isSendRegEmail(): … … 264 266 vars["Currency"]=regForm.getCurrency() 265 267 else: 268 vars["activated"] = False 266 269 vars["changeTo"] = "True" 267 270 vars["status"] =_("DISABLED") … … 279 282 vars["notification"] = "" 280 283 vars["mandatoryAccount"] = "" 284 vars["notificationSender"] = "" 281 285 vars["sendRegEmail"] = "" 282 286 vars["sendReceiptEmail"] = "" … … 340 344 if regForm.isMandatoryAccount(): 341 345 vars["mandatoryAccount"]= "CHECKED" 346 vars["notificationSender"] = regForm.getNotificationSender() 342 347 vars["sendRegEmail"] = "" 343 348 vars["sendReceiptEmail"] = "" -
indico/MaKaC/webinterface/rh/registrationFormModif.py
rab85b3 r8ca1b0 127 127 regForm.getNotification().setCCList( utils.getEmailList(params.get("ccList", "")) ) 128 128 regForm.setMandatoryAccount(params.has_key("mandatoryAccount")) 129 regForm.setNotificationSender(params["notificationSender"]) 129 130 regForm.setSendRegEmail(params.has_key("sendRegEmail")) 130 131 regForm.setSendReceiptEmail(params.has_key("sendReceiptEmail")) -
indico/MaKaC/webinterface/tpls/ConfModifRegForm.tpl
rab85b3 r8ca1b0 66 66 </tr> 67 67 <tr> 68 <td class="dataCaptionTD"><span class="dataCaptionFormat"> <%= _("Email notification sender address")%></span></td> 69 <td class="blacktext"> 70 %(notificationSender)s 71 </td> 72 </tr> 73 <tr> 68 74 <td class="dataCaptionTD"><span class="dataCaptionFormat"> <%= _("Email notification (on new registrations)")%></span></td> 69 75 <td class="blacktext"> … … 72 78 </tr> 73 79 <tr> 74 <td class="dataCaptionTD"><span class="dataCaptionFormat"> <%= _("Email registrant :")%></span></td>80 <td class="dataCaptionTD"><span class="dataCaptionFormat"> <%= _("Email registrant")%></span></td> 75 81 <td bgcolor="white" width="100%%"> 82 <% if activated: %> 76 83 <table> 77 84 <tr> … … 88 95 </tr> 89 96 </table> 97 <% end %> 90 98 </td> 91 99 </tr> -
indico/MaKaC/webinterface/tpls/ConfModifRegFormDataModification.tpl
rab85b3 r8ca1b0 86 86 </tr> 87 87 <tr> 88 <td nowrap class="titleCellTD"><span class="titleCellFormat"> <%= _("Email notification sender address")%></span></td> 89 <td bgcolor="white" width="100%%"><input type="text" size="50" name="notificationSender" value="%(notificationSender)s"></td> 90 </tr> 91 <tr> 88 92 <td nowrap class="titleCellTD"> 89 93 <span class="titleCellFormat"> <%= _("Email organisators")%></span><br>
Note: See TracChangeset
for help on using the changeset viewer.
