Ignore:
Timestamp:
31 Aug 2021, 15:26:46 (3 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.ecns/trunk/src/kofacustom/ecns/interswitch/browser.py

    r16589 r16593  
    2020import grok
    2121from kofacustom.nigeria.interswitch.browser import (
     22    module_activated,
    2223    InterswitchPaymentRequestWebservicePageApplicant,
    2324    InterswitchPaymentRequestWebservicePageStudent,
     
    3132
    3233PRODUCT_ID = '' # must be provided by Interswitch
    33 SITE_NAME = 'ecns-kofa.waeup.org'
     34SITE_NAME = 'ecns.waeup.org'
    3435PROVIDER_ACCT = '00000000'
    3536PROVIDER_BANK_ID = '00'
     
    6364
    6465    def update(self):
     66        if not module_activated(
     67            self.context.student.current_session, self.context):
     68            self.flash(_('Forbidden'), type='danger')
     69            self.redirect(self.url(self.context, '@@index'))
     70            return
    6571        error = self.init_update()
    6672        if error:
     
    134140
    135141    def update(self):
     142        if not module_activated(
     143            self.context.__parent__.__parent__.year, self.context):
     144            self.flash(_('Forbidden'), type='danger')
     145            self.redirect(self.url(self.context, '@@index'))
     146            return
    136147        error = self.init_update()
    137148        if error:
Note: See TracChangeset for help on using the changeset viewer.