Ignore:
Timestamp:
8 Nov 2011, 22:27:23 (13 years ago)
Author:
uli
Message:

Still not sure: do we really need logger_info()? Anyway we can write
it shorter and please the coverage report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/root.py

    r6582 r7048  
    4747        """
    4848        user = get_current_principal()
    49         if user is None:
    50             user = 'system'
    51         elif user.title == 'Applicant':
    52             user = 'applicant'
    53         else:
    54             user = user.id
     49        user = getattr(user, 'id', 'system')
    5550        self.logger.info('%s - %s - %s - %s' % (
    5651                user, target, ob_class, comment))
Note: See TracChangeset for help on using the changeset viewer.