Changeset 12063


Ignore:
Timestamp:
26 Nov 2014, 15:20:34 (10 years ago)
Author:
Henrik Bettermann
Message:

We don't need a logger for documents only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py

    r12056 r12063  
    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.documents.interfaces import (
    3534    IDocument, IDocument, IDocumentsUtils)
    3635from waeup.ikoba.documents.utils import generate_document_id
    3736
    38 class Document(grok.Container, Logger):
     37class Document(grok.Container):
    3938    """This is a document.
    4039    """
     
    4241    grok.provides(IDocument)
    4342    grok.baseclass()
    44 
    45     logger_name = 'waeup.ikoba.${sitename}.documents'
    46     logger_filename = 'documents.log'
    47     logger_format_str = '"%(asctime)s","%(user)s",%(message)s'
    48 
    49     def logger_info(self, comment=None):
    50         """Get the logger's info method.
    51         """
    52         self.logger.info('%s' % comment)
    53         return
    5443
    5544    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.