Ignore:
Timestamp:
22 Apr 2012, 20:06:50 (13 years ago)
Author:
Henrik Bettermann
Message:

ICustomStudentOnlinePayment defines the context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/etranzact/browser.py

    r8247 r8253  
    2222import grok
    2323from waeup.kofa.browser.layout import KofaPage, UtilityView
    24 from waeup.kofa.students.interfaces import IStudentOnlinePayment
    25 from waeup.kofa.applicants.interfaces import IApplicantOnlinePayment
    2624from waeup.kofa.applicants.viewlets import RequestCallbackActionButton as RCABApplicant
    2725from waeup.kofa.students.viewlets import RequestCallbackActionButton as RCABStudent
     
    2927from waeup.uniben.students.utils import actions_after_student_payment
    3028from waeup.uniben.applicants.utils import actions_after_applicant_payment
     29from waeup.uniben.students.interfaces import ICustomStudentOnlinePayment
     30from waeup.uniben.applicants.interfaces import ICustomApplicantOnlinePayment
    3131
    3232TERMINAL_ID = '0500000003'
     
    100100
    101101class EtranzactEnterPinActionButtonApplicant(RCABApplicant):
     102    grok.context(ICustomApplicantOnlinePayment)
    102103    icon = 'actionicon_call.png'
    103104    text = _('Query eTranzact History')
     
    105106
    106107class EtranzactEnterPinActionButtonStudent(RCABStudent):
     108    grok.context(ICustomStudentOnlinePayment)
    107109    icon = 'actionicon_call.png'
    108110    text = _('Query eTranzact History')
     
    112114    """
    113115    """
    114     grok.context(IStudentOnlinePayment)
     116    grok.context(ICustomStudentOnlinePayment)
    115117    grok.name('enterpin')
    116118    grok.template('enterpin')
     
    125127    """
    126128    grok.require('waeup.payApplicant')
    127     grok.context(IApplicantOnlinePayment)
     129    grok.context(ICustomApplicantOnlinePayment)
    128130
    129131class EtranzactQueryHistoryPageStudent(UtilityView, grok.View):
    130132    """ Query history of eTranzact payments
    131133    """
    132     grok.context(IStudentOnlinePayment)
     134    grok.context(ICustomStudentOnlinePayment)
    133135    grok.name('query_history')
    134136    grok.require('waeup.payStudent')
     
    150152    """ Query history of eTranzact payments
    151153    """
    152     grok.context(IApplicantOnlinePayment)
     154    grok.context(ICustomApplicantOnlinePayment)
    153155    grok.name('query_history')
    154156    grok.require('waeup.payApplicant')
Note: See TracChangeset for help on using the changeset viewer.