X-Git-Url: http://git.rot13.org/?p=indico-PayWay;a=blobdiff_plain;f=MaKaC%2Fplugins%2FEPayment%2FpayWay%2Fwebinterface%2Fpages%2FePayments.py;h=379142db798492537c1a2200a90fd4603252a56d;hp=91d96e840ba92bba47f9f23dcd4e094e9c42c68b;hb=e76af143592d9844367ddb4d21a1d32cb6b071fe;hpb=d35d3b4ba3bcfd147f3b464a10eb8ef0d3dbe4d9 diff --git a/MaKaC/plugins/EPayment/payWay/webinterface/pages/ePayments.py b/MaKaC/plugins/EPayment/payWay/webinterface/pages/ePayments.py index 91d96e8..379142d 100644 --- a/MaKaC/plugins/EPayment/payWay/webinterface/pages/ePayments.py +++ b/MaKaC/plugins/EPayment/payWay/webinterface/pages/ePayments.py @@ -27,18 +27,18 @@ import MaKaC from MaKaC.i18n import _ -from MaKaC.plugins.EPayment.payPal import MODULE_ID -from MaKaC.plugins.EPayment.payPal.webinterface.wcomponents import WTemplated -from MaKaC.plugins.EPayment.payPal.webinterface import urlHandlers as localUrlHandlers +from MaKaC.plugins.EPayment.payWay import MODULE_ID +from MaKaC.plugins.EPayment.payWay.webinterface.wcomponents import WTemplated +from MaKaC.plugins.EPayment.payWay.webinterface import urlHandlers as localUrlHandlers -class WPConfModifEPaymentPayPalBase(registrationForm.WPConfModifRegFormBase): +class WPConfModifEPaymentPayWayBase(registrationForm.WPConfModifRegFormBase): def _createTabCtrl( self ): self._tabCtrl = wcomponents.TabControl() self._tabMain = self._tabCtrl.newTab( "main", _("Main"), \ - localUrlHandlers.UHConfModifEPaymentPayPal.getURL( self._conf ) ) + localUrlHandlers.UHConfModifEPaymentPayWay.getURL( self._conf ) ) wf = self._rh.getWebFactory() if wf: wf.customiseTabCtrl( self._tabCtrl ) @@ -59,50 +59,50 @@ class WPConfModifEPaymentPayPalBase(registrationForm.WPConfModifRegFormBase): def _getTabContent( self, params ): return "nothing" -class WPConfModifEPaymentPayPal( WPConfModifEPaymentPayPalBase ): +class WPConfModifEPaymentPayWay( WPConfModifEPaymentPayWayBase ): def _getTabContent( self, params ): - wc = WConfModifEPaymentPayPal(self._conf) + wc = WConfModifEPaymentPayWay(self._conf) p = { - 'dataModificationURL': quoteattr(str(localUrlHandlers.UHConfModifEPaymentPayPalDataModif.getURL( self._conf ))) + 'dataModificationURL': quoteattr(str(localUrlHandlers.UHConfModifEPaymentPayWayDataModif.getURL( self._conf ))) } return wc.getHTML(p) -class WConfModifEPaymentPayPal( WTemplated ): +class WConfModifEPaymentPayWay( WTemplated ): def __init__( self, conference ): self._conf = conference def getVars( self ): vars = WTemplated.getVars(self) - modPayPal = self._conf.getModPay().getPayModByTag(MODULE_ID) - vars["title"] = modPayPal.getTitle() - vars["url"] = modPayPal.getUrl() - vars["business"] = modPayPal.getBusiness() + modPayWay = self._conf.getModPay().getPayModByTag(MODULE_ID) + vars["title"] = modPayWay.getTitle() + vars["url"] = modPayWay.getUrl() + vars["business"] = modPayWay.getBusiness() return vars -class WPConfModifEPaymentPayPalDataModif( WPConfModifEPaymentPayPalBase ): +class WPConfModifEPaymentPayWayDataModif( WPConfModifEPaymentPayWayBase ): def _getTabContent( self, params ): - wc = WConfModifEPaymentPayPalDataModif(self._conf) - p = {'postURL': quoteattr(str(localUrlHandlers.UHConfModifEPaymentPayPalPerformDataModif.getURL( self._conf ))) + wc = WConfModifEPaymentPayWayDataModif(self._conf) + p = {'postURL': quoteattr(str(localUrlHandlers.UHConfModifEPaymentPayWayPerformDataModif.getURL( self._conf ))) } return wc.getHTML(p) -class WConfModifEPaymentPayPalDataModif( WTemplated ): +class WConfModifEPaymentPayWayDataModif( WTemplated ): def __init__( self, conference ): self._conf = conference def getVars( self ): vars = WTemplated.getVars(self) - modPayPal = self._conf.getModPay().getPayModByTag(MODULE_ID) - vars["title"] = modPayPal.getTitle() - vars["url"] = modPayPal.getUrl() - vars["business"] = modPayPal.getBusiness() + modPayWay = self._conf.getModPay().getPayModByTag(MODULE_ID) + vars["title"] = modPayWay.getTitle() + vars["url"] = modPayWay.getUrl() + vars["business"] = modPayWay.getBusiness() return vars -class WPconfirmEPaymentPayPal( conferences.WPConferenceDefaultDisplayBase ): +class WPconfirmEPaymentPayWay( conferences.WPConferenceDefaultDisplayBase ): #navigationEntry = navigation.NERegistrationFormDisplay def __init__(self, rh, conf, reg): @@ -111,7 +111,7 @@ class WPconfirmEPaymentPayPal( conferences.WPConferenceDefaultDisplayBase ): def _getBody( self, params ): - wc = WconfirmEPaymentPayPal(self._conf, self._registrant) + wc = WconfirmEPaymentPayWay(self._conf, self._registrant) return wc.getHTML() def _defineSectionMenu( self ): @@ -119,18 +119,18 @@ class WPconfirmEPaymentPayPal( conferences.WPConferenceDefaultDisplayBase ): self._sectionMenu.setCurrentItem(self._regFormOpt) -class WconfirmEPaymentPayPal( WTemplated ): +class WconfirmEPaymentPayWay( WTemplated ): def __init__( self,configuration, registrant): self._registrant = registrant self._conf = configuration def getVars( self ): vars = WTemplated.getVars(self) - vars["message"] = "Thank you for the payment!
You have used PayPal" + vars["message"] = "Thank you for the payment!
You have used PayWay" vars["trinfo"]="%s:%s"%(self._registrant.getFirstName(),self._registrant.getSurName()) return vars -class WPCancelEPaymentPayPal( conferences.WPConferenceDefaultDisplayBase ): +class WPCancelEPaymentPayWay( conferences.WPConferenceDefaultDisplayBase ): #navigationEntry = navigation.NERegistrationFormDisplay def __init__(self, rh, conf, reg): @@ -138,20 +138,20 @@ class WPCancelEPaymentPayPal( conferences.WPConferenceDefaultDisplayBase ): self._registrant=reg def _getBody( self, params ): - wc = WCancelEPaymentPayPal( self._conf,self._registrant ) + wc = WCancelEPaymentPayWay( self._conf,self._registrant ) return wc.getHTML() def _defineSectionMenu( self ): conferences.WPConferenceDefaultDisplayBase._defineSectionMenu(self) self._sectionMenu.setCurrentItem(self._regFormOpt) -class WCancelEPaymentPayPal( WTemplated ): +class WCancelEPaymentPayWay( WTemplated ): def __init__( self, conference,reg ): self._conf = conference self._registrant=reg def getVars( self ): vars = WTemplated.getVars(self) - vars["message"] = "You have cancelled your transaction.\nPlease check your email in order to complete your PayPal transaction." + vars["message"] = "You have cancelled your transaction.\nPlease check your email in order to complete your PayWay transaction." vars["messagedetailPayment"]="%s:%s"%(self._registrant.getFirstName(),self._registrant.getSurName()) return vars