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

The payment_categories vocab does no longer exist. We have a dict in KofaUtils? instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py

    r9392 r9408  
    2929from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent
    3030from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant
    31 from waeup.kofa.payments.interfaces import payment_categories
    3231from waeup.kwarapoly.students.interfaces import ICustomStudentOnlinePayment
    3332from waeup.kwarapoly.applicants.interfaces import ICustomApplicantOnlinePayment
     
    202201            xmldict['department'] = None
    203202            xmldict['faculty'] = None
    204         self.category = payment_categories.getTermByToken(
    205             self.context.p_category).title
     203        self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category]
    206204        tz = getUtility(IKofaUtils).tzinfo
    207205        self.local_date_time = to_timezone(
     
    290288        self.amount_auth = 100 * self.context.amount_auth
    291289        xmldict = {}
    292         self.category = payment_categories.getTermByToken(
    293             self.context.p_category).title
     290        self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category]
    294291        tz = getUtility(IKofaUtils).tzinfo
    295292        self.local_date_time = to_timezone(
Note: See TracChangeset for help on using the changeset viewer.