Changeset 7677 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 22 Feb 2012, 10:35:47 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r7671 r7677 28 28 from waeup.sirp.interfaces import ( 29 29 IObjectHistory, IUserAccount, IFileStoreNameChooser, IFileStoreHandler, 30 ISIRPUtils, CLEARANCE )30 ISIRPUtils, CLEARANCE, registration_states_vocab) 31 31 from waeup.sirp.image import SIRPImageFile 32 32 from waeup.sirp.imagestorage import DefaultFileStoreHandler … … 78 78 def state(self): 79 79 state = IWorkflowState(self).getState() 80 return state 81 82 @property 83 def translated_state(self): 84 state = registration_states_vocab.getTermByToken( 85 self.state).title 80 86 return state 81 87 -
main/waeup.sirp/trunk/src/waeup/sirp/students/workflow.py
r7670 r7677 20 20 Transition( 21 21 transition_id = 'create', 22 title = 'Create student',22 title = _('Create student'), 23 23 source = None, 24 24 condition = NullCondition, 25 msg = 'Student record created',25 msg = _('Student record created'), 26 26 destination = CREATED), 27 27 … … 29 29 transition_id = 'admit', 30 30 title = _('Admit student'), 31 msg = 'Student admitted',31 msg = _('Student admitted'), 32 32 source = CREATED, 33 33 destination = ADMITTED), … … 35 35 Transition( 36 36 transition_id = 'reset1', 37 title = 'Reset student',38 msg = 'Student record reset',37 title = _('Reset student'), 38 msg = _('Student record reset'), 39 39 source = ADMITTED, 40 40 destination = CREATED), … … 42 42 Transition( 43 43 transition_id = 'start_clearance', 44 title = 'Start clearance',45 msg = 'Clearance started',44 title = _('Start clearance'), 45 msg = _('Clearance started'), 46 46 source = ADMITTED, 47 47 destination = CLEARANCE), … … 49 49 Transition( 50 50 transition_id = 'reset2', 51 title = 'Reset to admitted',52 msg = "Student record reset to 'admitted'",51 title = _('Reset to admitted'), 52 msg = _("Student record reset to 'admitted'"), 53 53 source = CLEARANCE, 54 54 destination = ADMITTED), … … 56 56 Transition( 57 57 transition_id = 'request_clearance', 58 title = 'Request clearance',59 msg = 'Clearance requested',58 title = _('Request clearance'), 59 msg = _('Clearance requested'), 60 60 source = CLEARANCE, 61 61 destination = REQUESTED), … … 63 63 Transition( 64 64 transition_id = 'reset3', 65 title = 'Reset to clearance',66 msg = "Student record reset to 'clearance'",65 title = _('Reset to clearance'), 66 msg = _("Student record reset to 'clearance'"), 67 67 source = REQUESTED, 68 68 destination = CLEARANCE), … … 70 70 Transition( 71 71 transition_id = 'clear', 72 title = 'Clear student',73 msg = 'Cleared',72 title = _('Clear student'), 73 msg = _('Cleared'), 74 74 source = REQUESTED, 75 75 destination = CLEARED), … … 77 77 Transition( 78 78 transition_id = 'reset4', 79 title = 'Reset to clearance',80 msg = "Student record reset to 'clearance'",79 title = _('Reset to clearance'), 80 msg = _("Student record reset to 'clearance'"), 81 81 source = CLEARED, 82 82 destination = CLEARANCE), … … 84 84 Transition( 85 85 transition_id = 'pay_first_school_fee', 86 title = 'Pay school fee',87 msg = 'School fee paid',86 title = _('Pay school fee'), 87 msg = _('School fee paid'), 88 88 source = CLEARED, 89 89 destination = PAID), … … 91 91 Transition( 92 92 transition_id = 'reset5', 93 title = 'Reset to cleared',94 msg = "Student record reset to 'cleared'",93 title = _('Reset to cleared'), 94 msg = _("Student record reset to 'cleared'"), 95 95 source = PAID, 96 96 destination = CLEARED), … … 98 98 Transition( 99 99 transition_id = 'pay_school_fee', 100 title = 'Pay school fee',101 msg = 'School fee paid',100 title = _('Pay school fee'), 101 msg = _('School fee paid'), 102 102 source = RETURNING, 103 103 destination = PAID), … … 105 105 Transition( 106 106 transition_id = 'reset6', 107 title = 'Reset to returning',108 msg = "Student record reset to 'returning'",107 title = _('Reset to returning'), 108 msg = _("Student record reset to 'returning'"), 109 109 source = PAID, 110 110 destination = RETURNING), … … 112 112 Transition( 113 113 transition_id = 'register_courses', 114 title = 'Register courses',115 msg = 'Courses registered',114 title = _('Register courses'), 115 msg = _('Courses registered'), 116 116 source = PAID, 117 117 destination = REGISTERED), … … 119 119 Transition( 120 120 transition_id = 'reset7', 121 title = 'Reset to paid',122 msg = "Student record reset to 'paid'",121 title = _('Reset to paid'), 122 msg = _("Student record reset to 'paid'"), 123 123 source = REGISTERED, 124 124 destination = PAID), … … 126 126 Transition( 127 127 transition_id = 'validate_courses', 128 title = 'Validate courses',129 msg = 'Courses validated',128 title = _('Validate courses'), 129 msg = _('Courses validated'), 130 130 source = REGISTERED, 131 131 destination = VALIDATED), … … 133 133 Transition( 134 134 transition_id = 'reset8', 135 title = 'Reset to paid',136 msg = "Student record reset to 'paid'",135 title = _('Reset to paid'), 136 msg = _("Student record reset to 'paid'"), 137 137 source = VALIDATED, 138 138 destination = PAID), … … 140 140 Transition( 141 141 transition_id = 'return', 142 title = 'Return',143 msg = 'Returned',142 title = _('Return'), 143 msg = _('Returned'), 144 144 source = VALIDATED, 145 145 destination = RETURNING), … … 147 147 Transition( 148 148 transition_id = 'reset9', 149 title = 'Reset to validated',150 msg = "Student record reset to 'validated'",149 title = _('Reset to validated'), 150 msg = _("Student record reset to 'validated'"), 151 151 source = RETURNING, 152 152 destination = VALIDATED),
Note: See TracChangeset for help on using the changeset viewer.