Changeset 6475 for main/waeup.sirp/trunk/src/waeup/sirp/applicants/root.py
- Timestamp:
- 25 Jun 2011, 08:44:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/root.py
r6444 r6475 30 30 from waeup.sirp.utils.logger import ISiteLoggers 31 31 from waeup.sirp.applicants.interfaces import IApplicantsRoot 32 from waeup.sirp.utils.helpers import get_current_principal 32 33 33 34 class ApplicantsRoot(grok.Container): … … 47 48 loggers.register('waeup.sirp.%s.applicants') 48 49 return loggers.getLogger('waeup.sirp.%s.applicants') 50 51 def logger_info(self, target, ob_class, comment=None): 52 """Get the logger's info method. 53 """ 54 user = get_current_principal() 55 if user is None: 56 user = 'system' 57 elif user.title == 'Applicant': 58 user = 'applicant' 59 else: 60 user = user.id 61 self.logger.info('%s - %s - %s - %s' % (user, target, ob_class, comment)) 49 62 50 63 class ApplicantsPlugin(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.