Changeset 12766
- Timestamp:
- 15 Mar 2015, 09:37:37 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_browser.py
r12762 r12766 17 17 ## 18 18 """ 19 Test the customer-related UI components.19 Test the document-related UI components. 20 20 """ 21 21 import shutil -
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/browser.py
-
Property
svn:keywords
set to
Id
r12765 r12766 1 ## $Id : browser.py 12760 2015-03-14 05:46:24Z henrik$1 ## $Id$ 2 2 ## 3 3 ## Copyright (C) 2015 Uli Fouquet & Henrik Bettermann … … 147 147 pnav = 5 148 148 label = _('Manage payment section') 149 search_button = _('Find payment s(s)')149 search_button = _('Find payment(s)') 150 150 remove_button = _('Remove selected') 151 151 … … 192 192 self.flash(_('Successfully removed: ${a}', 193 193 mapping={'a': ','.join(deleted)})) 194 ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','') 195 self.context.logger.info( 196 '%s - removed: %s' % (ob_class, ','.join(deleted))) 194 197 return -
Property
svn:keywords
set to
-
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/container.py
r12746 r12766 23 23 from waeup.ikoba.payments.interfaces import IPaymentsContainer 24 24 from waeup.ikoba.utils.helpers import attrs_to_fields 25 from waeup.ikoba.utils.logger import Logger 25 26 26 27 27 class PaymentsContainer(grok.Container ):28 class PaymentsContainer(grok.Container, Logger): 28 29 """This is a container for all kind of payments. 29 30 """ 30 31 grok.implements(IPaymentsContainer) 31 32 grok.provides(IPaymentsContainer) 33 34 logger_name = 'waeup.ikoba.${sitename}.payments' 35 logger_filename = 'payments.log' 32 36 33 37 def __init__(self): -
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/payment.py
r12753 r12766 28 28 from waeup.ikoba.interfaces import MessageFactory as _ 29 29 from waeup.ikoba.utils.helpers import attrs_to_fields 30 from waeup.ikoba.utils.logger import Logger31 30 from waeup.ikoba.payments.interfaces import ( 32 31 IPayment, STATE_UNPAID, STATE_FAILED, STATE_PAID, … … 167 166 168 167 @attrs_to_fields 169 class Payment(grok.Model , Logger):168 class Payment(grok.Model): 170 169 """This is a payment. 171 170 """ 172 171 grok.implements(IPayment) 173 172 grok.provides(IPayment) 174 175 logger_name = 'waeup.ikoba.${sitename}.payments'176 logger_filename = 'payments.log'177 logger_format_str = '"%(asctime)s","%(user)s",%(message)s'178 173 179 174 def __init__(self, payer, payable, payee=None):
Note: See TracChangeset for help on using the changeset viewer.