Changeset 13887 for main/waeup.uniben/trunk/src/waeup/uniben/applicants
- Timestamp:
- 7 Jun 2016, 20:35:15 (9 years ago)
- 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 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
Note: See TracChangeset for help on using the changeset viewer.