Ignore:
Timestamp:
11 Mar 2014, 09:10:47 (11 years ago)
Author:
Henrik Bettermann
Message:

'Create student' option removed from 'Application Transition'

select field.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants
Files:
2 edited

Legend:

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

    r11437 r11482  
    843843        """
    844844        allowed_transitions = [t for t in self.wf_info.getManualTransitions()
    845             if not t[0] == 'pay']
     845            if not t[0] in ('pay', 'create')]
    846846        return [dict(name='', title=_('No transition'))] +[
    847847            dict(name=x, title=y) for x, y in allowed_transitions]
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py

    r10647 r11482  
    7878        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
    7979            self.certificate)
     80        # Managers are not allowed to trigger the create transition manually
     81        self.assertFalse('<option value="create">' in self.browser.contents)
     82        # Student can be created
    8083        (success, msg) = self.applicant.createStudent()
    8184        self.assertTrue('created' in msg)
Note: See TracChangeset for help on using the changeset viewer.