Changeset 8842 for main


Ignore:
Timestamp:
27 Jun 2012, 12:47:42 (13 years ago)
Author:
Henrik Bettermann
Message:

Merged with waeup.uniben 8838:8839.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene

  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py

    r8807 r8842  
    4444    UG_OMIT_RESULT_SLIP_FIELDS)
    4545from waeup.fceokene.interfaces import MessageFactory as _
    46 
    47 #class RequestCallbackActionButton(RequestCallbackActionButton):
    48 #    """ Display the base package callback button in custom pages.
    49 #    """
    50 #    grok.context(ICustomApplicantOnlinePayment)
    51 
    52 #class CustomOnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
    53 #    """ Activate callback simulation view
    54 #    """
    55 #    grok.context(ICustomApplicantOnlinePayment)
    5646
    5747class CustomOnlinePaymentBreadcrumb(OnlinePaymentBreadcrumb):
     
    174164    form_fields[
    175165        'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    176     grok.template('payment_view')
    177 
    178     @property
    179     def transaction_code(self):
    180         tcode = self.context.p_id
    181         return tcode[len(tcode)-8:len(tcode)]
    182166
    183167class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage):
     
    194178    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    195179
    196     @property
    197     def note(self):
    198         if self.context.p_state == 'paid':
    199             return None
    200         tcode = self.context.p_id
    201         tcode = tcode[len(tcode)-8:len(tcode)]
    202         amount = self.context.amount_auth
    203         note = translate(_(
    204             u"""<br /><br /><br />
    205 The tranzaction code is <strong>${a}</strong>.""",
    206             mapping = {'a':tcode}))
    207         return note
     180class CustomApplicantRegistrationPage(ApplicantRegistrationPage):
     181    """Captcha'd registration page for applicants.
     182    """
     183
     184    #def _redirect(self, email, password, applicant_id):
     185    #    # Forward email and credentials to landing page.
     186    #    self.redirect(self.url(self.context, 'registration_complete',
     187    #        data = dict(email=email, password=password,
     188    #        applicant_id=applicant_id)))
     189    #    return
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/browser.py

    r8722 r8842  
    4242from waeup.kofa.students.workflow import ADMITTED
    4343
    44 #class RequestCallbackActionButton(RequestCallbackActionButton):
    45 #    """ Display the base package callback button in custom pages.
    46 #    """
    47 #    grok.context(ICustomStudentOnlinePayment)
    48 
    49 #class CustomOnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
    50 #    """ Activate callback simulation view
    51 #    """
    52 #    grok.context(ICustomStudentOnlinePayment)
    53 
    5444class CustomOnlinePaymentBreadcrumb(OnlinePaymentBreadcrumb):
    5545    """A breadcrumb for payments.
     
    168158    form_fields[
    169159        'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    170     #grok.template('payment_view')
    171 
    172     #@property
    173     #def transaction_code(self):
    174     #    tcode = self.context.p_id
    175     #    return tcode[len(tcode)-8:len(tcode)]
    176160
    177161class CustomOnlinePaymentAddFormPage(OnlinePaymentAddFormPage):
     
    201185    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    202186    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    203 
    204 #    @property
    205 #    def note(self):
    206 #        tcode = self.context.p_id
    207 #        tcode = tcode[len(tcode)-8:len(tcode)]
    208 #        amount = self.context.amount_auth
    209 #        note = translate(_(
    210 #            u"""<br /><br /><br />
    211 #The tranzaction code is <strong>${a}</strong>.""",
    212 #            mapping = {'a':tcode}))
    213 #        return note
    214187
    215188class StudentPassportActionButton(StudentPassportActionButton):
Note: See TracChangeset for help on using the changeset viewer.