Ignore:
Timestamp:
19 Jun 2012, 07:47:21 (12 years ago)
Author:
Henrik Bettermann
Message:

Use public_name in object histories and when approving payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py

    r8703 r8758  
    8888            usertitle = 'system'
    8989        else:
    90             usertitle = user.title
     90            usertitle = getattr(user, 'public_name', None)
     91            if not usertitle:
     92                usertitle = user.title
    9193        r_desc = _('Payment approved by ${a}', mapping = {'a': usertitle})
    9294        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
Note: See TracChangeset for help on using the changeset viewer.