Changeset 12066 for main/waeup.ikoba/trunk/src/waeup/ikoba
- Timestamp:
- 27 Nov 2014, 06:36:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/products/product.py
r12064 r12066 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.products.interfaces import ( 35 34 IProduct, IProduct,) 36 35 37 class Product(grok.Container , Logger):36 class Product(grok.Container): 38 37 """This is a product. 39 38 """ … … 41 40 grok.provides(IProduct) 42 41 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 return53 42 54 43 Product = attrs_to_fields(Product)
Note: See TracChangeset for help on using the changeset viewer.