Changeset 8434 for main/waeup.kofa/trunk/src/waeup/kofa/payments
- Timestamp:
- 12 May 2012, 16:27:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r8429 r8434 83 83 self.p_state = 'paid' 84 84 user = get_current_principal() 85 r_desc = _('Payment approved by ${a}', mapping = {'a': user.id}) 85 user = get_current_principal() 86 if user is None: 87 # in tests 88 usertitle = 'system' 89 else: 90 usertitle = user.title 91 r_desc = _('Payment approved by ${a}', mapping = {'a': usertitle}) 86 92 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 87 93 self.r_desc = translate(r_desc, 'waeup.kofa',
Note: See TracChangeset for help on using the changeset viewer.