Changeset 12066


Ignore:
Timestamp:
27 Nov 2014, 06:36:28 (10 years ago)
Author:
Henrik Bettermann
Message:

We don't need the logger. We are using the app logger (main.log).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/product.py

    r12064 r12066  
    3131from waeup.ikoba.interfaces import MessageFactory as _
    3232from waeup.ikoba.utils.helpers import attrs_to_fields, get_current_principal
    33 from waeup.ikoba.utils.logger import Logger
    3433from waeup.ikoba.products.interfaces import (
    3534    IProduct, IProduct,)
    3635
    37 class Product(grok.Container, Logger):
     36class Product(grok.Container):
    3837    """This is a product.
    3938    """
     
    4140    grok.provides(IProduct)
    4241    grok.baseclass()
    43 
    44     logger_name = 'waeup.ikoba.${sitename}.products'
    45     logger_filename = 'products.log'
    46     logger_format_str = '"%(asctime)s","%(user)s",%(message)s'
    47 
    48     def logger_info(self, comment=None):
    49         """Get the logger's info method.
    50         """
    51         self.logger.info('%s' % comment)
    52         return
    5342
    5443Product = attrs_to_fields(Product)
Note: See TracChangeset for help on using the changeset viewer.