- Timestamp:
- 24 Mar 2015, 08:49:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/container.py
r12780 r12818 20 20 """ 21 21 import grok 22 from zope.schema import getFields23 22 from waeup.ikoba.interfaces import IIkobaPluggable 24 from waeup.ikoba.payments.interfaces import IPaymentsContainer , IPayment23 from waeup.ikoba.payments.interfaces import IPaymentsContainer 25 24 from waeup.ikoba.utils.helpers import attrs_to_fields 26 25 from waeup.ikoba.utils.logger import Logger … … 70 69 for payment in site['payments'].values(): 71 70 # Add payment_items 72 if not hasattr(payment,'payment_items'): 73 payment.payment_items = () 74 logger.info( 75 'PaymentsPlugin: %s attribute %s added.' % ( 76 payment.payment_id,'payment_items')) 71 if not hasattr(payment, 'payment_items'): 72 payment.payment_items = () 73 logger.info( 74 'PaymentsPlugin: %s attribute %s added.' % ( 75 payment.payment_id, 'payment_items') 76 ) 77 77 return
Note: See TracChangeset for help on using the changeset viewer.