Ignore:
Timestamp:
24 Oct 2012, 21:59:21 (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.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r9389 r9407  
    2828from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent
    2929from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant
    30 from waeup.kofa.payments.interfaces import payment_categories
    3130from waeup.uniben.students.interfaces import ICustomStudentOnlinePayment
    3231from waeup.uniben.applicants.interfaces import ICustomApplicantOnlinePayment
     
    217216            xmldict['department'] = None
    218217            xmldict['faculty'] = None
    219         self.category = payment_categories.getTermByToken(
    220             self.context.p_category).title
     218        self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category]
    221219        tz = getUtility(IKofaUtils).tzinfo
    222220        self.local_date_time = to_timezone(
     
    322320        self.amount_auth = 100 * self.context.amount_auth
    323321        xmldict = {}
    324         self.category = payment_categories.getTermByToken(
    325             self.context.p_category).title
     322        self.category = getUtility(IKofaUtils).PAYMENT_CATEGORIES[self.context.p_category]
    326323        tz = getUtility(IKofaUtils).tzinfo
    327324        self.local_date_time = to_timezone(
Note: See TracChangeset for help on using the changeset viewer.