Ignore:
Timestamp:
25 Nov 2019, 13:39:39 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust skeleton. Remove XMLRPC test user.

Location:
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/etranzact/browser.py

    r15756 r15847  
    2222from kofacustom.nigeria.etranzact.studentsbrowser import (
    2323    EtranzactPageStudent, EtranzactReceiveResponseStudent,
    24     EtranzactRequestPaymentStatusPageStudent)
     24    EtranzactRequestPaymentStatusPageStudent,
     25    webconnect_module_activated)
    2526from kofacustom.nigeria.etranzact.payoutletbrowser import (
    2627    EtranzactEnterPinPageStudent, EtranzactEnterPinPageApplicant,
    27     EtranzactQueryHistoryPageStudent, EtranzactQueryHistoryPageApplicant)
     28    EtranzactQueryHistoryPageStudent, EtranzactQueryHistoryPageApplicant,
     29    payoutlet_module_activated)
    2830from kofacustom.nigeria.etranzact.payoutletwebservice  import NigeriaPaymentDataWebservice
    2931
     
    5254        # Already now it becomes an Etranzact payment. We set the net amount
    5355        # and add the gateway amount.
     56        if not webconnect_module_activated(
     57            self.context.__parent__.__parent__.year, self.context):
     58            return _("Etranzact payments deactivated.")
    5459        if not self.context.r_company:
    5560            self.context.net_amt = self.context.amount_auth
     
    9196        # Already now it becomes an Etranzact payment. We set the net amount
    9297        # and add the gateway amount.
     98        if not webconnect_module_activated(
     99            self.context.student.current_session, self.context):
     100            return _("Etranzact payments deactivated.")
    93101        if not self.context.r_company:
    94102            self.context.net_amt = self.context.amount_auth
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interfaces.py

    r15614 r15847  
    6767        )
    6868
     69    interswitch_enabled = schema.Bool(
     70        title = _(u'Interswitch integration enabled'),
     71        default = False,
     72        )
     73
     74    etranzact_webconnect_enabled = schema.Bool(
     75        title = _(u'Etranzact Webconnect integration enabled'),
     76        default = False,
     77        )
     78
     79    etranzact_payoutlet_enabled = schema.Bool(
     80        title = _(u'Etranzact Payoutlet integration enabled'),
     81        default = False,
     82        )
     83
    6984
    7085    # Additional fees in custom package add here
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/remita/browser.py

    r15756 r15847  
    8888
    8989    def update(self):
    90         if not module_activated(self.context.student.current_session):
     90        if not module_activated(
     91            self.context.student.current_session, self.context):
    9192            return
    9293        self.orderId = self.context.p_id
     
    154155
    155156    def update(self):
    156         if not module_activated(self.context.__parent__.__parent__.year):
     157        if not module_activated(
     158            self.context.__parent__.__parent__.year, self.context):
    157159            return
    158160        self.orderId = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.