- Timestamp:
- 20 Jun 2012, 13:37:27 (12 years ago)
- File:
-
- 1 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
Note: See TracChangeset for help on using the changeset viewer.