Changeset 8769
- Timestamp:
- 20 Jun 2012, 13:37:27 (13 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r8764 r8769 33 33 from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment 34 34 35 #ACCEPTED_IP = ('195.219.3.181', '195.219.3.184') 35 36 ACCEPTED_IP = None 37 36 38 37 39 # Kofa's webservice … … 44 46 def update(self, PAYEE_ID=None): 45 47 real_ip = self.request.get('HTTP_X_FORWARDED_FOR', None) 48 # We can forego the logging once eTranzact payments run smoothly 49 # and the accepted IP addresses are used. 50 if real_ip: 51 self.context.logger.info('KofaFeeRequest called: %s' % real_ip) 46 52 if real_ip and ACCEPTED_IP: 47 if real_ip !=ACCEPTED_IP:53 if real_ip not in ACCEPTED_IP: 48 54 self.output = '-4' 49 55 return … … 122 128 success = f.read() 123 129 success = success.replace('\r\n','') 124 if 'COL 1' not in success:130 if 'COL6' not in success: 125 131 msg = _('Invalid or unsuccessful callback: ${a}', 126 132 mapping = {'a': success}) … … 248 254 applicant = self.context.__parent__ 249 255 success, msg, log = query_etranzact(confirmation_number,self.context) 250 applicant. loggerInfo(ob_class, log)256 applicant.writeLogMessage(self, log) 251 257 if not success: 252 258 self.flash(msg) … … 254 260 success, msg, log = self.context.doAfterApplicantPayment() 255 261 if log is not None: 256 applicant. loggerInfo(ob_class, log)262 applicant.writeLogMessage(self, log) 257 263 self.flash(msg) 258 264 return -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r8753 r8769 67 67 return _(u'Session configuration object is not available.'), None 68 68 # Determine fee. 69 if category == 'schoolfee': 70 return _('School fee has to be paid by two instalments.'), None 69 71 if category == 'transfer': 70 72 amount = academic_session.transfer_fee
Note: See TracChangeset for help on using the changeset viewer.