- Timestamp:
- 21 May 2012, 10:03:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/studycourse.py
r8473 r8484 39 39 def next_session_allowed(self): 40 40 state = self.getStudent().state 41 certificate = getattr(self, 'certificate', None) 42 if certificate == None: 43 return False 41 44 if state == CLEARED: 42 45 return True … … 45 48 'A','B','C','F','J','L','M','N','O','X','Z') 46 49 cond2 = self.current_level in (0, 100) 47 cond3 = self.getStudent().current_mode.startswith('de') and \50 cond3 = certificate.study_mode.startswith('de') and \ 48 51 self.current_level == 200 49 cond4 = self.getStudent().current_mode.startswith('ph') and \52 cond4 = certificate.study_mode.startswith('ph') and \ 50 53 self.current_level == 300 51 54 if cond0 and (cond1 or cond2 or cond3 or cond4): 52 55 return True 53 56 cond5 = self.is_postgrad 54 cond6 = s elf.getStudent().state == PAID57 cond6 = state == PAID 55 58 if cond5 and cond6: 56 59 return True
Note: See TracChangeset for help on using the changeset viewer.