Ignore:
Timestamp:
12 May 2012, 16:27:14 (13 years ago)
Author:
Henrik Bettermann
Message:

Managers do not 'pay' fees for applicants and students, they approve payments made.

Add respective transitions.

File:
1 edited

Legend:

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

    r8429 r8434  
    8383        self.p_state = 'paid'
    8484        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})
    8692        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    8793        self.r_desc = translate(r_desc, 'waeup.kofa',
Note: See TracChangeset for help on using the changeset viewer.