Changeset 7998


Ignore:
Timestamp:
28 Mar 2012, 20:50:45 (13 years ago)
Author:
Henrik Bettermann
Message:

Neutralize callback simulation components in base package.

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  
    102102        if self.context.p_state == 'paid':
    103103            return ''
    104         site_redirect_url = self.view.url(self.view.context, 'callback')
     104        site_redirect_url = self.view.url(self.view.context, 'isw_callback')
    105105        args = {
    106106            'transRef':self.context.p_id,
     
    143143        self.amount_100 = 100 * self.amount
    144144        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')
    146146        certificate = getattr(self.student['studycourse'],'certificate',None)
    147147        xmldict = {}
     
    176176    """
    177177    grok.context(IStudentOnlinePayment)
    178     grok.name('callback')
     178    grok.name('isw_callback')
    179179    grok.require('waeup.payStudent')
    180180
  • main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py

    r7995 r7998  
    6161    def callback_url(self, payment_url, resp, apprAmt):
    6262        return payment_url + (
    63             '/callback?echo=' +
     63            '/isw_callback?echo=' +
    6464            '&resp=%s' +
    6565            '&desc=Something went wrong' +
     
    8989        self.assertMatches('...Failed...',
    9090                           self.browser.contents)
    91         self.browser.open(self.payment_url + '/callback')
     91        self.browser.open(self.payment_url + '/isw_callback')
    9292        self.assertMatches('...Unsuccessful callback: Incomplete query string...',
    9393                          self.browser.contents)
  • main/waeup.custom/trunk/src/waeup/custom/students/browser.py

    r7995 r7998  
    2424    StudentPersonalDisplayFormPage, StudentPersonalManageFormPage,
    2525    StudentClearanceManageFormPage, StudentClearanceEditFormPage,
    26     StudentClearanceDisplayFormPage,
     26    StudentClearanceDisplayFormPage, OnlinePaymentCallbackPage,
    2727    ExportPDFClearanceSlipPage)
    2828from waeup.kofa.students.viewlets import RequestCallbackActionButton
     
    3232    )
    3333from waeup.custom.interfaces import MessageFactory as _
     34
     35class 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
     42class OnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
     43    """ Neutralize callback simulation view
     44    """
     45    def update(self):
     46        return
    3447
    3548class StudentPersonalDisplayFormPage(StudentPersonalDisplayFormPage):
     
    106119        return form_fields
    107120
    108 class RequestCallbackActionButton(RequestCallbackActionButton):
    109     """ Do not display the base package callback button in custom pages.
    110     """
    111 
    112     @property
    113     def target_url(self):
    114         return ''
Note: See TracChangeset for help on using the changeset viewer.