- Timestamp:
- 13 Jul 2015, 08:20:23 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/container.py
r13165 r13166 52 52 return 53 53 54 logger_name = 'waeup.kofa.${sitename}.hostels'55 logger_filename = 'hostels.log'56 57 def logger_info(self, ob_class, target, comment=None):58 """Get the logger's info method.59 """60 self.logger.info('%s - %s - %s' % (61 ob_class, target, comment))62 return63 64 def loggerInfo(self, ob_class, comment=None):65 target = self.__name__66 return self.logger_info(ob_class,target,comment)67 68 54 @property 69 55 def expired(self): … … 78 64 return False 79 65 66 logger_name = 'waeup.kofa.${sitename}.hostels' 67 logger_filename = 'hostels.log' 68 69 def writeLogMessage(self, view, message): 70 ob_class = view.__implemented__.__name__.replace('waeup.kofa.','') 71 self.logger.info( 72 '%s - %s - %s' % (ob_class, self.__name__, message)) 73 return 74 80 75 HostelsContainer = attrs_to_fields(HostelsContainer)
Note: See TracChangeset for help on using the changeset viewer.