Changeset 9769 for main/waeup.kofa/trunk/src/waeup/kofa/payments
- Timestamp:
- 5 Dec 2012, 08:32:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r9505 r9769 31 31 payment_states) 32 32 from waeup.kofa.utils.helpers import attrs_to_fields, get_current_principal 33 from waeup.kofa.utils.logger import Logger 33 34 34 class Payment(grok.Container ):35 class Payment(grok.Container, Logger): 35 36 """This is a payment. 36 37 """ … … 38 39 grok.provides(IPayment) 39 40 grok.baseclass() 41 42 logger_name = 'waeup.kofa.${sitename}.payments' 43 logger_filename = 'payments.log' 44 logger_format_str = '"%(asctime)s","%(user)s",%(message)s' 45 46 def logger_info(self, comment=None): 47 """Get the logger's info method. 48 """ 49 self.logger.info('%s' % comment) 50 return 40 51 41 52 def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.