Changeset 15271
- Timestamp:
- 18 Dec 2018, 07:45:14 (6 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/interfaces.py
r14570 r15271 105 105 ) 106 106 107 remita_enabled = schema.Bool( 108 title = _(u'Remita integration enabled'), 109 default = False, 110 ) 111 112 interswitch_enabled = schema.Bool( 113 title = _(u'Interswitch integration enabled'), 114 default = False, 115 ) 116 107 117 def getSessionString(): 108 118 """Returns the session string from the vocabulary. -
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py
r15144 r15271 24 24 InterswitchPaymentVerifyWebservicePageStudent, 25 25 InterswitchPageStudent, InterswitchPageApplicant, 26 module_activated, 26 27 ) 27 28 from waeup.fceokene.students.interfaces import ICustomStudentOnlinePayment … … 33 34 PROVIDER_ACCT = '0773411069' 34 35 PROVIDER_BANK_ID = '31' 35 PROVIDER_ITEM_NAME = ' BT Education'36 PROVIDER_ITEM_NAME = 'WAeAC' 36 37 INSTITUTION_NAME = 'FCEOkene' 37 38 INSTITUTION_ACCT = '2003670143' … … 62 63 63 64 def update(self): 65 if not module_activated(self.context.student.current_session): 66 return 64 67 error = self.init_update() 65 68 if error: … … 122 125 123 126 def update(self): 127 if not module_activated(self.context.__parent__.__parent__.year): 128 return 124 129 error = self.init_update() 125 130 if error: -
main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
r14931 r15271 50 50 def setUp(self): 51 51 super(InterswitchTestsStudents, self).setUp() 52 self.app['configuration']['2004'].interswitch_enabled = True 52 53 self.certificate.study_mode = 'pd_ft' 53 54 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') … … 100 101 in self.browser.contents) 101 102 self.assertTrue( 102 'item_name=" BT Education" item_amt="160000" bank_id="31" acct_num="0026781725"'103 'item_name="WAeAC" item_amt="160000" bank_id="31" acct_num="0773411069"' 103 104 in self.browser.contents) 104 105 … … 122 123 in self.browser.contents) 123 124 self.assertTrue( 124 'item_name=" BT Education" item_amt="160000" bank_id="31" acct_num="0026781725"'125 'item_name="WAeAC" item_amt="160000" bank_id="31" acct_num="0773411069"' 125 126 in self.browser.contents) 126 127
Note: See TracChangeset for help on using the changeset viewer.