Changeset 12766 for main/waeup.ikoba


Ignore:
Timestamp:
15 Mar 2015, 09:37:37 (10 years ago)
Author:
Henrik Bettermann
Message:

Add browser tests and set up logger properly.

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  
    1717##
    1818"""
    19 Test the customer-related UI components.
     19Test the document-related UI components.
    2020"""
    2121import 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$
    22##
    33## Copyright (C) 2015 Uli Fouquet & Henrik Bettermann
     
    147147    pnav = 5
    148148    label = _('Manage payment section')
    149     search_button = _('Find payments(s)')
     149    search_button = _('Find payment(s)')
    150150    remove_button = _('Remove selected')
    151151
     
    192192            self.flash(_('Successfully removed: ${a}',
    193193                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)))
    194197        return
  • main/waeup.ikoba/trunk/src/waeup/ikoba/payments/container.py

    r12746 r12766  
    2323from waeup.ikoba.payments.interfaces import IPaymentsContainer
    2424from waeup.ikoba.utils.helpers import attrs_to_fields
     25from waeup.ikoba.utils.logger import Logger
    2526
    2627
    27 class PaymentsContainer(grok.Container):
     28class PaymentsContainer(grok.Container, Logger):
    2829    """This is a container for all kind of payments.
    2930    """
    3031    grok.implements(IPaymentsContainer)
    3132    grok.provides(IPaymentsContainer)
     33
     34    logger_name = 'waeup.ikoba.${sitename}.payments'
     35    logger_filename = 'payments.log'
    3236
    3337    def __init__(self):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/payments/payment.py

    r12753 r12766  
    2828from waeup.ikoba.interfaces import MessageFactory as _
    2929from waeup.ikoba.utils.helpers import attrs_to_fields
    30 from waeup.ikoba.utils.logger import Logger
    3130from waeup.ikoba.payments.interfaces import (
    3231    IPayment, STATE_UNPAID, STATE_FAILED, STATE_PAID,
     
    167166
    168167@attrs_to_fields
    169 class Payment(grok.Model, Logger):
     168class Payment(grok.Model):
    170169    """This is a payment.
    171170    """
    172171    grok.implements(IPayment)
    173172    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'
    178173
    179174    def __init__(self, payer, payable, payee=None):
Note: See TracChangeset for help on using the changeset viewer.