Changeset 10030 for main/waeup.kofa/trunk/src/waeup/kofa/webservices.py
- Timestamp:
- 17 Mar 2013, 08:40:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/webservices.py
r10007 r10030 20 20 from zope.component import getUtility 21 21 from zope.catalog.interfaces import ICatalog 22 from waeup.kofa.payments.interfaces import IPay mentWebservice22 from waeup.kofa.payments.interfaces import IPayer 23 23 from waeup.kofa.interfaces import IUniversity, academic_sessions_vocab 24 24 25 # Kofa's webservices to requery payments from outside 25 class PaymentDataWebservice(grok.View): 26 """A simple webservice to publish payment and payer details on request from 27 accepted IP addresses without authentication. 26 28 27 class KofaPaymentRequest(grok.View): 28 29 """ 29 30 grok.context(IUniversity) 30 31 grok.name('paymentrequest') … … 40 41 real_ip = self.request.get('HTTP_X_FORWARDED_FOR', None) 41 42 if real_ip: 42 self.context.logger.info(' KofaPaymentRequestcalled: %s' % real_ip)43 self.context.logger.info('PaymentDataWebservice called: %s' % real_ip) 43 44 if real_ip and self.ACCEPTED_IP: 44 45 if real_ip not in self.ACCEPTED_IP: … … 52 53 return 53 54 try: 54 owner = IPay mentWebservice(results[0])55 owner = IPayer(results[0]) 55 56 full_name = owner.display_fullname 56 57 reg_number = owner.reg_number
Note: See TracChangeset for help on using the changeset viewer.