Changeset 13887 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 7 Jun 2016, 20:35:15 (8 years ago)
- 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 110 110 grok.template('applicantdisplaypage') 111 111 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 112 118 def _show_pastq_putme(self): 113 119 return self.target.startswith('putme') \ … … 258 264 259 265 @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 260 272 def custom_upload_requirements(self): 261 273 if not checkPermission('waeup.uploadPassportPictures', self.context): … … 287 299 """An applicant-centered edit view for applicant data. 288 300 """ 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) 289 307 290 308 @property -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py
r13816 r13887 100 100 payment.p_category = 'application' 101 101 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 108 105 return -
main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py
r13785 r13887 34 34 school_fee_base = schema.Float( 35 35 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)'),42 36 default = 0.0, 43 37 required = False, -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r13785 r13887 472 472 configuration = CustomSessionConfiguration() 473 473 configuration.academic_session = datetime.now().year - 2 474 self.applicantscontainer.application_fee = 1000.0 474 475 self.app['configuration'].addSessionConfiguration(configuration) 475 476 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 476 477 self.browser.open(self.manage_path) 477 478 #IWorkflowState(self.student).setState('started') 478 self.applicantscontainer.application_fee = 1000.0479 479 super(InterswitchTestsApplicants, self).fill_correct_values() 480 480 self.browser.getControl("Add online").click()
Note: See TracChangeset for help on using the changeset viewer.