- Timestamp:
- 21 May 2012, 10:01:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py
r8472 r8483 45 45 @property 46 46 def next_session_allowed(self): 47 certificate = getattr(self, 'certificate', None) 48 if certificate == None: 49 return False 47 50 if self.getStudent().state in (CLEARED, RETURNING): 48 51 return True … … 51 54 return True 52 55 return False 56 57 @property 58 def is_postgrad(self): 59 return self.certificate.study_mode.startswith('pg') 60 #return cert.start_level == 999 or cert.end_level == 999 53 61 54 62 def addStudentStudyLevel(self, cert, studylevel): … … 105 113 return 106 114 107 @property108 def is_postgrad(self):109 cert = getattr(self, 'certificate', None)110 if cert is not None:111 return cert.study_mode.startswith('pg')112 #return cert.start_level == 999 or cert.end_level == 999113 return False114 115 115 StudentStudyCourse = attrs_to_fields(StudentStudyCourse) 116 116
Note: See TracChangeset for help on using the changeset viewer.