Ignore:
Timestamp:
28 Nov 2013, 13:44:18 (11 years ago)
Author:
Henrik Bettermann
Message:

Localize application workflow.

Ensure that customers can be created.

Location:
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/applicant.py

    r10794 r10801  
    3030    grok.provides(ICustomApplicant)
    3131
     32    def _setStudyCourseAttributes(self, studycourse):
     33        #studycourse.entry_mode = self.course_admitted.study_mode
     34        #studycourse.current_level = self.course_admitted.start_level
     35        studycourse.certificate = self.course_admitted
     36        studycourse.entry_session = self.__parent__.year
     37        studycourse.current_session = self.__parent__.year
     38        return
     39
    3240# Set all attributes of CustomApplicant required in ICustomApplicant as field
    3341# properties. Doing this, we do not have to set initial attributes
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/viewlets.py

    r10790 r10801  
    2222    StudentCreateActionButton,
    2323    ExportApplicantsActionButton,
     24    PDFActionButton
    2425    )
    2526
    26 class ApplicantsRootCreateStudentsActionButton(ApplicantsRootCreateStudentsActionButton):
    27     target =''
     27#class ApplicantsRootCreateStudentsActionButton(ApplicantsRootCreateStudentsActionButton):
     28#    target =''
    2829
    29 class ApplicantsContainerCreateStudentsActionButton(ApplicantsContainerCreateStudentsActionButton):
    30     target =''
     30#class ApplicantsContainerCreateStudentsActionButton(ApplicantsContainerCreateStudentsActionButton):
     31#    target =''
    3132
    32 class StudentCreateActionButton(StudentCreateActionButton):
    33     target =''
     33#class StudentCreateActionButton(StudentCreateActionButton):
     34#    target =''
    3435
    3536#class ExportApplicantsActionButton(ExportApplicantsActionButton):
     
    3839#    target = ''
    3940
     41
     42class CustomPDFActionButton(PDFActionButton):
     43
     44    text = 'Download subscriber record slip'
     45
     46
     47
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/workflow.py

    r10800 r10801  
    3131    Transition(
    3232        transition_id = 'init',
    33         title = _('Initialize application'),
     33        title = _('Initialize subscription'),
    3434        source = None,
    3535        condition = NullCondition,
    36         msg = _('Application initialized'),
     36        msg = _('Subscription initialized'),
    3737        destination = INITIALIZED),
    3838
    3939    Transition(
    4040        transition_id = 'start',
    41         title = _('Start application'),
    42         msg = _('Application started'),
     41        title = _('Start subscription'),
     42        msg = _('Subscription started'),
    4343        source = INITIALIZED,
    4444        destination = STARTED),
     
    4646    Transition(
    4747        transition_id = 'submit',
    48         title = _('Submit application'),
    49         msg = _('Application submitted'),
     48        title = _('Submit subscription'),
     49        msg = _('Subscription submitted'),
    5050        source = STARTED,
    5151        destination = SUBMITTED),
     
    5353    Transition(
    5454        transition_id = 'admit',
    55         title = _('Admit applicant'),
    56         msg = _('Applicant admitted'),
     55        title = _('Approve subscription'),
     56        msg = _('Subscription approved'),
    5757        source = SUBMITTED,
    5858        destination = ADMITTED),
     
    6060    Transition(
    6161        transition_id = 'refuse1',
    62         title = _('Refuse application'),
    63         msg = _('Application refused'),
     62        title = _('Refuse subscription'),
     63        msg = _('Subscription refused'),
    6464        source = SUBMITTED,
    6565        destination = NOT_ADMITTED),
     
    6767    Transition(
    6868        transition_id = 'refuse2',
    69         title = _('Refuse application'),
    70         msg = _('Application refused'),
     69        title = _('Refuse subscription'),
     70        msg = _('Subscription refused'),
    7171        source = ADMITTED,
    7272        destination = NOT_ADMITTED),
     
    7575        transition_id = 'create',
    7676        title = _('Create student record'),
    77         msg = _('Student record created'),
     77        msg = _('Customer record created'),
    7878        source = ADMITTED,
    7979        destination = CREATED),
     
    8181    Transition(
    8282        transition_id = 'reset1',
    83         title = _('Reset application to started'),
    84         msg = _('Application reset'),
     83        title = _('Reset subscription to started'),
     84        msg = _('Subscription reset'),
    8585        source = SUBMITTED,
    8686        destination = STARTED),
     
    8888    Transition(
    8989        transition_id = 'reset2',
    90         title = _('Reset application to started'),
    91         msg = _('Application reset'),
     90        title = _('Reset subscription to started'),
     91        msg = _('Subscription reset'),
    9292        source = ADMITTED,
    9393        destination = STARTED),
     
    9595    Transition(
    9696        transition_id = 'reset3',
    97         title = _('Reset application to started'),
    98         msg = _('Application reset'),
     97        title = _('Reset subscription to started'),
     98        msg = _('Subscription reset'),
    9999        source = NOT_ADMITTED,
    100100        destination = STARTED),
     
    102102    Transition(
    103103        transition_id = 'reset4',
    104         title = _('Reset application to started'),
    105         msg = _('Application reset'),
     104        title = _('Reset subscription to started'),
     105        msg = _('Subscription reset'),
    106106        source = CREATED,
    107107        destination = STARTED),
     
    109109    Transition(
    110110        transition_id = 'reset7',
    111         title = _('Reset application to admitted'),
    112         msg = _('Application reset to admitted'),
     111        title = _('Reset subscription to admitted'),
     112        msg = _('Subscription reset to admitted'),
    113113        source = CREATED,
    114114        destination = ADMITTED),
Note: See TracChangeset for help on using the changeset viewer.