Changeset 13887


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

Adjust to changes in base package.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
4 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
  • main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py

    r13785 r13887  
    3434    school_fee_base = schema.Float(
    3535        title = _(u'School Fee (ignored)'),
    36         default = 0.0,
    37         required = False,
    38         )
    39 
    40     application_fee = schema.Float(
    41         title = _(u'Application Fee (fallback)'),
    4236        default = 0.0,
    4337        required = False,
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py

    r13785 r13887  
    472472        configuration = CustomSessionConfiguration()
    473473        configuration.academic_session = datetime.now().year - 2
     474        self.applicantscontainer.application_fee = 1000.0
    474475        self.app['configuration'].addSessionConfiguration(configuration)
    475476        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    476477        self.browser.open(self.manage_path)
    477478        #IWorkflowState(self.student).setState('started')
    478         self.applicantscontainer.application_fee = 1000.0
    479479        super(InterswitchTestsApplicants, self).fill_correct_values()
    480480        self.browser.getControl("Add online").click()
Note: See TracChangeset for help on using the changeset viewer.