Changeset 9904 for main


Ignore:
Timestamp:
22 Jan 2013, 08:05:20 (12 years ago)
Author:
Henrik Bettermann
Message:

Disable Interswitch action buttons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r9508 r9904  
    2929from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant
    3030from waeup.aaue.interfaces import academic_sessions_vocab
     31from kofacustom.nigeria.interswitch.browser import (
     32    InterswitchActionButtonStudent,
     33    InterswitchRequestWebserviceActionButtonStudent,
     34    InterswitchActionButtonApplicant,
     35    InterswitchRequestWebserviceActionButtonApplicant)
    3136from waeup.aaue.interfaces import MessageFactory as _
    3237from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment
     
    270275        self.redirect(self.url(self.context, '@@index'))
    271276        return
     277
     278# Disable Interswitch viewlets. This could be avoided by defining the
     279# action button viewlets of kofacustom.nigeria.interswitch.browser in the
     280# context of INigeriaStudentOnlinePayment or INigeriaApplicantOnlinePayment
     281# respectively. But then all interswitch.browser modules have to be extended.
     282
     283class InterswitchActionButtonStudent(InterswitchActionButtonStudent):
     284
     285    @property
     286    def target_url(self):
     287        return ''
     288
     289class InterswitchRequestWebserviceActionButtonStudent(
     290    InterswitchRequestWebserviceActionButtonStudent):
     291
     292    @property
     293    def target_url(self):
     294        return ''
     295
     296class InterswitchActionButtonApplicant(InterswitchActionButtonApplicant):
     297
     298    @property
     299    def target_url(self):
     300        return ''
     301
     302class InterswitchRequestWebserviceActionButtonApplicant(
     303    InterswitchRequestWebserviceActionButtonApplicant):
     304
     305    @property
     306    def target_url(self):
     307        return ''
Note: See TracChangeset for help on using the changeset viewer.