Ignore:
Timestamp:
24 Oct 2012, 21:31:48 (12 years ago)
Author:
Henrik Bettermann
Message:

Make payment categories more easily customizable.

File:
1 edited

Legend:

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

    r9149 r9405  
    2828from waeup.kofa.payments.interfaces import (
    2929    IPayment, ISCPayment, IOnlinePayment,
    30     payment_states, payment_categories)
     30    payment_states)
    3131from waeup.kofa.utils.helpers import attrs_to_fields, get_current_principal
    3232
     
    5050    @property
    5151    def category(self):
    52         return payment_categories.getTermByToken(self.p_category).title
     52        utils = getUtility(IKofaUtils)
     53        return utils.PAYMENT_CATEGORIES[self.p_category]
    5354
    5455# not used
Note: See TracChangeset for help on using the changeset viewer.