Ignore:
Timestamp:
7 Jun 2016, 20:35:15 (9 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

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

Legend:

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

    r13825 r13887  
    110110    grok.template('applicantdisplaypage')
    111111
     112    @property
     113    def display_payments(self):
     114        if self.context.special or self.target == 'ictwk':
     115            return True
     116        return getattr(self.context.__parent__, 'application_fee', None)
     117
    112118    def _show_pastq_putme(self):
    113119        return self.target.startswith('putme') \
     
    258264
    259265    @property
     266    def display_payments(self):
     267        if self.context.special or self.target == 'ictwk':
     268            return True
     269        return getattr(self.context.__parent__, 'application_fee', None)
     270
     271    @property
    260272    def custom_upload_requirements(self):
    261273        if not checkPermission('waeup.uploadPassportPictures', self.context):
     
    287299    """An applicant-centered edit view for applicant data.
    288300    """
     301
     302    @property
     303    def display_payments(self):
     304        if self.context.special or self.target == 'ictwk':
     305            return True
     306        return getattr(self.context.__parent__, 'application_fee', None)
    289307
    290308    @property
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r13816 r13887  
    100100            payment.p_category = 'application'
    101101            container_fee = container.application_fee
    102             if container_fee:
    103                 payment.amount_auth = container_fee
    104                 return
    105             payment.amount_auth = session_config.application_fee
    106         if payment.amount_auth in (0.0, None):
    107             return _('Amount could not be determined.')
     102            if not container_fee:
     103                return _('Amount could not be determined.')
     104            payment.amount_auth = container_fee
    108105        return
Note: See TracChangeset for help on using the changeset viewer.