Changeset 12063 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Timestamp:
- 26 Nov 2014, 15:20:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py
r12056 r12063 31 31 from waeup.ikoba.interfaces import MessageFactory as _ 32 32 from waeup.ikoba.utils.helpers import attrs_to_fields, get_current_principal 33 from waeup.ikoba.utils.logger import Logger34 33 from waeup.ikoba.documents.interfaces import ( 35 34 IDocument, IDocument, IDocumentsUtils) 36 35 from waeup.ikoba.documents.utils import generate_document_id 37 36 38 class Document(grok.Container , Logger):37 class Document(grok.Container): 39 38 """This is a document. 40 39 """ … … 42 41 grok.provides(IDocument) 43 42 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 return54 43 55 44 def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.