Changeset 7998 for main/waeup.custom/trunk/src
- Timestamp:
- 28 Mar 2012, 20:50:45 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/interswitch/browser.py
r7970 r7998 102 102 if self.context.p_state == 'paid': 103 103 return '' 104 site_redirect_url = self.view.url(self.view.context, ' callback')104 site_redirect_url = self.view.url(self.view.context, 'isw_callback') 105 105 args = { 106 106 'transRef':self.context.p_id, … … 143 143 self.amount_100 = 100 * self.amount 144 144 self.local_date_time = str(self.context.creation_date) 145 self.site_redirect_url = self.url(self.context, ' callback')145 self.site_redirect_url = self.url(self.context, 'isw_callback') 146 146 certificate = getattr(self.student['studycourse'],'certificate',None) 147 147 xmldict = {} … … 176 176 """ 177 177 grok.context(IStudentOnlinePayment) 178 grok.name(' callback')178 grok.name('isw_callback') 179 179 grok.require('waeup.payStudent') 180 180 -
main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py
r7995 r7998 61 61 def callback_url(self, payment_url, resp, apprAmt): 62 62 return payment_url + ( 63 '/ callback?echo=' +63 '/isw_callback?echo=' + 64 64 '&resp=%s' + 65 65 '&desc=Something went wrong' + … … 89 89 self.assertMatches('...Failed...', 90 90 self.browser.contents) 91 self.browser.open(self.payment_url + '/ callback')91 self.browser.open(self.payment_url + '/isw_callback') 92 92 self.assertMatches('...Unsuccessful callback: Incomplete query string...', 93 93 self.browser.contents) -
main/waeup.custom/trunk/src/waeup/custom/students/browser.py
r7995 r7998 24 24 StudentPersonalDisplayFormPage, StudentPersonalManageFormPage, 25 25 StudentClearanceManageFormPage, StudentClearanceEditFormPage, 26 StudentClearanceDisplayFormPage, 26 StudentClearanceDisplayFormPage, OnlinePaymentCallbackPage, 27 27 ExportPDFClearanceSlipPage) 28 28 from waeup.kofa.students.viewlets import RequestCallbackActionButton … … 32 32 ) 33 33 from waeup.custom.interfaces import MessageFactory as _ 34 35 class RequestCallbackActionButton(RequestCallbackActionButton): 36 """ Do not display the base package callback button in custom pages. 37 """ 38 @property 39 def target_url(self): 40 return '' 41 42 class OnlinePaymentCallbackPage(OnlinePaymentCallbackPage): 43 """ Neutralize callback simulation view 44 """ 45 def update(self): 46 return 34 47 35 48 class StudentPersonalDisplayFormPage(StudentPersonalDisplayFormPage): … … 106 119 return form_fields 107 120 108 class RequestCallbackActionButton(RequestCallbackActionButton):109 """ Do not display the base package callback button in custom pages.110 """111 112 @property113 def target_url(self):114 return ''
Note: See TracChangeset for help on using the changeset viewer.