Changeset 7436


Ignore:
Timestamp:
22 Dec 2011, 08:27:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Set current_level when creating students from applicant data. Use new entry_level attribute from ApplicantsContainer?.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py

    r7421 r7436  
    114114        student['studycourse'].entry_session = self.__parent__.year
    115115        student['studycourse'].current_session = self.__parent__.year
     116        student['studycourse'].current_level = self.__parent__.entry_level
    116117        self._copyPassportImage(student)
    117118        # Update the catalog
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r7376 r7436  
    3131from waeup.sirp.interfaces import (
    3232    ISIRPObject, year_range, validate_email, academic_sessions_vocab)
    33 from waeup.sirp.university.vocabularies import application_categories
     33from waeup.sirp.university.vocabularies import (
     34    application_categories, course_levels)
    3435from waeup.sirp.students.vocabularies import (
    35   lgas_vocab, CertificateSource, GenderSource,
    36   )
     36    lgas_vocab, CertificateSource, GenderSource)
    3737from waeup.sirp.applicants.vocabularies import (
    38   application_types_vocab, application_pins_vocab,
    39   AppCatCertificateSource,
    40   )
     38    application_types_vocab, application_pins_vocab,
     39    AppCatCertificateSource)
    4140from waeup.sirp.payments.interfaces import IOnlinePayment
    4241
     
    156155        )
    157156
     157    entry_level = schema.Choice(
     158        title = u'Entry Level',
     159        vocabulary = course_levels,
     160        default = 100,
     161        required = True,
     162        )
     163
    158164    year = schema.Choice(
    159165        title = u'Year of entrance',
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r7434 r7436  
    9393        certificate.code = 'CERT1'
    9494        certificate.application_category = 'basic'
     95        certificate.start_level = 100
     96        certificate.end_level = 500
    9597        self.certificate = certificate
    9698        self.app['faculties']['fac1'] = Faculty()
Note: See TracChangeset for help on using the changeset viewer.