Ignore:
Timestamp:
29 Nov 2013, 10:17:00 (11 years ago)
Author:
Henrik Bettermann
Message:

Show proper workflow states.

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  
    2424from kofacustom.ekodisco.applicants.interfaces import(
    2525    ICustomApplicant, ICustomApplicantEdit)
     26from kofacustom.ekodisco.applicants.workflow import application_states_dict
    2627
    2728class CustomApplicant(Applicant):
     
    3536        'email', 'phone', 'perm_address'
    3637        ]
     38
     39    @property
     40    def translated_state(self):
     41        return application_states_dict[self.state]
    3742
    3843    def _setStudyCourseAttributes(self, studycourse):
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/workflow.py

    r10801 r10815  
    2727from waeup.kofa.applicants.workflow import ( ApplicationWorkflowInfo,
    2828    INITIALIZED, STARTED, SUBMITTED, ADMITTED, NOT_ADMITTED, CREATED)
     29
     30
     31application_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    }
    2939
    3040APPLICATION_TRANSITIONS = (
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/students/workflow.py

    r10812 r10815  
    2727    Transition(
    2828        transition_id = 'admit',
    29         title = _('Approve contract'),
    30         msg = _('Contract approved'),
     29        title = _('Approve subscription'),
     30        msg = _('Subscription approved'),
    3131        source = CREATED,
    3232        destination = CLEARED),
     
    7272    Transition(
    7373        transition_id = 'reset2',
    74         title = _("Reset customer to state 'contract approved'"),
    75         msg = _("Reset to state 'contract approved'"),
     74        title = _("Reset customer to state 'subscription approved'"),
     75        msg = _("Reset to state 'subscription approved'"),
    7676        source = PAID,
    7777        destination = CLEARED),
Note: See TracChangeset for help on using the changeset viewer.