Changeset 8243


Ignore:
Timestamp:
22 Apr 2012, 08:36:07 (13 years ago)
Author:
Henrik Bettermann
Message:

Some changes necessary for uniben customization.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r8203 r8243  
    448448    grok.name('addafp')
    449449    grok.require('waeup.payApplicant')
     450    factory = u'waeup.ApplicantOnlinePayment'
    450451
    451452    def update(self):
     
    465466                  self.redirect(self.url(self.context))
    466467                  return
    467         payment = createObject(u'waeup.ApplicantOnlinePayment')
     468        payment = createObject(self.factory)
    468469        payment.p_id = "p%s" % timestamp
    469470        payment.p_item = self.context.__parent__.title
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py

    r7997 r8243  
    188188    @property
    189189    def target_url(self):
    190         if self.context.p_state != 'unpaid':
     190        if self.context.p_state == 'paid':
    191191            return ''
    192192        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.