Changeset 10815 for main/kofacustom.ekodisco/trunk/src/kofacustom
- Timestamp:
- 29 Nov 2013, 10:17:00 (11 years ago)
- Location:
- main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/applicant.py
r10814 r10815 24 24 from kofacustom.ekodisco.applicants.interfaces import( 25 25 ICustomApplicant, ICustomApplicantEdit) 26 from kofacustom.ekodisco.applicants.workflow import application_states_dict 26 27 27 28 class CustomApplicant(Applicant): … … 35 36 'email', 'phone', 'perm_address' 36 37 ] 38 39 @property 40 def translated_state(self): 41 return application_states_dict[self.state] 37 42 38 43 def _setStudyCourseAttributes(self, studycourse): -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/workflow.py
r10801 r10815 27 27 from waeup.kofa.applicants.workflow import ( ApplicationWorkflowInfo, 28 28 INITIALIZED, STARTED, SUBMITTED, ADMITTED, NOT_ADMITTED, CREATED) 29 30 31 application_states_dict = { 32 INITIALIZED: _('initialized'), 33 STARTED: _('started'), 34 SUBMITTED: _('submitted'), 35 ADMITTED: _('subscription approved'), 36 NOT_ADMITTED: _('subscription not approved'), 37 CREATED: _('customer record created'), 38 } 29 39 30 40 APPLICATION_TRANSITIONS = ( -
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/workflow.py
r10812 r10815 27 27 Transition( 28 28 transition_id = 'admit', 29 title = _('Approve contract'),30 msg = _(' Contractapproved'),29 title = _('Approve subscription'), 30 msg = _('Subscription approved'), 31 31 source = CREATED, 32 32 destination = CLEARED), … … 72 72 Transition( 73 73 transition_id = 'reset2', 74 title = _("Reset customer to state ' contractapproved'"),75 msg = _("Reset to state ' contractapproved'"),74 title = _("Reset customer to state 'subscription approved'"), 75 msg = _("Reset to state 'subscription approved'"), 76 76 source = PAID, 77 77 destination = CLEARED),
Note: See TracChangeset for help on using the changeset viewer.