- Timestamp:
- 23 Nov 2015, 16:16:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r13487 r13491 77 77 'match accommodation session.') 78 78 stage = bt.split('_')[2] 79 if stage not in ('fr', 'fi'):80 return _("Only fresh and final year students are allowed to book accommodation.")81 82 79 #################################################################################### 83 if stage == 'fi':84 return _("Accommodation booking for final year students has not yet started.")80 if stage in ('fi', 're'): 81 return _("Accommodation booking for returning and final year students has not yet started.") 85 82 #################################################################################### 86 87 88 83 if stage != 'fr' and not student['studycourse'].previous_verdict in ('A', 'B'): 89 84 return _("Your are not eligible to book accommodation.") … … 193 188 stage = self.getAccommodationDetails(student)['bt'] 194 189 stage = stage.split('_')[2] 195 196 197 190 ##################################################### 198 if stage == 'fi':199 return _('Payment temporarily disabled.'), None191 #if stage == 'fi': 192 # return _('Payment temporarily disabled.'), None 200 193 ##################################################### 201 202 203 194 if stage == 'fr': 204 195 amount += 500.0 205 elif stage == 'fi'and student[196 elif stage in ('fi', 're') and student[ 206 197 'studycourse'].previous_verdict in ('A', 'B'): 207 198 amount += 300.0
Note: See TracChangeset for help on using the changeset viewer.