- Timestamp:
- 20 Feb 2012, 08:56:44 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7665 r7671 1438 1438 1439 1439 def update(self, SUBMIT=None): 1440 if not self.context.state == 'admitted':1440 if not self.context.state == ADMITTED: 1441 1441 self.flash("Wrong state.") 1442 1442 self.redirect(self.url(self.context)) -
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r7652 r7671 28 28 from waeup.sirp.interfaces import ( 29 29 IObjectHistory, IUserAccount, IFileStoreNameChooser, IFileStoreHandler, 30 ISIRPUtils )30 ISIRPUtils, CLEARANCE) 31 31 from waeup.sirp.image import SIRPImageFile 32 32 from waeup.sirp.imagestorage import DefaultFileStoreHandler … … 147 147 """ 148 148 reg_state = IWorkflowState(student).getState() 149 if reg_state == 'clearance started':149 if reg_state == CLEARANCE: 150 150 student.clearance_locked = False 151 151 else: -
main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py
r7591 r7671 369 369 @property 370 370 def target_url(self): 371 if self.context.state != 'admitted':371 if self.context.state != ADMITTED: 372 372 return '' 373 373 return self.view.url(self.view.context, self.target) … … 384 384 @property 385 385 def target_url(self): 386 if self.context.state != 'admitted':386 if self.context.state != ADMITTED: 387 387 return '' 388 388 return self.view.url(self.view.context, self.target) … … 428 428 def target_url(self): 429 429 student = self.view.context.getStudent() 430 condition1 = student.state != 'school fee paid'430 condition1 = student.state != PAID 431 431 condition2 = str(student['studycourse'].current_level) in \ 432 432 self.view.context.keys() … … 446 446 def target_url(self): 447 447 student = self.view.context.getStudent() 448 condition1 = student.state != 'school fee paid'448 condition1 = student.state != PAID 449 449 condition2 = student[ 450 450 'studycourse'].current_level != self.view.context.level
Note: See TracChangeset for help on using the changeset viewer.