Changeset 7996 for main/waeup.kofa/trunk


Ignore:
Timestamp:
28 Mar 2012, 16:32:37 (13 years ago)
Author:
Henrik Bettermann
Message:

Add correct applicant object when using the ApplicantRegistrationPage?.

Harmonize workflow transition messages.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r7903 r7996  
    835835        return
    836836
    837     @action(_('Save'))
     837    @action(_('Save'), style='primary')
    838838    def save(self, **data):
    839839        if self.passport_changed is False:  # False is not None!
     
    922922            return
    923923        # Add applicant and create password
    924         applicant = createObject('waeup.Applicant')
     924        applicant = createObject(self.context.factory_name)
    925925        self.applyData(applicant, **data)
    926926        self.context.addApplicant(applicant)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt

    r7811 r7996  
    6262    </span>
    6363  </div>
     64  <br />
    6465
    6566  <div tal:condition="view/availableActions">
  • main/waeup.kofa/trunk/src/waeup/kofa/students/workflow.py

    r7819 r7996  
    3636        transition_id = 'reset1',
    3737        title = _('Reset student'),
    38         msg = _('Student record reset'),
     38        msg = _('Reset to initial state'),
    3939        source = ADMITTED,
    4040        destination = CREATED),
     
    5050        transition_id = 'reset2',
    5151        title = _('Reset to admitted'),
    52         msg = _("Student record reset to 'admitted'"),
     52        msg = _("Reset to 'admitted'"),
    5353        source = CLEARANCE,
    5454        destination = ADMITTED),
     
    6464        transition_id = 'reset3',
    6565        title = _('Reset to clearance'),
    66         msg = _("Student record reset to 'clearance'"),
     66        msg = _("Reset to 'clearance'"),
    6767        source = REQUESTED,
    6868        destination = CLEARANCE),
     
    7878        transition_id = 'reset4',
    7979        title = _('Reset to clearance'),
    80         msg = _("Student record reset to 'clearance'"),
     80        msg = _("Reset to 'clearance'"),
    8181        source = CLEARED,
    8282        destination = CLEARANCE),
     
    9292        transition_id = 'reset5',
    9393        title = _('Reset to cleared'),
    94         msg = _("Student record reset to 'cleared'"),
     94        msg = _("Reset to 'cleared'"),
    9595        source = PAID,
    9696        destination = CLEARED),
     
    106106        transition_id = 'reset6',
    107107        title = _('Reset to returning'),
    108         msg = _("Student record reset to 'returning'"),
     108        msg = _("Reset to 'returning'"),
    109109        source = PAID,
    110110        destination = RETURNING),
     
    120120        transition_id = 'reset7',
    121121        title = _('Reset to paid'),
    122         msg = _("Student record reset to 'paid'"),
     122        msg = _("Reset to 'paid'"),
    123123        source = REGISTERED,
    124124        destination = PAID),
     
    134134        transition_id = 'reset8',
    135135        title = _('Reset to paid'),
    136         msg = _("Student record reset to 'paid'"),
     136        msg = _("Reset to 'paid'"),
    137137        source = VALIDATED,
    138138        destination = PAID),
     
    141141        transition_id = 'return',
    142142        title = _('Return'),
    143         msg = _('Returned'),
     143        msg = _("Reset to 'returning'"),
    144144        source = VALIDATED,
    145145        destination = RETURNING),
     
    148148        transition_id = 'reset9',
    149149        title = _('Reset to validated'),
    150         msg = _("Student record reset to 'validated'"),
     150        msg = _("Reset to 'validated'"),
    151151        source = RETURNING,
    152152        destination = VALIDATED),
Note: See TracChangeset for help on using the changeset viewer.