- Timestamp:
- 7 May 2013, 17:24:04 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10080 r10155 573 573 allowed_transitions = [t for t in wf_info.getManualTransitions() 574 574 if not t[0].startswith('pay')] 575 if self.context.is_postgrad :575 if self.context.is_postgrad and not self.context.is_special_postgrad: 576 576 allowed_transitions = [t for t in allowed_transitions 577 577 if not t[0] in FORBIDDEN_POSTGRAD_TRANS] … … 2448 2448 2449 2449 def _registerCourses(self, **data): 2450 if self.context.student.is_postgrad: 2450 if self.context.student.is_postgrad and \ 2451 not self.context.student.is_special_postgrad: 2451 2452 self.flash(_( 2452 2453 "You are a postgraduate student, " -
main/waeup.kofa/trunk/src/waeup/kofa/students/student.py
r10054 r10155 199 199 200 200 @property 201 def is_special_postgrad(self): 202 is_special_postgrad = getattr( 203 self.get('studycourse', None), 'is_special_postgrad', False) 204 return is_special_postgrad 205 206 @property 201 207 def before_payment(self): 202 208 entry_session = getattr( -
main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py
r10059 r10155 35 35 grok.implements(IStudentStudyCourse, IStudentNavigation) 36 36 grok.provides(IStudentStudyCourse) 37 38 is_special_postgrad = False 37 39 38 40 def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.