Changeset 6471 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 23 Jun 2011, 15:29:31 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6470 r6471 429 429 pass 430 430 else: 431 comment = u" Invalidated by applicant"431 comment = u"AC invalidated" 432 432 # Here we know that the ac is in state initialized so we do not 433 433 # expect an exception 434 invalidate_accesscode(pin, 434 invalidate_accesscode(pin,comment) 435 435 436 436 if not pin in self.context.keys(): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6355 r6471 22 22 source = None, 23 23 condition = NullCondition, 24 msg = ' application processinitialized',24 msg = 'Application initialized', 25 25 destination = INITIALIZED), 26 26 … … 28 28 transition_id = 'start', 29 29 title = 'Start application', 30 msg = ' application processstarted',30 msg = 'Application started', 31 31 source = INITIALIZED, 32 32 destination = STARTED), … … 35 35 transition_id = 'submit', 36 36 title = 'Submit application', 37 msg = ' application recordsubmitted',37 msg = 'Application submitted', 38 38 source = STARTED, 39 39 destination = SUBMITTED), … … 42 42 transition_id = 'admit', 43 43 title = 'Admit applicant', 44 msg = ' applicant admitted',44 msg = 'Applicant admitted', 45 45 source = SUBMITTED, 46 46 destination = ADMITTED), … … 49 49 transition_id = 'refuse1', 50 50 title = 'Refuse application', 51 msg = ' application refused',51 msg = 'Application refused', 52 52 source = SUBMITTED, 53 53 destination = NOT_ADMITTED), … … 56 56 transition_id = 'refuse2', 57 57 title = 'Refuse application', 58 msg = ' application refused',58 msg = 'Application refused', 59 59 source = ADMITTED, 60 60 destination = NOT_ADMITTED), … … 63 63 transition_id = 'create', 64 64 title = 'Create student record', 65 msg = ' student record created',65 msg = 'Student record created', 66 66 source = ADMITTED, 67 67 destination = CREATED), … … 70 70 transition_id = 'reset1', 71 71 title = 'Reset application', 72 msg = ' application recordreset',72 msg = 'Application reset', 73 73 source = SUBMITTED, 74 74 destination = STARTED), … … 77 77 transition_id = 'reset2', 78 78 title = 'Reset application', 79 msg = ' application recordreset',79 msg = 'Application reset', 80 80 source = ADMITTED, 81 81 destination = STARTED), … … 84 84 transition_id = 'reset3', 85 85 title = 'Reset application', 86 msg = ' application recordreset',86 msg = 'Application reset', 87 87 source = NOT_ADMITTED, 88 88 destination = STARTED), … … 91 91 transition_id = 'reset4', 92 92 title = 'Reset application', 93 msg = ' application recordreset',93 msg = 'Application reset', 94 94 source = CREATED, 95 95 destination = STARTED), … … 119 119 @grok.subscribe(IApplicantBaseData, IWorkflowTransitionEvent) 120 120 def handle_applicant_transition_event(obj, event): 121 """Append message to applicant when transition happened.121 """Append message to applicant history when transition happened. 122 122 """ 123 timestamp = datetime.now().strftime("%d/%m/%Y %H:%M:%S") 124 msg = '%s - %s (new state: %s)' % ( 125 timestamp, event.transition.user_data['msg'], event.destination) 123 msg = '%s' % event.transition.user_data['msg'] 126 124 history = IObjectHistory(obj) 127 125 history.addMessage(msg)
Note: See TracChangeset for help on using the changeset viewer.